Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c931c8a8 authored by Sebastiano Barezzi's avatar Sebastiano Barezzi
Browse files

Twelve: SubsonicDataSource: Fix a missed playlist ID cast to int

Change-Id: I2cd4d1ea87872728b2ee1145bd19c200a1c22af4
parent 33b49f71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ class SubsonicDataSource(
    }

    override suspend fun deletePlaylist(playlistUri: Uri) = subsonicClient.deletePlaylist(
        playlistUri.lastPathSegment!!.toInt()
        playlistUri.lastPathSegment!!
    ).map {
        onPlaylistsChanged()
    }
+1 −1
Original line number Diff line number Diff line
@@ -721,7 +721,7 @@ class SubsonicClient(
     * @param id ID of the playlist to delete, as obtained by [getPlaylists].
     */
    suspend fun deletePlaylist(
        id: Int,
        id: String,
    ) = ApiRequest.get<ResponseRoot>(
        listOf("deletePlaylist"),
        queryParameters = listOf(