aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/anvato.py
diff options
context:
space:
mode:
authorRemita Amine <[email protected]>2020-12-21 09:02:45 +0100
committerRemita Amine <[email protected]>2020-12-21 09:02:45 +0100
commit5b72f5b74fb144afb9001d43be34e34ad8fbb39e (patch)
tree96b831099b0e230ce3e3c7577672876e94f4ab50 /youtube_dl/extractor/anvato.py
parentbfa345744d055b2420f82336b339a51a9d73b28a (diff)
downloadyoutube-dl-5b72f5b74fb144afb9001d43be34e34ad8fbb39e.tar.gz
youtube-dl-5b72f5b74fb144afb9001d43be34e34ad8fbb39e.zip
[anvato] remove NFLTokenGenerator
until a better solution is introduced that: - works with lazy_extractors - allows for 3rd party token generators
Diffstat (limited to 'youtube_dl/extractor/anvato.py')
-rw-r--r--youtube_dl/extractor/anvato.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/youtube_dl/extractor/anvato.py b/youtube_dl/extractor/anvato.py
index 98c5e6d38..b7398563b 100644
--- a/youtube_dl/extractor/anvato.py
+++ b/youtube_dl/extractor/anvato.py
@@ -9,7 +9,6 @@ import re
import time
from .common import InfoExtractor
-# from .anvato_token_generator import NFLTokenGenerator
from ..aes import aes_encrypt
from ..compat import compat_str
from ..utils import (
@@ -204,10 +203,6 @@ class AnvatoIE(InfoExtractor):
'telemundo': 'anvato_mcp_telemundo_web_prod_c5278d51ad46fda4b6ca3d0ea44a7846a054f582'
}
- _TOKEN_GENERATORS = {
- # 'GXvEgwyJeWem8KCYXfeoHWknwP48Mboj': NFLTokenGenerator,
- }
-
_API_KEY = '3hwbSuqqT690uxjNYBktSQpa5ZrpYYR0Iofx7NcJHyA'
_ANVP_RE = r'<script[^>]+\bdata-anvp\s*=\s*(["\'])(?P<anvp>(?:(?!\1).)+)\1'
@@ -267,12 +262,9 @@ class AnvatoIE(InfoExtractor):
'anvrid': anvrid,
'anvts': server_time,
}
- if access_key in self._TOKEN_GENERATORS:
- api['anvstk2'] = self._TOKEN_GENERATORS[access_key].generate(self, access_key, video_id)
- else:
- api['anvstk'] = md5_text('%s|%s|%d|%s' % (
- access_key, anvrid, server_time,
- self._ANVACK_TABLE.get(access_key, self._API_KEY)))
+ api['anvstk'] = md5_text('%s|%s|%d|%s' % (
+ access_key, anvrid, server_time,
+ self._ANVACK_TABLE.get(access_key, self._API_KEY)))
return self._download_json(
video_data_url, video_id, transform_source=strip_jsonp,