mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
parent
cb88ae9eea
commit
2f83327a3c
@ -56,12 +56,7 @@ class PlaylistOptionsBottomSheet(
|
|||||||
// play the playlist in the background
|
// play the playlist in the background
|
||||||
getString(R.string.playOnBackground) -> {
|
getString(R.string.playOnBackground) -> {
|
||||||
runBlocking {
|
runBlocking {
|
||||||
val playlist =
|
val playlist = PlaylistsHelper.getPlaylist(playlistId)
|
||||||
if (playlistType == PlaylistType.PRIVATE) {
|
|
||||||
RetrofitInstance.authApi.getPlaylist(playlistId)
|
|
||||||
} else {
|
|
||||||
RetrofitInstance.api.getPlaylist(playlistId)
|
|
||||||
}
|
|
||||||
BackgroundHelper.playOnBackground(
|
BackgroundHelper.playOnBackground(
|
||||||
context = requireContext(),
|
context = requireContext(),
|
||||||
videoId = playlist.relatedStreams!![0].url!!.toID(),
|
videoId = playlist.relatedStreams!![0].url!!.toID(),
|
||||||
|
Loading…
Reference in New Issue
Block a user