aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-08-17 07:01:32 +0700
committerSergey M․ <dstftw@gmail.com>2016-08-17 07:01:32 +0700
commit92cd9fd56574f22087a8f8df52192df1d4c11a21 (patch)
tree2c35e8f8a1a8b7d4147ebe61a25490b5e57796d5 /youtube_dl
parentb3d7dce42952cf23b8f9ea883c75736dadfee12e (diff)
downloadyoutube-dl-92cd9fd56574f22087a8f8df52192df1d4c11a21.tar.xz
[keezmovies] Make display_id optional
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/keezmovies.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/keezmovies.py b/youtube_dl/extractor/keezmovies.py
index ad2f8a8c8..b002c0dd1 100644
--- 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'})