fix: mark spotube org as official for plugins

This commit is contained in:
shantanu sharma 2026-10-11 00:36:01 +05:30
parent 69a310c78f
commit a23497867a
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ class MetadataInstalledPluginItem extends HookConsumerWidget {
final repoOwner = repoUrl?.pathSegments.firstOrNull; final repoOwner = repoUrl?.pathSegments.firstOrNull;
final isOfficial = final isOfficial =
repoUrl?.host == "github.com" && repoOwner == "KRTirtho"; repoUrl?.host == "github.com" && ["KRTirtho", "spotube"].contains(repoOwner);
return Basic( return Basic(
leading: snapshot.hasData leading: snapshot.hasData

View File

@ -57,7 +57,7 @@ class MetadataPluginRepositoryItem extends HookConsumerWidget {
.downloadAndCachePlugin(pluginRepo.repoUrl); .downloadAndCachePlugin(pluginRepo.repoUrl);
if (!context.mounted) return; if (!context.mounted) return;
final isOfficialPlugin = pluginRepo.owner == "KRTirtho"; final isOfficialPlugin = ["KRTirtho", "spotube"].contains(pluginRepo.owner);
final isAllowed = isOfficialPlugin final isAllowed = isOfficialPlugin
? true ? true
@ -157,7 +157,7 @@ class MetadataPluginRepositoryItem extends HookConsumerWidget {
child: Text(context.l10n.install), child: Text(context.l10n.install),
), ),
), ),
if (pluginRepo.owner != "KRTirtho") if (!["KRTirtho", "spotube"].contains(pluginRepo.owner))
Text.rich( Text.rich(
TextSpan( TextSpan(
children: [ children: [
@ -181,7 +181,7 @@ class MetadataPluginRepositoryItem extends HookConsumerWidget {
spacing: 8, spacing: 8,
runSpacing: 8, runSpacing: 8,
children: [ children: [
if (pluginRepo.owner == "KRTirtho") if (["KRTirtho", "spotube"].contains(pluginRepo.owner))
PrimaryBadge( PrimaryBadge(
leading: const Icon(SpotubeIcons.done), leading: const Icon(SpotubeIcons.done),
child: Text(context.l10n.official), child: Text(context.l10n.official),