From 7bc6cfb53ab7bc375ef6e137a0cb4cbfa5b79701 Mon Sep 17 00:00:00 2001 From: SerStars <90714930+SerStars@users.noreply.github.com> Date: Mon, 22 Sep 2025 18:26:03 +0200 Subject: [PATCH] Option to choose between which service shows the poster in large image (#411) --- .../jellyfinRichPresence/index.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/equicordplugins/jellyfinRichPresence/index.tsx b/src/equicordplugins/jellyfinRichPresence/index.tsx index 4de24d4f5..a8e2e05d6 100644 --- a/src/equicordplugins/jellyfinRichPresence/index.tsx +++ b/src/equicordplugins/jellyfinRichPresence/index.tsx @@ -87,6 +87,14 @@ const settings = definePluginSettings({ type: OptionType.BOOLEAN, default: true, }, + posterSource: { + description: "Choose which poster to display in Rich Presence", + type: OptionType.SELECT, + options: [ + { label: "Jellyfin", value: "jellyfin", default: true }, + { label: "TheMovieDB", value: "tmdb" }, + ], + }, overrideRichPresenceType: { description: "Override the rich presence type", type: OptionType.SELECT, @@ -310,7 +318,14 @@ export default definePlugin({ } const assets: ActivityAssets = { - large_image: tmdbData?.posterPath ? await getApplicationAsset(tmdbData.posterPath) : mediaData.imageUrl ? await getApplicationAsset(mediaData.imageUrl) : undefined, + large_image: + settings.store.posterSource === "tmdb" + ? (tmdbData?.posterPath + ? await getApplicationAsset(tmdbData.posterPath) + : undefined) + : (mediaData.imageUrl + ? await getApplicationAsset(mediaData.imageUrl) + : undefined), large_text: mediaData.seriesName || mediaData.album || undefined, };