[ellentv] Make video url extraction fatal
authorSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 18:00:04 +0000 (00:00 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 4 Apr 2015 18:00:04 +0000 (00:00 +0600)
youtube_dl/extractor/ellentv.py

index fc92ff8253734f151fa973ea4979adbe5c6063bf..3a7962144dbf5fd0dd528b814daff33b0c17ede6 100644 (file)
@@ -40,14 +40,15 @@ class EllenTVIE(InfoExtractor):
         video_id = self._match_id(url)
 
         webpage = self._download_webpage(url, video_id)
-        video_url = self._html_search_meta('VideoURL', webpage, 'url')
+
+        video_url = self._html_search_meta('VideoURL', webpage, 'url', fatal=True)
         title = self._og_search_title(webpage, default=None) or self._search_regex(
             r'pageName\s*=\s*"([^"]+)"', webpage, 'title')
         description = self._html_search_meta(
             'description', webpage, 'description') or self._og_search_description(webpage)
         timestamp = parse_iso8601(self._search_regex(
             r'<span class="publish-date"><time datetime="([^"]+)">',
-            webpage, 'timestamp'))
+            webpage, 'timestamp', fatal=False))
 
         return {
             'id': video_id,