mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
add fatal to _call_api
This commit is contained in:
parent
dcc4a1672b
commit
3585397c7f
1 changed files with 2 additions and 2 deletions
|
@ -117,9 +117,9 @@ def _preconnect_link(self):
|
||||||
r'<link\b[^>]+\brel\s*=\s*"preconnect"[^>]+href\s*=\s*"([^"]+)"',
|
r'<link\b[^>]+\brel\s*=\s*"preconnect"[^>]+href\s*=\s*"([^"]+)"',
|
||||||
self._download_webpage('https://fifa.com/', None), 'Preconnect Link')
|
self._download_webpage('https://fifa.com/', None), 'Preconnect Link')
|
||||||
|
|
||||||
def _call_api(self, path, video_id, note=None, query=None):
|
def _call_api(self, path, video_id, note=None, query=None, fatal=True):
|
||||||
return self._download_json(
|
return self._download_json(
|
||||||
f'{self._preconnect_link}/{path}', video_id, note, query=query)
|
f'{self._preconnect_link}/{path}', video_id, note, query=query, fatal=fatal)
|
||||||
|
|
||||||
|
|
||||||
class FifaIE(FifaBaseIE):
|
class FifaIE(FifaBaseIE):
|
||||||
|
|
Loading…
Reference in a new issue