From 6b1eadbe09ad7c885ddd08bf659c69cb9ed2da2c Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 28 Oct 2024 16:59:50 +0600 Subject: [PATCH] api/util/tests: add youtube hls tests --- api/src/util/tests.json | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/api/src/util/tests.json b/api/src/util/tests.json index 2d8d8708..3914deec 100644 --- a/api/src/util/tests.json +++ b/api/src/util/tests.json @@ -486,6 +486,53 @@ "code": 200, "status": "tunnel" } + }, { + "name": "hls video (h264, 1440p)", + "url": "https://www.youtube.com/watch?v=vPwaXytZcgI", + "params": { + "youtubeVideoCodec": "h264", + "videoQuality": "1440", + "youtubeHLS": true + }, + "expected": { + "code": 200, + "status": "tunnel" + } + }, { + "name": "hls video (vp9, 360p)", + "url": "https://www.youtube.com/watch?v=vPwaXytZcgI", + "params": { + "youtubeVideoCodec": "vp9", + "videoQuality": "360", + "youtubeHLS": true + }, + "expected": { + "code": 200, + "status": "tunnel" + } + }, { + "name": "hls video (audio mode)", + "url": "https://www.youtube.com/watch?v=vPwaXytZcgI", + "params": { + "downloadMode": "audio", + "youtubeHLS": true + }, + "expected": { + "code": 200, + "status": "tunnel" + } + }, { + "name": "hls video (audio mode, best format)", + "url": "https://www.youtube.com/watch?v=vPwaXytZcgI", + "params": { + "downloadMode": "audio", + "youtubeHLS": true, + "audioFormat": "best" + }, + "expected": { + "code": 200, + "status": "tunnel" + } } ], "vk": [