[xminus] update tkn extraction regex
authort0mm0 <dev@onairsoftware.co.uk>
Sun, 30 Nov 2014 16:04:04 +0000 (16:04 +0000)
committert0mm0 <dev@onairsoftware.co.uk>
Sun, 30 Nov 2014 16:04:04 +0000 (16:04 +0000)
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)))