mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[keezmovies] Make display_id optional
This commit is contained in:
parent
b3d7dce429
commit
92cd9fd565
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ 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') 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(
|
webpage = self._download_webpage(
|
||||||
url, display_id, headers={'Cookie': 'age_verified=1'})
|
url, display_id, headers={'Cookie': 'age_verified=1'})
|
||||||
|
|
Loading…
Reference in a new issue