fix: remove try/catch from getYoutubeDownloadUrl

This commit is contained in:
vchikalkin 2025-12-26 15:36:58 +03:00
parent c4339f67cb
commit 8eaa27e8b2

View File

@ -53,7 +53,6 @@ export interface DownloadRoot {
const qualityOrder = ['144p', '240p', '360p', '480p', '1080p', '720p'].reverse();
export async function getYoutubeDownloadUrl(url: string) {
try {
// get session cookie
await client.get('https://downr.org/.netlify/functions/analytics');
@ -96,8 +95,4 @@ export async function getYoutubeDownloadUrl(url: string) {
return {
play: downloadData.url,
};
} catch (error) {
console.error('Error fetching YouTube download URL:', error);
return { play: undefined };
}
}