aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-30 17:11:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-30 17:11:05 +0100
commit283ac8d5922087a50f7c4d4884ff973bac5f76c9 (patch)
treec04461cc450aa02e0a8078c8c4514e944177d115
parent42939b6129833e3fb9f4c22e4e9f4056df193af2 (diff)
parent313d4572ce782a639e42b454edadc0b24d7799a1 (diff)
downloadyoutube-dl-283ac8d5922087a50f7c4d4884ff973bac5f76c9.tar.xz
Merge pull request #4338 from t0mm0/x-minus-fix
[xminus] update tkn extraction regex
-rw-r--r--youtube_dl/extractor/xminus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xminus.py b/youtube_dl/extractor/xminus.py
index a3fd8f48c..f7e2e8ac9 100644
--- a/youtube_dl/extractor/xminus.py
+++ b/youtube_dl/extractor/xminus.py
@@ -50,7 +50,7 @@ class XMinusIE(InfoExtractor):
webpage, 'view count', fatal=False))
enc_token = self._html_search_regex(
- r'data-mt="(.*?)"', webpage, 'enc_token')
+ r'minus_track\.tkn="(.+?)"', webpage, 'enc_token')
token = ''.join(
c if pos == 3 else compat_chr(compat_ord(c) - 1)
for pos, c in enumerate(reversed(enc_token)))