projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42939b6
)
[xminus] update tkn extraction regex
author
t0mm0
<dev@onairsoftware.co.uk>
Sun, 30 Nov 2014 16:04:04 +0000
(16:04 +0000)
committer
t0mm0
<dev@onairsoftware.co.uk>
Sun, 30 Nov 2014 16:04:04 +0000
(16:04 +0000)
youtube_dl/extractor/xminus.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/xminus.py
b/youtube_dl/extractor/xminus.py
index a3fd8f48c89e32c01f1fb85194f67a51d1f13592..f7e2e8ac9594ef45a1d329c6359e447796b70f4b 100644
(file)
--- 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)))