aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-12-31 22:18:01 +0700
committerSergey M․ <dstftw@gmail.com>2019-12-31 22:18:01 +0700
commit0a02732b566c080434dc88e68f75a5e3c0239c6a (patch)
treedaeb6237b8e640a309181bf11b4a709495d81680 /youtube_dl/extractor
parent2b845c408653683f8266665f03b145ecaad76f4d (diff)
[spankbang] Improve removed video detection (#23423)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/spankbang.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/spankbang.py b/youtube_dl/extractor/spankbang.py
index d02ce6b57..61ca902ce 100644
--- a/youtube_dl/extractor/spankbang.py
+++ b/youtube_dl/extractor/spankbang.py
@@ -65,7 +65,7 @@ class SpankBangIE(InfoExtractor):
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)