mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-15 07:12:52 +08:00
[ard] don't stop extracting when possibly geoblocked
This commit is contained in:
parent
343536c60f
commit
c0ae75b45c
@ -478,7 +478,6 @@ class ARDBetaMediathekIE(ARDBaseIE):
|
|||||||
subtitles = {}
|
subtitles = {}
|
||||||
geoblocked = False
|
geoblocked = False
|
||||||
for widget in data.values():
|
for widget in data.values():
|
||||||
|
|
||||||
if widget.get('_geoblocked') is True:
|
if widget.get('_geoblocked') is True:
|
||||||
geoblocked = True
|
geoblocked = True
|
||||||
if '_duration' in widget:
|
if '_duration' in widget:
|
||||||
@ -512,10 +511,6 @@ class ARDBetaMediathekIE(ARDBaseIE):
|
|||||||
format_url, video_id, 'mp4', m3u8_id='hls',
|
format_url, video_id, 'mp4', m3u8_id='hls',
|
||||||
fatal=False))
|
fatal=False))
|
||||||
else:
|
else:
|
||||||
# HTTP formats are not available when geoblocked is True,
|
|
||||||
# other formats are fine though
|
|
||||||
if geoblocked:
|
|
||||||
continue
|
|
||||||
m = re.search(r'.*/([0-9]+)-[0-9]\..*$', format_url)
|
m = re.search(r'.*/([0-9]+)-[0-9]\..*$', format_url)
|
||||||
width = int_or_none(m.group(1)) if m else None
|
width = int_or_none(m.group(1)) if m else None
|
||||||
if width and width in self._FORMATS:
|
if width and width in self._FORMATS:
|
||||||
|
Loading…
Reference in New Issue
Block a user