mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 20:15:24 +00:00
fix wrong index passed while downloading tv series
This commit is contained in:
parent
4c7eaf9eca
commit
75b13f25dc
@ -5,7 +5,7 @@ export const handleTVDownload = async (tvShowEpisodes: any[], item: MediaItem) =
|
|||||||
alertDownload();
|
alertDownload();
|
||||||
for (const season of tvShowEpisodes) {
|
for (const season of tvShowEpisodes) {
|
||||||
const i = tvShowEpisodes.indexOf(season);
|
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);
|
handleDownloadError(res);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user