logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 164a4a5756f5a29b928dc1351522c094c0026266
parent 455951985b97bccff1cb347e496ce2ab06f1f46d
Author: Remita Amine <remitamine@gmail.com>
Date:   Wed, 16 Dec 2020 21:47:50 +0100

[anvato] Disable NFLTokenGenerator(closes #27449)

Diffstat:

Myoutube_dl/extractor/anvato.py4++--
Myoutube_dl/extractor/nfl.py1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/youtube_dl/extractor/anvato.py b/youtube_dl/extractor/anvato.py @@ -9,7 +9,7 @@ import re import time from .common import InfoExtractor -from .anvato_token_generator import NFLTokenGenerator +# from .anvato_token_generator import NFLTokenGenerator from ..aes import aes_encrypt from ..compat import compat_str from ..utils import ( @@ -205,7 +205,7 @@ class AnvatoIE(InfoExtractor): } _TOKEN_GENERATORS = { - 'GXvEgwyJeWem8KCYXfeoHWknwP48Mboj': NFLTokenGenerator, + # 'GXvEgwyJeWem8KCYXfeoHWknwP48Mboj': NFLTokenGenerator, } _API_KEY = '3hwbSuqqT690uxjNYBktSQpa5ZrpYYR0Iofx7NcJHyA' diff --git a/youtube_dl/extractor/nfl.py b/youtube_dl/extractor/nfl.py @@ -57,6 +57,7 @@ class NFLBaseIE(InfoExtractor): )/ ''' _VIDEO_CONFIG_REGEX = r'<script[^>]+id="[^"]*video-config-[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}[^"]*"[^>]*>\s*({.+})' + _WORKING = False def _parse_video_config(self, video_config, display_id): video_config = self._parse_json(video_config, display_id)