mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix player issue and provider issue
This commit is contained in:
parent
f1c563e3bc
commit
2fbdd058f4
3 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,7 @@ class MeloMovieProvider : MainAPI() {
|
|||
val type = findUsingRegex("var posttype = ([0-9]*)")?.toInt() ?: return null
|
||||
val titleInfo = document.selectFirst("div.movie_detail_title > div > div > h1")
|
||||
val title = titleInfo.ownText()
|
||||
val year = titleInfo.selectFirst("> a").text().replace("(", "").replace(")", "").toIntOrNull()
|
||||
val year = titleInfo.selectFirst("> a")?.text()?.replace("(", "")?.replace(")", "")?.toIntOrNull()
|
||||
val plot = document.selectFirst("div.col-lg-12 > p").text()
|
||||
|
||||
if (type == 1) { // MOVIE
|
||||
|
|
|
@ -39,6 +39,7 @@ suspend fun <T> safeApiCall(
|
|||
Log.d("ApiError", "-------------------------------------------------------------------")
|
||||
Log.d("ApiError", "safeApiCall: " + throwable.localizedMessage)
|
||||
Log.d("ApiError", "safeApiCall: " + throwable.message)
|
||||
throwable.printStackTrace()
|
||||
Log.d("ApiError", "-------------------------------------------------------------------")
|
||||
when (throwable) {
|
||||
/*is HttpException -> {
|
||||
|
|
|
@ -1075,6 +1075,7 @@ class PlayerFragment : Fragment() {
|
|||
sources.indexOf(getCurrentUrl())) { _, which ->
|
||||
//val speed = speedsText[which]
|
||||
//Toast.makeText(requireContext(), "$speed selected.", Toast.LENGTH_SHORT).show()
|
||||
playbackPosition = if(this::exoPlayer.isInitialized) exoPlayer.currentPosition else 0
|
||||
setMirrorId(sources[which].getId())
|
||||
initPlayer(getCurrentUrl())
|
||||
|
||||
|
|
Loading…
Reference in a new issue