all: minor cleanup
This commit is contained in:
@@ -39,6 +39,7 @@ import org.oxycblt.auxio.music.info.ReleaseType
|
||||
import org.oxycblt.auxio.music.metadata.parseId3GenreNames
|
||||
import org.oxycblt.auxio.music.metadata.parseMultiValue
|
||||
import org.oxycblt.auxio.playback.replaygain.ReplayGainAdjustment
|
||||
import org.oxycblt.auxio.util.logD
|
||||
import org.oxycblt.auxio.util.nonZeroOrNull
|
||||
import org.oxycblt.auxio.util.toUuidOrNull
|
||||
import org.oxycblt.auxio.util.unlikelyToBeNull
|
||||
@@ -217,6 +218,7 @@ class SongImpl(private val rawSong: RawSong, musicSettings: MusicSettings) : Son
|
||||
}
|
||||
|
||||
check(_genres.isNotEmpty()) { "Malformed song: No genres" }
|
||||
logD("$this $rawGenres $_genres]")
|
||||
for (i in _genres.indices) {
|
||||
// Non-destructively reorder the linked genres so that they align with
|
||||
// the genre ordering within the song metadata.
|
||||
|
||||
@@ -364,7 +364,7 @@ private class Api21MediaStoreExtractor(context: Context, musicSettings: MusicSet
|
||||
arrayOf(
|
||||
MediaStore.Audio.AudioColumns.TRACK,
|
||||
// Below API 29, we are restricted to the absolute path (Called DATA by
|
||||
// MedaStore) when working with audio files.
|
||||
// MediaStore) when working with audio files.
|
||||
MediaStore.Audio.AudioColumns.DATA)
|
||||
|
||||
// The selector should be configured to convert the given directories instances to their
|
||||
|
||||
@@ -39,6 +39,7 @@ import org.oxycblt.auxio.util.logE
|
||||
* @author Alexander Capehart
|
||||
*
|
||||
* TODO: Communicate errors
|
||||
* TODO: How to handle empty playlists that appear because all of their songs have disappeared?
|
||||
*/
|
||||
interface UserLibrary {
|
||||
/** The current user-defined playlists. */
|
||||
|
||||
Reference in New Issue
Block a user