diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-10-30 05:27:50 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-10-30 05:27:50 +0700 |
commit | 2a048f9878b2417fb4625881ee4a2340ed6c7d3d (patch) | |
tree | 4553ad2da4ed8e07582ffc69883fc3522f2d690d | |
parent | ea331f40e65740973e7766e71853352c814158f7 (diff) | |
download | youtube-dl-2a048f9878b2417fb4625881ee4a2340ed6c7d3d.tar.xz |
[beeg] Fix extraction (closes #11069)
-rw-r--r-- | youtube_dl/extractor/beeg.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/youtube_dl/extractor/beeg.py b/youtube_dl/extractor/beeg.py index 956c7680e..b0b7914d8 100644 --- a/youtube_dl/extractor/beeg.py +++ b/youtube_dl/extractor/beeg.py @@ -46,19 +46,19 @@ class BeegIE(InfoExtractor): self._proto_relative_url(cpl_url), video_id, 'Downloading cpl JS', fatal=False) if cpl: - beeg_version = self._search_regex( - r'beeg_version\s*=\s*(\d+)', cpl, - 'beeg version', default=None) or self._search_regex( + beeg_version = int_or_none(self._search_regex( + r'beeg_version\s*=\s*([^\b]+)', cpl, + 'beeg version', default=None)) or self._search_regex( r'/(\d+)\.js', cpl_url, 'beeg version', default=None) beeg_salt = self._search_regex( - r'beeg_salt\s*=\s*(["\'])(?P<beeg_salt>.+?)\1', cpl, 'beeg beeg_salt', + r'beeg_salt\s*=\s*(["\'])(?P<beeg_salt>.+?)\1', cpl, 'beeg salt', default=None, group='beeg_salt') - beeg_version = beeg_version or '1750' - beeg_salt = beeg_salt or 'MIDtGaw96f0N1kMMAM1DE46EC9pmFr' + beeg_version = beeg_version or '2000' + beeg_salt = beeg_salt or 'pmweAkq8lAYKdfWcFCUj0yoVgoPlinamH5UE1CB3H' video = self._download_json( - 'http://api.beeg.com/api/v6/%s/video/%s' % (beeg_version, video_id), + 'https://api.beeg.com/api/v6/%s/video/%s' % (beeg_version, video_id), video_id) def split(o, e): |