From ab6015510d9f0e744e61eb12096dda4ff4a2c784 Mon Sep 17 00:00:00 2001 From: FrancescoGrazioso Date: Sun, 5 May 2024 17:47:17 +0200 Subject: [PATCH] fix wrong index passed while downloading tv series --- frontend/src/api/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/utils.ts b/frontend/src/api/utils.ts index 4f137ee..d2e9eb9 100644 --- a/frontend/src/api/utils.ts +++ b/frontend/src/api/utils.ts @@ -5,7 +5,7 @@ export const handleTVDownload = async (tvShowEpisodes: any[], item: MediaItem) = alertDownload(); for (const season of tvShowEpisodes) { const i = tvShowEpisodes.indexOf(season); - const res = (await downloadTvSeries(item.id, item.slug, i)).data; + const res = (await downloadTvSeries(item.id, item.slug, i + 1)).data; handleDownloadError(res); } };