fix: path now work on every device

This commit is contained in:
MasutaYunikon committed 2026-03-23 05:37:23 +01:00
1 parent 1511dd3ca3
commit 4aa6f99676
3 files changed
+29 -10

No files matched your search

+2 -2
View File
@@ -206,9 +206,9 @@ function buildResolvedEpisodes(sd: any, hash: string, seasonFilter?: number): an
let filePath: string | null = null
for (const p of paths) {
if (typeof p === 'string') {
if (!filePath) filePath = p // legacy fallback
if (!filePath) filePath = p.replace(/\\/g, '/') // legacy fallback
} else if (p?.infohash?.toLowerCase() === h) {
filePath = p.path
filePath = p.path.replace(/\\/g, '/')
break
}
}