Browse Source

[npo] Clarify token decryption algorithm source

totalwebcasting
Sergey M․ 10 years ago
parent
commit
f5ca97e393
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      youtube_dl/extractor/npo.py

+ 1
- 0
youtube_dl/extractor/npo.py 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):


Loading…
Cancel
Save