aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/anvato.py
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-05-29 05:07:35 -0500
committerGitHub <noreply@github.com>2023-05-29 10:07:35 +0000
commitf6e43d6fa9804c24525e1fed0a87782754dab7ed (patch)
treea8c35b68f5cd1198b05b4b105e3dad8a55a93198 /yt_dlp/extractor/anvato.py
parentfd5d93f7040f9776fd541f4e4079dad7d3b3fb4f (diff)
downloadhypervideo-pre-f6e43d6fa9804c24525e1fed0a87782754dab7ed.tar.lz
hypervideo-pre-f6e43d6fa9804c24525e1fed0a87782754dab7ed.tar.xz
hypervideo-pre-f6e43d6fa9804c24525e1fed0a87782754dab7ed.zip
[extractor/cbsnews] Overhaul extractors (#6681)
Closes #6565 Authored by: bashonly
Diffstat (limited to 'yt_dlp/extractor/anvato.py')
-rw-r--r--yt_dlp/extractor/anvato.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/yt_dlp/extractor/anvato.py b/yt_dlp/extractor/anvato.py
index 79bfe412b..0df50333c 100644
--- a/yt_dlp/extractor/anvato.py
+++ b/yt_dlp/extractor/anvato.py
@@ -336,7 +336,7 @@ class AnvatoIE(InfoExtractor):
elif media_format == 'm3u8-variant' or ext == 'm3u8':
# For some videos the initial m3u8 URL returns JSON instead
manifest_json = self._download_json(
- video_url, video_id, note='Downloading manifest JSON', errnote=False)
+ video_url, video_id, note='Downloading manifest JSON', fatal=False)
if manifest_json:
video_url = manifest_json.get('master_m3u8')
if not video_url:
@@ -392,14 +392,6 @@ class AnvatoIE(InfoExtractor):
url = smuggle_url(url, {'token': anvplayer_data['token']})
yield cls.url_result(url, AnvatoIE, video_id)
- def _extract_anvato_videos(self, webpage, video_id):
- anvplayer_data = self._parse_json(
- self._html_search_regex(
- self._ANVP_RE, webpage, 'Anvato player data', group='anvp'),
- video_id)
- return self._get_anvato_videos(
- anvplayer_data['accessKey'], anvplayer_data['video'], 'default') # cbslocal token = 'default'
-
def _real_extract(self, url):
url, smuggled_data = unsmuggle_url(url, {})
self._initialize_geo_bypass({