projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e218b3
)
[megavideoz] Improve non-existing videos check
author
Sergey M․
<dstftw@gmail.com>
Sat, 18 Apr 2015 22:14:58 +0000
(
04:14
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 18 Apr 2015 22:14:58 +0000
(
04:14
+0600)
youtube_dl/extractor/megavideoz.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/megavideoz.py
b/youtube_dl/extractor/megavideoz.py
index a15b6a32acf4f318d6c861f85cc82feacce5002d..af7ff07ea1e5818c3e0c94511328fd26c2458657 100644
(file)
--- a/
youtube_dl/extractor/megavideoz.py
+++ b/
youtube_dl/extractor/megavideoz.py
@@
-32,7
+32,7
@@
class MegaVideozIE(InfoExtractor):
webpage = self._download_webpage(url, display_id)
- if
'>Video Not Found<' in webpage
:
+ if
any(p in webpage for p in ('>Video Not Found<', '>404 Error<'))
:
raise ExtractorError('Video %s does not exist' % video_id, expected=True)
config = self._download_xml(