aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/mitele.py
diff options
context:
space:
mode:
authorLogan B <einstein95@users.noreply.github.com>2017-05-20 02:54:57 +1200
committerSergey M <dstftw@gmail.com>2017-05-19 21:54:57 +0700
commit00cb0faca8a2875355651611bd90c4e8a856a2bf (patch)
tree3d1d01414e387f9ca1222c50ef3d99408b748e6d /youtube_dl/extractor/mitele.py
parentbfdf6fcc6677531a296d51ba97e110f0a4556fbf (diff)
[mitele] Update app key regex
Diffstat (limited to 'youtube_dl/extractor/mitele.py')
-rw-r--r--youtube_dl/extractor/mitele.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube_dl/extractor/mitele.py b/youtube_dl/extractor/mitele.py
index 28b743cca..964dc542c 100644
--- 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
- appKey_var = self._search_regex(
- r'value\s*\(\s*["\']appGridApplicationKey["\']\s*,\s*([0-9a-f]+)',
- gigya_sc, 'appKey variable')
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',