projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d391b7e
)
[markiza] Expect 500 status code
author
Sergey M․
<dstftw@gmail.com>
Sun, 17 Jun 2018 21:04:13 +0000
(
04:04
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 17 Jun 2018 21:54:52 +0000
(
04:54
+0700)
youtube_dl/extractor/markiza.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/markiza.py
b/youtube_dl/extractor/markiza.py
index e6bfab1141da2638fd20e26bda0cf2d7bd2bbd1e..def960a0c5eea1a41fce7202c7a9012300498ab4 100644
(file)
--- a/
youtube_dl/extractor/markiza.py
+++ b/
youtube_dl/extractor/markiza.py
@@
-110,7
+110,11
@@
class MarkizaPageIE(InfoExtractor):
def _real_extract(self, url):
playlist_id = self._match_id(url)
- webpage = self._download_webpage(url, playlist_id)
+ webpage = self._download_webpage(
+ # Downloading for some hosts (e.g. dajto, doma) fails with 500
+ # although everything seems to be OK, so considering 500
+ # status code to be expected.
+ url, playlist_id, expected_status=500)
entries = [
self.url_result('http://videoarchiv.markiza.sk/video/%s' % video_id)