diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-02-28 15:50:19 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-02-28 15:50:19 +0100 |
commit | f604c93c64df542de6921bc071f47c205742fe77 (patch) | |
tree | 0306ea24b4feea6e5c51ae0a205cb1e4788deb6e /youtube_dl/extractor | |
parent | dc3727b65cfa2e58b1f4877aed435dce4da552cd (diff) |
[gdcvault] Formatting / Remove unused variables
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/gdcvault.py | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/youtube_dl/extractor/gdcvault.py b/youtube_dl/extractor/gdcvault.py index 74908da77..89d5994ee 100644 --- a/youtube_dl/extractor/gdcvault.py +++ b/youtube_dl/extractor/gdcvault.py @@ -1,7 +1,6 @@ from __future__ import unicode_literals import re -import xml.etree.ElementTree from .common import InfoExtractor from ..utils import ( @@ -28,8 +27,8 @@ class GDCVaultIE(InfoExtractor): 'ext': 'flv', 'title': 'Embracing the Dark Art of Mathematical Modeling in AI' }, - 'params' : { - 'skip_download': True, # Requires rtmpdump + 'params': { + 'skip_download': True, # Requires rtmpdump } }, ] @@ -58,20 +57,20 @@ class GDCVaultIE(InfoExtractor): akami_url = xml_description.find('./metadata/akamaiHost').text slide_video_path = xml_description.find('./metadata/slideVideo').text video_formats.append({ - 'url': 'rtmp://' + akami_url + '/' + slide_video_path, - 'format_note': 'slide deck video', - 'quality': -2, - 'preference': -2, - 'format_id': 'slides', - }) + 'url': 'rtmp://' + akami_url + '/' + slide_video_path, + 'format_note': 'slide deck video', + 'quality': -2, + 'preference': -2, + 'format_id': 'slides', + }) speaker_video_path = xml_description.find('./metadata/speakerVideo').text video_formats.append({ - 'url': 'rtmp://' + akami_url + '/' + speaker_video_path, - 'format_note': 'speaker video', - 'quality': -1, - 'preference': -1, - 'format_id': 'speaker', - }) + 'url': 'rtmp://' + akami_url + '/' + speaker_video_path, + 'format_note': 'speaker video', + 'quality': -1, + 'preference': -1, + 'format_id': 'speaker', + }) return video_formats def _login(self, webpage_url, video_id): @@ -91,9 +90,9 @@ class GDCVaultIE(InfoExtractor): request = compat_urllib_request.Request(login_url, compat_urllib_parse.urlencode(login_form)) request.add_header('Content-Type', 'application/x-www-form-urlencoded') - login_content = self._download_webpage(request, video_id, 'Logging in') + self._download_webpage(request, video_id, 'Logging in') start_page = self._download_webpage(webpage_url, video_id, 'Getting authenticated video page') - logout_content = self._download_webpage(logout_url, video_id, 'Logging out') + self._download_webpage(logout_url, video_id, 'Logging out') return start_page |