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

View file

@ -1707,7 +1707,7 @@ class ResultViewModel2 : ViewModel() {
else -> { else -> {
if (response.type.isLiveStream()) if (response.type.isLiveStream())
R.string.play_livestream_button 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 R.string.play_movie_button
else null else null
} }
@ -2340,4 +2340,4 @@ class ResultViewModel2 : ViewModel() {
} }
} }
} }
} }