verbose downloading
This commit is contained in:
parent
8375cb5c03
commit
84fc5e6e2c
11 changed files with 337 additions and 63 deletions
|
@ -1328,18 +1328,6 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL
|
|||
ext.onVideoPlayed(video)
|
||||
}
|
||||
|
||||
val but = playerView.findViewById<ImageButton>(R.id.exo_download)
|
||||
if (video?.format == VideoType.CONTAINER || (loadData<Int>("settings_download_manager")
|
||||
?: 0) != 0
|
||||
) {
|
||||
//but.visibility = View.VISIBLE TODO: not sure if this is needed
|
||||
but.setOnClickListener {
|
||||
download(this, episode, animeTitle.text.toString())
|
||||
}
|
||||
} else {
|
||||
but.visibility = View.GONE
|
||||
}
|
||||
|
||||
val simpleCache = VideoCache.getInstance(this)
|
||||
val httpClient = okHttpClient.newBuilder().apply {
|
||||
ignoreAllSSLErrors()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue