fucking hell

This commit is contained in:
localhost 2024-03-30 15:16:34 +01:00
parent 11c7a7b47f
commit 7385448d45
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ async function getPlaylistVideos(id) {
'User-Agent': 'Mozilla/5.0 (compatible; PreserveTube/0.0; +https://preservetube.com)'
}
})).json()
return json
return {
...json,
relatedStreams: json.relatedStreams.slice(0, 5)
}
}
async function getVideoDownload(url, quality) {