youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 92cd9fd56574f22087a8f8df52192df1d4c11a21
parent b3d7dce42952cf23b8f9ea883c75736dadfee12e
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed, 17 Aug 2016 07:01:32 +0700

[keezmovies] Make display_id optional

Diffstat:
Myoutube_dl/extractor/keezmovies.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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'})