projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bfdf6fc
)
[mitele] Update app key regex
author
Logan B
<einstein95@users.noreply.github.com>
Fri, 19 May 2017 14:54:57 +0000
(
02:54
+1200)
committer
Sergey M
<dstftw@gmail.com>
Fri, 19 May 2017 14:54:57 +0000
(21:54 +0700)
youtube_dl/extractor/mitele.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mitele.py
b/youtube_dl/extractor/mitele.py
index 28b743cca1f2355a24cb6b913c7a7410f40d595f..964dc542cc06cc1128fa11693c1d9a4a64271672 100644
(file)
--- a/
youtube_dl/extractor/mitele.py
+++ b/
youtube_dl/extractor/mitele.py
@@
-136,11
+136,9
@@
class MiTeleIE(InfoExtractor):
video_id, 'Downloading gigya script')
# Get a appKey/uuid for getting the session key
video_id, 'Downloading gigya script')
# Get a appKey/uuid for getting the session key
- appKey_var = self._search_regex(
- r'value\s*\(\s*["\']appGridApplicationKey["\']\s*,\s*([0-9a-f]+)',
- gigya_sc, 'appKey variable')
appKey = self._search_regex(
appKey = self._search_regex(
- r'var\s+%s\s*=\s*["\']([0-9a-f]+)' % appKey_var, gigya_sc, 'appKey')
+ r'constant\s*\(\s*["\']_appGridApplicationKey["\']\s*,\s*["\']([0-9a-f]+)',
+ gigya_sc, 'appKey')
session_json = self._download_json(
'https://appgrid-api.cloud.accedo.tv/session',
session_json = self._download_json(
'https://appgrid-api.cloud.accedo.tv/session',