fix: remove try/catch from getYoutubeDownloadUrl
This commit is contained in:
parent
c4339f67cb
commit
8eaa27e8b2
@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user