]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[vbox7] Skip malformed JSON-LD (closes #11501)
authorSergey M․ <dstftw@gmail.com>
Wed, 21 Dec 2016 15:39:05 +0000 (22:39 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 21 Dec 2016 15:39:05 +0000 (22:39 +0700)
youtube_dl/extractor/vbox7.py

index 7fb7574ad6461a350ea34e60e87115fc654e2535..429893e384a70d5587bbec91224ee6f80d74cb78 100644 (file)
@@ -89,7 +89,8 @@ class Vbox7IE(InfoExtractor):
 
         if webpage:
             info = self._search_json_ld(
-                webpage.replace('"/*@context"', '"@context"'), video_id)
+                webpage.replace('"/*@context"', '"@context"'), video_id,
+                fatal=False)
 
         info.update({
             'id': video_id,