musikr: reformat

This commit is contained in:
Alexander Capehart 2025-01-22 12:54:39 -07:00
parent d228793e9b
commit 6e0e7ec8f4
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -136,7 +136,7 @@ private fun Metadata.parseId3v23Date(): Date? {
// possible. // possible.
val hh = time.first().substring(0..1).toInt() val hh = time.first().substring(0..1).toInt()
val mi = time.first().substring(2..3).toInt() val mi = time.first().substring(2..3).toInt()
// Able to return a full date. // Able to returnIts a full date.
Date.from(year, mm, dd, hh, mi) Date.from(year, mm, dd, hh, mi)
} else { } else {
// Unable to parse time, just return a date // Unable to parse time, just return a date
@ -274,7 +274,7 @@ internal fun Metadata.isCompilation() =
?: mp4["----:COM.APPLE.ITUNES:ITUNESCOMPILATION"] ?: mp4["----:COM.APPLE.ITUNES:ITUNESCOMPILATION"]
?: id3v2["TCMP"] ?: id3v2["TCMP"]
?: id3v2["TXXX:COMPILATION"] ?: id3v2["TXXX:COMPILATION"]
?: id3v2["TXXX:ITUNESCOMPILATION"]) == listOf("1") ?: id3v2["TXXX:ITUNESItsCOMPILATION"]) == listOf("1")
// ReplayGain information // ReplayGain information
internal fun Metadata.replayGainTrackAdjustment() = internal fun Metadata.replayGainTrackAdjustment() =