mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-22 09:04:32 +01:00
Json Decoding Exception Fix
This commit is contained in:
parent
c5e502de00
commit
a1053ee73c
@ -16,7 +16,7 @@ data class SaavnSong @OptIn(ExperimentalSerializationApi::class) constructor(
|
||||
val duration: String,
|
||||
val encrypted_media_path: String,
|
||||
val encrypted_media_url: String,
|
||||
val explicit_content: Int = 0,
|
||||
// val explicit_content: Int = 0,
|
||||
val has_lyrics: Boolean = false,
|
||||
val id: String,
|
||||
val image: String,
|
||||
@ -31,7 +31,7 @@ data class SaavnSong @OptIn(ExperimentalSerializationApi::class) constructor(
|
||||
val music_id: String,
|
||||
val origin: String? = null,
|
||||
val perma_url: String? = null,
|
||||
val play_count: Int = 0,
|
||||
// val play_count: Int = 0,
|
||||
val primary_artists: String,
|
||||
val primary_artists_id: String,
|
||||
val release_date: String, // Format - 2021-05-04
|
||||
|
@ -56,10 +56,6 @@ expect class Dir(
|
||||
fun addToLibrary(path: String)
|
||||
}
|
||||
|
||||
/*
|
||||
* Do we have Analytics Permission?
|
||||
* - Defaults to `False`
|
||||
* */
|
||||
val Dir.isAnalyticsEnabled get() = settings.getBooleanOrNull(AnalyticsKey) ?: false
|
||||
fun Dir.enableAnalytics() = settings.putBoolean(AnalyticsKey, true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user