1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-02-22 14:00:11 +00:00

Fix loading remote playlists in media browser

This commit is contained in:
Stypox 2025-02-16 10:49:20 +01:00
parent e5458bcb14
commit 1d98518bfa
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -147,7 +147,7 @@ class MediaBrowserPlaybackPreparer(
ID_BOOKMARKS -> extractPlayQueueFromPlaylistMediaId(
mediaId,
path,
mediaIdUri.getQueryParameter(ID_URL) ?: throw parseError(mediaId)
mediaIdUri.getQueryParameter(ID_URL)
)
ID_HISTORY -> extractPlayQueueFromHistoryMediaId(mediaId, path)
@ -169,7 +169,7 @@ class MediaBrowserPlaybackPreparer(
private fun extractPlayQueueFromPlaylistMediaId(
mediaId: String,
path: MutableList<String>,
url: String,
url: String?,
): Single<PlayQueue> {
if (path.isEmpty()) {
throw parseError(mediaId)
@ -189,7 +189,7 @@ class MediaBrowserPlaybackPreparer(
}
ID_URL -> {
if (path.size != 1) {
if (path.size != 1 || url == null) {
throw parseError(mediaId)
}