]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[npo] Clarify token decryption algorithm source
authorSergey M․ <dstftw@gmail.com>
Thu, 2 Jul 2015 14:20:09 +0000 (20:20 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 2 Jul 2015 14:20:09 +0000 (20:20 +0600)
youtube_dl/extractor/npo.py

index 41d7e3fcc00d4d1500332f797d35fc1fc63acdd0..62d12b7a66c7722c0b51d15092a26aa9e1f03416 100644 (file)
@@ -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):