aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/npo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-02 20:20:09 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-02 20:20:09 +0600
commitf5ca97e393badab4efa07e358b051318955d0b6f (patch)
treeec3c77e56ebc1148ecf6e2330d83b84bbdacd0a6 /youtube_dl/extractor/npo.py
parent8d06a62485ddd2cff396287f6b39614afd1e6033 (diff)
[npo] Clarify token decryption algorithm source
Diffstat (limited to 'youtube_dl/extractor/npo.py')
-rw-r--r--youtube_dl/extractor/npo.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py
index 41d7e3fcc..62d12b7a6 100644
--- 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):