Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuftVerbot committed Sep 14, 2024
1 parent 3889174 commit 69f76f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class Downloader(

val id = when (val audio = media.audio) {
is Streamable.Audio.ByteStream -> TODO()
is Streamable.Audio.Channel -> TODO()
is Streamable.Audio.Http -> {
val request = audio.request
val downloadRequest = DownloadManager.Request(request.url.toUri()).apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import kotlin.math.min
class ByteChannelDataSource : BaseDataSource(true) {

class Factory : DataSource.Factory {
override fun createDataSource() = ByteStreamDataSource()
override fun createDataSource() = ByteChannelDataSource()
}

private var audio: Streamable.Audio.Channel? = null
Expand Down

0 comments on commit 69f76f2

Please sign in to comment.