0.12.0-8 Fix Path

This commit is contained in:
2026-03-23 06:37:21 +00:00
parent 458f1fde2c
commit 50d5fccd95
7 changed files with 12 additions and 10 deletions
+3 -1
View File
@@ -391,7 +391,9 @@ function inferMediaProfileFromFsTypeAndModel(rawFsType, rawModel) {
}
function isLikelyExtensionlessDvdImageFile(filePath, knownSize = null) {
if (path.extname(String(filePath || '')).toLowerCase() !== '') {
const ext = path.extname(String(filePath || '')).toLowerCase();
// Only treat as having a real extension if it looks like one (e.g. ".mkv", not ". 1")
if (ext !== '' && /^\.[a-z0-9]+$/.test(ext)) {
return false;
}