File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/player/mediabrowser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ class MediaBrowserPlaybackPreparer(
147147 ID_BOOKMARKS -> extractPlayQueueFromPlaylistMediaId(
148148 mediaId,
149149 path,
150- mediaIdUri.getQueryParameter(ID_URL ) ? : throw parseError(mediaId)
150+ mediaIdUri.getQueryParameter(ID_URL )
151151 )
152152
153153 ID_HISTORY -> extractPlayQueueFromHistoryMediaId(mediaId, path)
@@ -169,7 +169,7 @@ class MediaBrowserPlaybackPreparer(
169169 private fun extractPlayQueueFromPlaylistMediaId (
170170 mediaId : String ,
171171 path : MutableList <String >,
172- url : String ,
172+ url : String? ,
173173 ): Single <PlayQueue > {
174174 if (path.isEmpty()) {
175175 throw parseError(mediaId)
@@ -189,7 +189,7 @@ class MediaBrowserPlaybackPreparer(
189189 }
190190
191191 ID_URL -> {
192- if (path.size != 1 ) {
192+ if (path.size != 1 || url == null ) {
193193 throw parseError(mediaId)
194194 }
195195
You can’t perform that action at this time.
0 commit comments