From cd4f6be96faf012f75409f39943dfbf46c8b3e2f Mon Sep 17 00:00:00 2001 From: thlor Date: Mon, 6 Mar 2023 13:49:08 +0100 Subject: [PATCH 1/2] [indavideo] update API URL Without the added `/12/` suffix all downloads failed with HTTP 403. The suffix fixes access for all tested videos. --- youtube_dl/extractor/indavideo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/indavideo.py b/youtube_dl/extractor/indavideo.py index 4c16243ec..b9d58e976 100644 --- a/youtube_dl/extractor/indavideo.py +++ b/youtube_dl/extractor/indavideo.py @@ -58,7 +58,7 @@ class IndavideoEmbedIE(InfoExtractor): video_id = self._match_id(url) video = self._download_json( - 'https://amfphp.indavideo.hu/SYm0json.php/player.playerHandler.getVideoData/%s' % video_id, + 'https://amfphp.indavideo.hu/SYm0json.php/player.playerHandler.getVideoData/%s/12/' % video_id, video_id)['data'] title = video['title'] From 004e87c72dddb8fdeb63a5b4d8e60757e05e0d21 Mon Sep 17 00:00:00 2001 From: thlor Date: Mon, 6 Mar 2023 13:52:30 +0100 Subject: [PATCH 2/2] [indavideo] update examples Remove videos that have been deleted, add new examples --- youtube_dl/extractor/indavideo.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/indavideo.py b/youtube_dl/extractor/indavideo.py index b9d58e976..d2e02f94d 100644 --- a/youtube_dl/extractor/indavideo.py +++ b/youtube_dl/extractor/indavideo.py @@ -42,10 +42,9 @@ class IndavideoEmbedIE(InfoExtractor): # Some example URLs covered by generic extractor: # http://indavideo.hu/video/Vicces_cica_1 - # http://index.indavideo.hu/video/2015_0728_beregszasz - # http://auto.indavideo.hu/video/Sajat_utanfutoban_a_kis_tacsko - # http://erotika.indavideo.hu/video/Amator_tini_punci - # http://film.indavideo.hu/video/f_hrom_nagymamm_volt + # https://index.indavideo.hu/video/Kibeszelo_Nemeth_David + # https://auto.indavideo.hu/video/DF_Coyote_Mustang_Buli_-_SportVerda + # https://film.indavideo.hu/video/f_menjek_maradjak # http://palyazat.indavideo.hu/video/Embertelen_dal_Dodgem_egyuttes @staticmethod