projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kaltura] Assume ttml to be default subtitles' extension
[youtube-dl]
/
youtube_dl
/
extractor
/
keezmovies.py
diff --git
a/youtube_dl/extractor/keezmovies.py
b/youtube_dl/extractor/keezmovies.py
index ad2f8a8c8dc880df28d61759dd567fd40f64b3c9..588a4d0ec4eda6e38817b26f192536c40a172f3e 100644
(file)
--- a/
youtube_dl/extractor/keezmovies.py
+++ b/
youtube_dl/extractor/keezmovies.py
@@
-39,7
+39,9
@@
class KeezMoviesIE(InfoExtractor):
def _extract_info(self, url):
mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('id')
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'})
webpage = self._download_webpage(
url, display_id, headers={'Cookie': 'age_verified=1'})