fixed ocean search hint & bflix url

This commit is contained in:
LagradOst 2022-04-30 22:31:32 +02:00
parent 30fddb0360
commit d30788f47c
4 changed files with 18 additions and 2 deletions

View file

@ -8,7 +8,7 @@ import com.lagradost.cloudstream3.utils.loadExtractor
import org.jsoup.Jsoup import org.jsoup.Jsoup
open class BflixProvider : MainAPI() { open class BflixProvider : MainAPI() {
override var mainUrl = "https://bflix.to" override var mainUrl = "https://bflix.ru"
override var name = "Bflix" override var name = "Bflix"
override val hasMainPage = true override val hasMainPage = true
override val hasChromecastSupport = true override val hasChromecastSupport = true

View file

@ -409,6 +409,11 @@ class HomeFragment : Fragment() {
setKey(HOMEPAGE_API, apiName) setKey(HOMEPAGE_API, apiName)
home_api_fab?.text = apiName home_api_fab?.text = apiName
home_provider_name?.text = apiName home_provider_name?.text = apiName
try {
home_search?.queryHint = getString(R.string.search_hint_site).format(apiName)
} catch (e: Exception) {
logError(e)
}
home_provider_meta_info?.isVisible = false home_provider_meta_info?.isVisible = false
getApiFromNameNull(apiName)?.let { currentApi -> getApiFromNameNull(apiName)?.let { currentApi ->
@ -880,7 +885,11 @@ class HomeFragment : Fragment() {
for (syncApi in OAuth2API.OAuth2Apis) { for (syncApi in OAuth2API.OAuth2Apis) {
val login = syncApi.loginInfo() val login = syncApi.loginInfo()
val pic = login?.profilePicture val pic = login?.profilePicture
if (home_profile_picture?.setImage(pic, errorImageDrawable = errorProfilePic) == true) { if (home_profile_picture?.setImage(
pic,
errorImageDrawable = errorProfilePic
) == true
) {
home_profile_picture_holder?.isVisible = true home_profile_picture_holder?.isVisible = true
break break
} }

View file

@ -140,6 +140,11 @@ class QuickSearchFragment : Fragment() {
SearchHelper.handleSearchClickCallback(activity, callback) SearchHelper.handleSearchClickCallback(activity, callback)
} }
} }
try {
quick_search?.queryHint = getString(R.string.search_hint_site).format(providers?.first())
} catch (e: Exception) {
logError(e)
}
} else { } else {
quick_search_master_recycler?.adapter = quick_search_master_recycler?.adapter =
ParentItemAdapter(mutableListOf(), { callback -> ParentItemAdapter(mutableListOf(), { callback ->

View file

@ -90,6 +90,8 @@
<string name="title_settings">Settings</string> <string name="title_settings">Settings</string>
<string name="search_hint">Search…</string> <string name="search_hint">Search…</string>
<string name="search_hint_site" formatted="true">Search %s…</string>
<string name="no_data">No Data</string> <string name="no_data">No Data</string>
<string name="episode_more_options_des">More Options</string> <string name="episode_more_options_des">More Options</string>
<string name="next_episode">Next episode</string> <string name="next_episode">Next episode</string>