fixed us url search not working

This commit is contained in:
stratuma 2024-06-20 21:27:19 +02:00
parent b18d4ea85c
commit 828ec65568

View File

@ -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--