Fix loading remote playlists in media browser
This commit is contained in:
parent
dd4dcc4076
commit
c2d4959854
1 changed files with 3 additions and 3 deletions
|
|
@ -147,7 +147,7 @@ class MediaBrowserPlaybackPreparer(
|
||||||
ID_BOOKMARKS -> extractPlayQueueFromPlaylistMediaId(
|
ID_BOOKMARKS -> extractPlayQueueFromPlaylistMediaId(
|
||||||
mediaId,
|
mediaId,
|
||||||
path,
|
path,
|
||||||
mediaIdUri.getQueryParameter(ID_URL) ?: throw parseError(mediaId)
|
mediaIdUri.getQueryParameter(ID_URL)
|
||||||
)
|
)
|
||||||
|
|
||||||
ID_HISTORY -> extractPlayQueueFromHistoryMediaId(mediaId, path)
|
ID_HISTORY -> extractPlayQueueFromHistoryMediaId(mediaId, path)
|
||||||
|
|
@ -169,7 +169,7 @@ class MediaBrowserPlaybackPreparer(
|
||||||
private fun extractPlayQueueFromPlaylistMediaId(
|
private fun extractPlayQueueFromPlaylistMediaId(
|
||||||
mediaId: String,
|
mediaId: String,
|
||||||
path: MutableList<String>,
|
path: MutableList<String>,
|
||||||
url: String,
|
url: String?,
|
||||||
): Single<PlayQueue> {
|
): Single<PlayQueue> {
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
throw parseError(mediaId)
|
throw parseError(mediaId)
|
||||||
|
|
@ -189,7 +189,7 @@ class MediaBrowserPlaybackPreparer(
|
||||||
}
|
}
|
||||||
|
|
||||||
ID_URL -> {
|
ID_URL -> {
|
||||||
if (path.size != 1) {
|
if (path.size != 1 || url == null) {
|
||||||
throw parseError(mediaId)
|
throw parseError(mediaId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue