1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-24 17:25:52 +01:00

[keezmovies] PEP 8

This commit is contained in:
Sergey M․ 2016-08-18 04:39:31 +07:00
parent 4e9fee1015
commit e15ad9ef09
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -39,8 +39,9 @@ class KeezMoviesIE(InfoExtractor):
def _extract_info(self, url): def _extract_info(self, url):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id') video_id = mobj.group('id')
display_id = (mobj.group('display_id') if 'display_id' display_id = (mobj.group('display_id')
in mobj.groupdict() else None) or mobj.group('id') if 'display_id' in mobj.groupdict()
else None) or mobj.group('id')
webpage = self._download_webpage( webpage = self._download_webpage(
url, display_id, headers={'Cookie': 'age_verified=1'}) url, display_id, headers={'Cookie': 'age_verified=1'})