Explorar o código

Merge pull request #4338 from t0mm0/x-minus-fix

[xminus] update tkn extraction regex
Philipp Hagemeister %!s(int64=11) %!d(string=hai) anos
pai
achega
283ac8d592
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/xminus.py

+ 1 - 1
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)))