mirror of https://github.com/yt-dlp/yt-dlp.git
parent
dc88e9be03
commit
bd1c792327
|
@ -33,12 +33,19 @@ class WakanimIE(InfoExtractor):
|
||||||
'url': 'https://www.wakanim.tv/de/v2/catalogue/episode/7843/sword-art-online-alicization-omu-arc-2-folge-15-omu',
|
'url': 'https://www.wakanim.tv/de/v2/catalogue/episode/7843/sword-art-online-alicization-omu-arc-2-folge-15-omu',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
_GEO_BYPASS = False
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
if 'Geoblocking' in webpage:
|
||||||
|
if '/de/' in url:
|
||||||
|
self.raise_geo_restricted(countries=['DE', 'AT', 'CH'])
|
||||||
|
else:
|
||||||
|
self.raise_geo_restricted(countries=['RU'])
|
||||||
|
|
||||||
manifest_url = urljoin(url, self._search_regex(
|
manifest_url = urljoin(url, self._search_regex(
|
||||||
r'file\s*:\s*(["\'])(?P<url>(?:(?!\1).)+)\1', webpage, 'manifest url',
|
r'file\s*:\s*(["\'])(?P<url>(?:(?!\1).)+)\1', webpage, 'manifest url',
|
||||||
group='url'))
|
group='url'))
|
||||||
|
|
Loading…
Reference in New Issue