fix: season 0 resolved is no longer skipped in the worker

This commit is contained in:
MasutaYunikon committed 2026-03-20 22:02:17 +01:00
1 parent 2a1dcddd90
commit 232ede4292
1 file changed
+2 -1
+2 -1
View File
@@ -314,7 +314,8 @@ async function organizeTorrent(hash: string, name: string, savePath: string) {
const filePath: string[] = tf.path
// Skip les fichiers dans des dossiers bonus/musique/images
if (isInExcludedFolder(filePath)) {
const tfMeta = torrentFiles.find((tf: any) => tf.filename === filename)
if (isInExcludedFolder(filePath) && tfMeta?.season_number == null) {
log(`[organize] skip bonus: ${filename}`)
result.skipped++
continue