mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Do not show history entries where it could not retrieve a plugin id.
This commit is contained in:
+1
-1
@@ -280,7 +280,7 @@ class HistoryFragment : MainFragment() {
|
||||
val enabledPluginIds = StatePlatform.instance.getEnabledClients().map { it.id }.toHashSet()
|
||||
val disabledPluginIds = _togglePluginsDisabled.toHashSet()
|
||||
return a.filter {
|
||||
val pluginId = it.video.id.pluginId ?: StatePlatform.instance.getContentClientOrNull(it.video.url)?.id ?: return@filter true
|
||||
val pluginId = it.video.id.pluginId ?: StatePlatform.instance.getContentClientOrNull(it.video.url)?.id ?: return@filter false
|
||||
if (!enabledPluginIds.contains(pluginId))
|
||||
return@filter false
|
||||
return@filter !disabledPluginIds.contains(pluginId)
|
||||
|
||||
Reference in New Issue
Block a user