projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Add support for zwearz (Closes #9062)
[youtube-dl]
/
youtube_dl
/
extractor
/
beeg.py
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)