Skip to content

Add source hiding - #2570

Merged
fire-light42 merged 9 commits into
recloudstream:masterfrom
CranberrySoup:hide_sources
Jul 31, 2026
Merged

Add source hiding#2570
fire-light42 merged 9 commits into
recloudstream:masterfrom
CranberrySoup:hide_sources

Conversation

@CranberrySoup

Copy link
Copy Markdown
Contributor
  • Adds a quality profile settings menu
  • Adds "Hide sources with a negative priority" option
  • Adds "Hide sources with errors" option

The code contains redundant sortLinks and toDisplayLink calls and it could be made more efficient, but that would increase code complexity. The caches in QualityDataHelper.kt reduces sortLinks runtime to 0-2ms even with 200 links.

Admittedly the code is quite messy but I could not make it better. Suggestions welcome.


inline fun <reified T : Any> getProfileSetting(profile: Int, setting: ProfileSettings<T>): T {
val folder = "$currentAccount/$VIDEO_PROFILE_SETTINGS/$profile"
val value = getKey<T>(folder, setting.key)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not positive either way but does this work with kotlinx serialization?

@fire-light42
fire-light42 merged commit f09435d into recloudstream:master Jul 31, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants