mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-08 04:25:24 +00:00
fix wrong index passed while downloading tv series
This commit is contained in:
parent
6e23c04847
commit
ab6015510d
@ -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);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user