From 828ec65568db8fff83515a8f3eb16351e830f1fd Mon Sep 17 00:00:00 2001 From: stratuma Date: Thu, 20 Jun 2024 21:27:19 +0200 Subject: [PATCH] fixed us url search not working --- pages/addanime.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/addanime.vue b/pages/addanime.vue index cd00ece..3f69881 100644 --- a/pages/addanime.vue +++ b/pages/addanime.vue @@ -680,7 +680,11 @@ const switchToSeason = async () => { if (url.value && url.value.includes('crunchyroll') && url.value.includes('/series/') && !CRselectedShow.value) { const seriesID = url.value.split('/') - CRselectedShow.value = await getCRSeries(seriesID[5]) + if (seriesID.length === 7) { + CRselectedShow.value = await getCRSeries(seriesID[5]) + } else { + CRselectedShow.value = await getCRSeries(seriesID[4]) + } if (!CRselectedShow.value) { alert('Series not found') isFetchingSeasons.value--