From 844b43729f2a237682b80d4b0310b041120a8d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20G=C3=BCndo=C4=9Fdu?= <47444442+guendto@users.noreply.github.com> Date: Wed, 23 Jun 2021 13:25:53 +0300 Subject: [PATCH] refactor(plugin/youtube/parser): workaround the age-gate (http/404) ytdl-org/youtube-dl#29333, kudos. --- src/jomiel/plugin/media/youtube/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jomiel/plugin/media/youtube/parser.py b/src/jomiel/plugin/media/youtube/parser.py index 9637d32..74cb0ff 100644 --- a/src/jomiel/plugin/media/youtube/parser.py +++ b/src/jomiel/plugin/media/youtube/parser.py @@ -190,6 +190,8 @@ def _video_info_request(): "video_id": v_id, "eurl": f"https://youtube.googleapis.com/v/{v_id}", "html5": 1, + "c": "TVHTML5", + "cver": "6.20180913", }, ) uri = f"https://www.youtube.com/get_video_info?{data}"