about summary refs log tree commit diff
path: root/youtube_dl/extractor/beeg.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-31 20:42:41 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-31 20:42:41 +0600
commit5299bc3f91ffbb784addaee002611a52232134a1 (patch)
tree9a051eb7361d6e68d073542c644e887f68b65ce8 /youtube_dl/extractor/beeg.py
parentc9c39c22c5740c1eedcc9ce7a10f5df199ea5c78 (diff)
downloadyoutube-dl-5299bc3f91ffbb784addaee002611a52232134a1.tar.gz
youtube-dl-5299bc3f91ffbb784addaee002611a52232134a1.tar.xz
youtube-dl-5299bc3f91ffbb784addaee002611a52232134a1.zip
[beeg] Switch to api v6 (Closes #9036)
Diffstat (limited to 'youtube_dl/extractor/beeg.py')
-rw-r--r--youtube_dl/extractor/beeg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/beeg.py b/youtube_dl/extractor/beeg.py
index 34c2a756f..9072949dd 100644
--- a/youtube_dl/extractor/beeg.py
+++ b/youtube_dl/extractor/beeg.py
@@ -34,7 +34,7 @@ class BeegIE(InfoExtractor):
         video_id = self._match_id(url)
 
         video = self._download_json(
-            'https://api.beeg.com/api/v5/video/%s' % video_id, video_id)
+            'https://api.beeg.com/api/v6/1738/video/%s' % video_id, video_id)
 
         def split(o, e):
             def cut(s, x):
@@ -50,8 +50,8 @@ class BeegIE(InfoExtractor):
             return n
 
         def decrypt_key(key):
-            # Reverse engineered from http://static.beeg.com/cpl/1105.js
-            a = '5ShMcIQlssOd7zChAIOlmeTZDaUxULbJRnywYaiB'
+            # Reverse engineered from http://static.beeg.com/cpl/1738.js
+            a = 'GUuyodcfS8FW8gQp4OKLMsZBcX0T7B'
             e = compat_urllib_parse_unquote(key)
             o = ''.join([
                 compat_chr(compat_ord(e[n]) - compat_ord(a[n % len(a)]) % 21)