Skip to content

Commit

Permalink
[spankbang] Improve removed video detection (#23423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey M․ committed Dec 31, 2019
1 parent 2b845c4 commit 0a02732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/spankbang.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _real_extract(self, url):
url.replace('/%s/embed' % video_id, '/%s/video' % video_id),
video_id, headers={'Cookie': 'country=US'})

if re.search(r'<[^>]+\bid=["\']video_removed', webpage):
if re.search(r'<[^>]+\b(?:id|class)=["\']video_removed', webpage):
raise ExtractorError(
'Video %s is not available' % video_id, expected=True)

Expand Down

0 comments on commit 0a02732

Please sign in to comment.