mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-31 11:35:13 +02:00
[snagfilms] Capture not available error
This commit is contained in:
parent
9fbfc9bd4d
commit
a42a1bb09d
@ -43,7 +43,7 @@ def _real_extract(self, url):
|
||||
|
||||
if '>This film is not playable in your area.<' in webpage:
|
||||
raise ExtractorError(
|
||||
'This film is not playable in your area.', expected=True)
|
||||
'Film %s is not playable in your area.' % video_id, expected=True)
|
||||
|
||||
formats = []
|
||||
for source in self._parse_json(js_to_json(self._search_regex(
|
||||
@ -116,6 +116,10 @@ def _real_extract(self, url):
|
||||
|
||||
webpage = self._download_webpage(url, display_id)
|
||||
|
||||
if ">Sorry, the Film you're looking for is not available.<" in webpage:
|
||||
raise ExtractorError(
|
||||
'Film %s is not available.' % display_id, expected=True)
|
||||
|
||||
film_id = self._search_regex(r'filmId=([\da-f-]{36})"', webpage, 'film id')
|
||||
|
||||
snag = self._parse_json(
|
||||
|
Loading…
Reference in New Issue
Block a user