File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
library/src/commonMain/kotlin/project/pipepipe/app Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ object DatabaseOperations {
587587 suspend fun insertOrReplaceRemotePlaylist (
588588 serviceId : String ,
589589 name : String? ,
590- url : String? ,
590+ url : String ,
591591 thumbnailUrl : String? ,
592592 uploader : String? ,
593593 streamCount : Long? ,
Original file line number Diff line number Diff line change @@ -119,12 +119,10 @@ class PlaylistDetailViewModel : BaseViewModel<PlaylistUiState>(PlaylistUiState()
119119
120120 // Check if this remote playlist is bookmarked in database
121121 val playlistInfo = result.info as ? PlaylistInfo
122- val bookmarkedPlaylist = if (playlistInfo?.serviceId != null ) {
123- DatabaseOperations .getRemotePlaylistByUrl(playlistInfo.url)
124- } else null
122+ val bookmarkedPlaylist = DatabaseOperations .getRemotePlaylistByUrl(playlistInfo!! .url)
125123
126124 val finalPlaylistInfo = if (bookmarkedPlaylist != null ) {
127- playlistInfo? .copy(
125+ playlistInfo.copy(
128126 uid = bookmarkedPlaylist.uid,
129127 isPinned = bookmarkedPlaylist.is_pinned != 0L
130128 )
You can’t perform that action at this time.
0 commit comments