projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3d7dce
)
[keezmovies] Make display_id optional
author
Sergey M․
<dstftw@gmail.com>
Wed, 17 Aug 2016 00:01:32 +0000
(07:01 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 17 Aug 2016 00:01:32 +0000
(07:01 +0700)
youtube_dl/extractor/keezmovies.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/keezmovies.py
b/youtube_dl/extractor/keezmovies.py
index ad2f8a8c8dc880df28d61759dd567fd40f64b3c9..b002c0dd10684d006c775d0271d67f80fcba8a26 100644
(file)
--- a/
youtube_dl/extractor/keezmovies.py
+++ b/
youtube_dl/extractor/keezmovies.py
@@
-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'})