mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	fixed ocean search hint & bflix url
This commit is contained in:
		
							parent
							
								
									30fddb0360
								
							
						
					
					
						commit
						d30788f47c
					
				
					 4 changed files with 18 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 ->
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue