Skip to content

A feature-rich command-line audio/video downloader

[xminus] update tkn extraction regex

t0mm0313d4572ce78
diff --git a/youtube_dl/extractor/xminus.py b/youtube_dl/extractor/xminus.py
index a3fd8f48c8..f7e2e8ac95 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)))