diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-11-20 06:27:48 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-11-20 06:27:48 +0100 |
commit | f3682997d7a709e7cf74ba83773570d2a99beb12 (patch) | |
tree | 9e14e70dfea76583a593468c366b5bc818215af5 /youtube_dl/extractor/collegehumor.py | |
parent | cc13cc0251b287ac88883096fcc36a8072e7ab5d (diff) |
Clean up unused imports and other minor mistakes
Diffstat (limited to 'youtube_dl/extractor/collegehumor.py')
-rw-r--r-- | youtube_dl/extractor/collegehumor.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/collegehumor.py b/youtube_dl/extractor/collegehumor.py index 8d4c93d6d..0c29acfb1 100644 --- a/youtube_dl/extractor/collegehumor.py +++ b/youtube_dl/extractor/collegehumor.py @@ -71,10 +71,8 @@ class CollegeHumorIE(InfoExtractor): adoc = xml.etree.ElementTree.fromstring(manifestXml) try: - media_node = adoc.findall('./{http://ns.adobe.com/f4m/1.0}media')[0] - node_id = media_node.attrib['url'] video_id = adoc.findall('./{http://ns.adobe.com/f4m/1.0}id')[0].text - except IndexError as err: + except IndexError: raise ExtractorError(u'Invalid manifest file') url_pr = compat_urllib_parse_urlparse(info['thumbnail']) info['url'] = url_pr.scheme + '://' + url_pr.netloc + video_id[:-2].replace('.csmil','').replace(',','') |