1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-11 17:02:52 +08:00

[ard] don't stop extracting when possibly geoblocked

This commit is contained in:
Niklas 2018-12-24 13:56:42 +01:00
parent 343536c60f
commit c0ae75b45c
No known key found for this signature in database
GPG Key ID: C7070AE8E74845B8

View File

@ -478,7 +478,6 @@ class ARDBetaMediathekIE(ARDBaseIE):
subtitles = {}
geoblocked = False
for widget in data.values():
if widget.get('_geoblocked') is True:
geoblocked = True
if '_duration' in widget:
@ -512,10 +511,6 @@ class ARDBetaMediathekIE(ARDBaseIE):
format_url, video_id, 'mp4', m3u8_id='hls',
fatal=False))
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)
width = int_or_none(m.group(1)) if m else None
if width and width in self._FORMATS: