]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ir90tv] Optional fields should be non-fatal
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 25 Jul 2015 10:48:00 +0000 (18:48 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 25 Jul 2015 10:48:00 +0000 (18:48 +0800)
youtube_dl/extractor/ir90tv.py

index 6418d61783d16950313432db2050ff5471211187..214bcd5b59c1a95a7a34ebc2acd87b2dc6f76454 100644 (file)
@@ -31,7 +31,7 @@ class Ir90TvIE(InfoExtractor):
         video_url = self._search_regex(
             r'<source[^>]+src="([^"]+)"', webpage, 'video url')
 
-        thumbnail = self._search_regex(r'poster="([^"]+)"', webpage, 'thumbnail url')
+        thumbnail = self._search_regex(r'poster="([^"]+)"', webpage, 'thumbnail url', fatal=False)
 
         return {
             'url': video_url,