mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +00:00
api/util/tests: add youtube hls tests
This commit is contained in:
parent
866427a7a7
commit
6b1eadbe09
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue