Improve file name parsing fallback.

This commit is contained in:
Damiano Galassi committed 2018-10-22 10:32:24 +02:00
1 parent ced399bd31
commit e29abf03bb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ extension MP42File {
return MetadataSearchTerms.movie(title: title)
}
else if let url = firstSourceURL() ?? fallbackURL {
let parsed = url.lastPathComponent.parsedAsFilename()
let parsed = url.deletingPathExtension().lastPathComponent.parsedAsFilename()
switch parsed {
case .none: