projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d06a62
)
[npo] Clarify token decryption algorithm source
author
Sergey M․
<dstftw@gmail.com>
Thu, 2 Jul 2015 14:20:09 +0000
(20:20 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 2 Jul 2015 14:20:09 +0000
(20:20 +0600)
youtube_dl/extractor/npo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/npo.py
b/youtube_dl/extractor/npo.py
index 41d7e3fcc00d4d1500332f797d35fc1fc63acdd0..62d12b7a66c7722c0b51d15092a26aa9e1f03416 100644
(file)
--- a/
youtube_dl/extractor/npo.py
+++ b/
youtube_dl/extractor/npo.py
@@
-18,6
+18,7
@@
class NPOBaseIE(InfoExtractor):
video_id, note='Downloading token')
token = self._search_regex(
r'npoplayer\.token = "(.+?)"', token_page, 'token')
+ # Decryption algorithm extracted from http://npoplayer.omroep.nl/csjs/npoplayer-min.js
token_l = list(token)
first = second = None
for i in range(5, len(token_l) - 4):