musikr: simplify fixed extension stripping
This commit is contained in:
parent
6b8c0faf44
commit
a2af205c71
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ private class TagInterpreterImpl(private val interpretation: Interpretation) : T
|
|||
song.tags.name ?: requireNotNull(song.file.path.name).split('.').first()
|
||||
val songNameOrFileWithoutExtCorrect =
|
||||
song.tags.name
|
||||
?: requireNotNull(song.file.path.name).split('.').dropLast(1).joinToString(".")
|
||||
?: requireNotNull(song.file.path.name).substringBeforeLast(".")
|
||||
val albumNameOrDir = song.tags.albumName ?: song.file.path.directory.name
|
||||
|
||||
val musicBrainzId = song.tags.musicBrainzId?.toUuidOrNull()
|
||||
|
|
Loading…
Reference in a new issue