Merge pull request #4338 from t0mm0/x-minus-fix
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 30 Nov 2014 16:11:05 +0000 (17:11 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 30 Nov 2014 16:11:05 +0000 (17:11 +0100)
[xminus] update tkn extraction regex

youtube_dl/extractor/xminus.py

index a3fd8f48c89e32c01f1fb85194f67a51d1f13592..f7e2e8ac9594ef45a1d329c6359e447796b70f4b 100644 (file)
@@ -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)))