mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-02 04:16:38 +08:00
fix review regressions in titles and strm paths
This commit is contained in:
@@ -145,7 +145,7 @@ function stripLibraryCategoryAfterSTRMRoot(raw: string) {
|
||||
if (strmIndex < 0 || strmIndex >= parts.length - 1) return ''
|
||||
const tail = parts.slice(strmIndex + 1).filter((part) => part.trim())
|
||||
const categoryParts = categoryPartsFromPath(tail)
|
||||
if (!categoryParts?.length) return ''
|
||||
if (!categoryParts || categoryParts.length < 2) return ''
|
||||
return trimPath(parts.slice(0, strmIndex + 1).join('/'))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user