projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9c39c2
)
[beeg] Switch to api v6 (Closes #9036)
author
Sergey M․
<dstftw@gmail.com>
Thu, 31 Mar 2016 14:42:41 +0000
(20:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 31 Mar 2016 14:42:41 +0000
(20:42 +0600)
youtube_dl/extractor/beeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/beeg.py
b/youtube_dl/extractor/beeg.py
index 34c2a756fba11f81516e87e095ef1e02d5e65417..9072949ddcad6ccdc67a272f556687b202c616cc 100644
(file)
--- 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(
video_id = self._match_id(url)
video = self._download_json(
- 'https://api.beeg.com/api/v
5
/video/%s' % video_id, video_id)
+ 'https://api.beeg.com/api/v
6/1738
/video/%s' % video_id, video_id)
def split(o, e):
def cut(s, x):
def split(o, e):
def cut(s, x):
@@
-50,8
+50,8
@@
class BeegIE(InfoExtractor):
return n
def decrypt_key(key):
return n
def decrypt_key(key):
- # Reverse engineered from http://static.beeg.com/cpl/1
105
.js
- a = '
5ShMcIQlssOd7zChAIOlmeTZDaUxULbJRnywYai
B'
+ # Reverse engineered from http://static.beeg.com/cpl/1
738
.js
+ a = '
GUuyodcfS8FW8gQp4OKLMsZBcX0T7
B'
e = compat_urllib_parse_unquote(key)
o = ''.join([
compat_chr(compat_ord(e[n]) - compat_ord(a[n % len(a)]) % 21)
e = compat_urllib_parse_unquote(key)
o = ''.join([
compat_chr(compat_ord(e[n]) - compat_ord(a[n % len(a)]) % 21)