mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 11:07:56 +01:00
[npo] Clarify token decryption algorithm source
This commit is contained in:
parent
8d06a62485
commit
f5ca97e393
@ -18,6 +18,7 @@ def _get_token(self, video_id):
|
|||||||
video_id, note='Downloading token')
|
video_id, note='Downloading token')
|
||||||
token = self._search_regex(
|
token = self._search_regex(
|
||||||
r'npoplayer\.token = "(.+?)"', token_page, 'token')
|
r'npoplayer\.token = "(.+?)"', token_page, 'token')
|
||||||
|
# Decryption algorithm extracted from http://npoplayer.omroep.nl/csjs/npoplayer-min.js
|
||||||
token_l = list(token)
|
token_l = list(token)
|
||||||
first = second = None
|
first = second = None
|
||||||
for i in range(5, len(token_l) - 4):
|
for i in range(5, len(token_l) - 4):
|
||||||
|
Loading…
Reference in New Issue
Block a user