Fix video exists check missing port (#23)

This commit is contained in:
Merlin 2023-09-21 12:31:19 +02:00 committed by GitHub
parent dc8fecf792
commit da4345a985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ async function videoExists(id) {
let response = await sendGet(path); let response = await sendGet(path);
if (!response.data) return false; if (!response.data) return false;
let access = await getAccess(); let access = await getAccess();
return new URL(`video/${id}/`, access.url).href; return new URL(`video/${id}/`, `${access.url}:${access.port}/`).href;
} }
async function getChannelCache() { async function getChannelCache() {