fix: les fichiers non selectionner sur un torrent ne sont plus en "attente d'import" sur l'affichage de la serie
This commit is contained in:
1 parent
f1c40865da
commit
9ee4face73
1 file changed
+3
-2
@@ -321,8 +321,9 @@ function epProgress(ep: any): ActiveTorrent | null {
|
|||||||
const sessionDl = isDownloaded(key0) || isDownloaded(keyI)
|
const sessionDl = isDownloaded(key0) || isDownloaded(keyI)
|
||||||
if (active.files && active.files.length > 0) {
|
if (active.files && active.files.length > 0) {
|
||||||
const file = active.files.find(f => f.index === t.file_index)
|
const file = active.files.find(f => f.index === t.file_index)
|
||||||
// Afficher si : téléchargé cette session, fichier en cours (progress > 0), ou torrent terminé
|
// Avec données par fichier on se fie à la progression réelle du fichier précis,
|
||||||
if (file != null && (sessionDl || file.progress > 0 || active.state === 'seeding')) {
|
// pas à l'état global du torrent — évite d'afficher les fichiers non sélectionnés (progress 0).
|
||||||
|
if (file != null && (sessionDl || file.progress > 0)) {
|
||||||
return { ...active, progress: file.progress }
|
return { ...active, progress: file.progress }
|
||||||
}
|
}
|
||||||
if (!sessionDl) continue
|
if (!sessionDl) continue
|
||||||
|
|||||||
Reference in new issue
Block a user