Play n Dowload button fix for NS*W results. (#557)

* Play n Dowload button fix for NS*W results.

* Revert MainAPI Changes

* Tweaked ResultViewModel
This commit is contained in:
IndusAryan 2023-08-16 19:48:15 +05:30 committed by GitHub
parent d536dffaf5
commit d247640dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1707,7 +1707,7 @@ class ResultViewModel2 : ViewModel() {
else -> {
if (response.type.isLiveStream())
R.string.play_livestream_button
else if (response.type.isMovieType()) // this wont break compatibility as you only need to override isMovieType
else if (response.isMovie()) // this wont break compatibility as you only need to override isMovieType
R.string.play_movie_button
else null
}
@ -2340,4 +2340,4 @@ class ResultViewModel2 : ViewModel() {
}
}
}
}
}