1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 02:01:50 +00:00

[keezmovies] Make display_id optional

This commit is contained in:
Sergey M․ 2016-08-17 07:01:32 +07:00
parent b3d7dce429
commit 92cd9fd565
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

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