1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-27 01:56:52 +00:00

[npo] Clarify token decryption algorithm source

This commit is contained in:
Sergey M․ 2015-07-02 20:20:09 +06:00
parent 8d06a62485
commit f5ca97e393

View 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):