mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 18:34:32 +01:00
Added check for robot detection on player page
This commit is contained in:
parent
ad60ff4700
commit
dae0247122
@ -162,6 +162,10 @@ class FunimationIE(InfoExtractor):
|
||||
text_tracks_json_string = self._search_regex(
|
||||
r'"textTracks": (\[{.+?}\])',
|
||||
player_page, 'player data', default='')
|
||||
if not text_tracks_json_string:
|
||||
# Funimation player page unavailable due to robot detection.
|
||||
# Don't warn so that unit tests still pass this step.
|
||||
return {}
|
||||
text_tracks = self._parse_json(
|
||||
text_tracks_json_string, display_id, js_to_json, fatal=False) or []
|
||||
subtitles = {}
|
||||
|
Loading…
Reference in New Issue
Block a user