1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-29 03:23:22 +08:00

[gdcvault] Formatting / Remove unused variables

This commit is contained in:
Philipp Hagemeister 2014-02-28 15:50:19 +01:00
parent dc3727b65c
commit f604c93c64

View File

@ -1,7 +1,6 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import re import re
import xml.etree.ElementTree
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ( from ..utils import (
@ -28,7 +27,7 @@ class GDCVaultIE(InfoExtractor):
'ext': 'flv', 'ext': 'flv',
'title': 'Embracing the Dark Art of Mathematical Modeling in AI' 'title': 'Embracing the Dark Art of Mathematical Modeling in AI'
}, },
'params' : { 'params': {
'skip_download': True, # Requires rtmpdump 'skip_download': True, # Requires rtmpdump
} }
}, },
@ -91,9 +90,9 @@ class GDCVaultIE(InfoExtractor):
request = compat_urllib_request.Request(login_url, compat_urllib_parse.urlencode(login_form)) request = compat_urllib_request.Request(login_url, compat_urllib_parse.urlencode(login_form))
request.add_header('Content-Type', 'application/x-www-form-urlencoded') 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') 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 return start_page