From ee57a1b41c4a1f653115a40bd6bf82006ff5cfb6 Mon Sep 17 00:00:00 2001 From: Jae Jin Choi Date: Sun, 19 Jan 2020 05:01:50 -0800 Subject: [PATCH] [afreecatv] fix 404 error It fixes the bug where it gives 404 error when the link contains HIDE files. Afreecatv seems to add HIDE files on some links which gives 404 error. --- youtube_dl/extractor/afreecatv.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/afreecatv.py b/youtube_dl/extractor/afreecatv.py index 6275e5209..7ae388f9f 100644 --- a/youtube_dl/extractor/afreecatv.py +++ b/youtube_dl/extractor/afreecatv.py @@ -313,7 +313,9 @@ class AfreecaTVIE(InfoExtractor): r'^(\d{8})_', key, 'upload date', default=None) file_duration = int_or_none(file_element.get('duration')) format_id = key if key else '%s_%s' % (video_id, file_num) - if determine_ext(file_url) == 'm3u8': + if "HIDE.mp4" in file_url: + continue + elif determine_ext(file_url) == 'm3u8': formats = self._extract_m3u8_formats( file_url, video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls',