diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-11-27 18:33:51 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-11-27 18:33:51 +0100 |
commit | dcca796ce431da0d8b6927609c08938f22ba44cf (patch) | |
tree | 55563bdced2087df02790972b6c4da97b0deacc5 /youtube_dl | |
parent | 4b19e3895492a472c5b63d9da5777bc29d44e25c (diff) |
[clipfish] Effect a better error message (#1842)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/clipfish.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/clipfish.py b/youtube_dl/extractor/clipfish.py index 5f0b5602f..05afce338 100644 --- a/youtube_dl/extractor/clipfish.py +++ b/youtube_dl/extractor/clipfish.py @@ -1,5 +1,6 @@ import re import time +import xml.etree.ElementTree from .common import InfoExtractor @@ -28,6 +29,10 @@ class ClipfishIE(InfoExtractor): info_url, video_id, note=u'Downloading info page') title = doc.find('title').text video_url = doc.find('filename').text + if video_url is None: + xml_bytes = xml.etree.ElementTree.tostring(doc) + raise ExtractorError(u'Cannot find video URL in document %r' % + xml_bytes) thumbnail = doc.find('imageurl').text duration_str = doc.find('duration').text m = re.match( |