mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2025-03-01 03:05:46 +00:00
Use ignorePathParameters in AudioMediaStreamResolver
This commit is contained in:
parent
600ce9b870
commit
a373d8be38
@ -5,7 +5,9 @@ import org.jellyfin.playback.core.mediastream.MediaStream
|
||||
import org.jellyfin.playback.core.queue.item.QueueEntry
|
||||
import org.jellyfin.playback.jellyfin.queue.item.BaseItemDtoUserQueueEntry
|
||||
import org.jellyfin.sdk.api.client.ApiClient
|
||||
import org.jellyfin.sdk.api.client.exception.MissingBaseUrlException
|
||||
import org.jellyfin.sdk.api.client.extensions.audioApi
|
||||
import org.jellyfin.sdk.api.client.util.UrlBuilder
|
||||
import org.jellyfin.sdk.model.api.BaseItemKind
|
||||
import org.jellyfin.sdk.model.api.DeviceProfile
|
||||
|
||||
@ -63,8 +65,12 @@ class AudioMediaStreamResolver(
|
||||
"MediaSource supports transcoding but transcodingUrl is null"
|
||||
}
|
||||
|
||||
// TODO Use ignorePathParameters=true with SDK 1.5
|
||||
api.createUrl(url)
|
||||
// TODO Use api.createUrl() with SDK 1.5
|
||||
UrlBuilder.buildUrl(
|
||||
api.baseUrl ?: throw MissingBaseUrlException(),
|
||||
url,
|
||||
ignorePathParameters = true,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user