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
open class BflixProvider : MainAPI() {
override var mainUrl = "https://bflix.to"
override var mainUrl = "https://bflix.ru"
override var name = "Bflix"
override val hasMainPage = true
override val hasChromecastSupport = true

View File

@ -409,6 +409,11 @@ class HomeFragment : Fragment() {
setKey(HOMEPAGE_API, apiName)
home_api_fab?.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
getApiFromNameNull(apiName)?.let { currentApi ->
@ -880,7 +885,11 @@ class HomeFragment : Fragment() {
for (syncApi in OAuth2API.OAuth2Apis) {
val login = syncApi.loginInfo()
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
break
}

View File

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

View File

@ -90,6 +90,8 @@
<string name="title_settings">Settings</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="episode_more_options_des">More Options</string>
<string name="next_episode">Next episode</string>