Remove unused function proxyVideoUrl

This commit is contained in:
WardPearce
2025-11-04 20:48:44 +13:00
parent 83465b45f0
commit 08cf47ce5f
2 changed files with 1 additions and 8 deletions
-7
View File
@@ -23,13 +23,6 @@ export function decodeHtmlCharCodes(str: string): string {
return decode(str);
}
export function proxyVideoUrl(source: string): string {
const rawSrc = new URL(source);
rawSrc.host = get(instanceStore).replace('http://', '').replace('https://', '');
return rawSrc.toString();
}
export function unsafeRandomItem(array: any[]): any {
return array[Math.floor(Math.random() * array.length)];
}
+1 -1
View File
@@ -55,7 +55,7 @@ export function phaseDescription(
// Handle youtubejs timestamps
if (
fallbackPatch === 'youtubejs' &&
href.includes(`https://www.youtube.com/watch?v=${videoId}&t=`)
href.includes(`https://www.youtube.com/watch?v=${videoId}`)
) {
const url = new URL(href);
const timeParam = url.searchParams.get('t') || '0';