logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 00a429bea3c2deacef5dbfb2b0b7e191b1dbaf62
parent d391b7e23d3d6c2af03c6329b4bf059ec095f33d
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 18 Jun 2018 04:04:13 +0700

[markiza] Expect 500 status code

Diffstat:

Myoutube_dl/extractor/markiza.py6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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)