projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b845c4
)
[spankbang] Improve removed video detection (#23423)
author
Sergey M․
<dstftw@gmail.com>
Tue, 31 Dec 2019 15:18:01 +0000
(22:18 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 31 Dec 2019 15:18:01 +0000
(22:18 +0700)
youtube_dl/extractor/spankbang.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/spankbang.py
b/youtube_dl/extractor/spankbang.py
index d02ce6b574485e62f917cfa95f7388d9ded4acee..61ca902ce286e6274c7d5776bd10c265a023643f 100644
(file)
--- 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'<[^>]+\b
id
=["\']video_removed', webpage):
+ if re.search(r'<[^>]+\b
(?:id|class)
=["\']video_removed', webpage):
raise ExtractorError(
'Video %s is not available' % video_id, expected=True)