A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
feat(integrations): add sportarr (#6518)
Sportarr43cac6eeaafe
diff --git a/apps/docs/docs/integrations/sportarr/img/api-key-settings.png b/apps/docs/docs/integrations/sportarr/img/api-key-settings.pngnew file mode 100644index 000000000..be6119ef8Binary files /dev/null and b/apps/docs/docs/integrations/sportarr/img/api-key-settings.png differdiff --git a/apps/docs/docs/integrations/sportarr/img/calendar-widget-board.png b/apps/docs/docs/integrations/sportarr/img/calendar-widget-board.pngnew file mode 100644index 000000000..087caad7eBinary files /dev/null and b/apps/docs/docs/integrations/sportarr/img/calendar-widget-board.png differdiff --git a/apps/docs/docs/integrations/sportarr/index.mdx b/apps/docs/docs/integrations/sportarr/index.mdxnew file mode 100644index 000000000..8a8e121f5--- /dev/null+++ b/apps/docs/docs/integrations/sportarr/index.mdx@@ -0,0 +1,54 @@+---+title: "Sportarr"+description: "Sportarr is a sports event manager that monitors leagues, searches indexers for event releases, and organizes them into your media library."+hide_title: true+---++import { IntegrationHeader } from "@site/src/components/integrations/header";+import { IntegrationCapabilites } from "@site/src/components/integrations/widgets";+import { AddingIntegration } from "@site/src/components/integrations/adding";+import { IntegrationSecrets } from "@site/src/components/integrations/secrets";+import { sportarrIntegration } from ".";+import { calendarWidget } from "@site/docs/widgets/calendar";+import { mediaMissingWidget } from "@site/docs/widgets/media-missing";+import apiKeySettings from "./img/api-key-settings.png";+import calendarWidgetBoard from "./img/calendar-widget-board.png";++<IntegrationHeader integration={sportarrIntegration} categories={["Media manager", "Servarr"]} />++Sportarr manages sports events the way Sonarr manages TV series. The calendar widget shows its events, and the media missing widget shows missing events and the download queue.++### Screenshots++<div className="flex flex-col gap-4">+ <div>+ <p>Sportarr events in the calendar widget on a Homarr board:</p>+ <img src={calendarWidgetBoard} alt="sportarr-calendar-widget-on-board" width={128 * 4} />+ </div>+ <div>+ <p>API key location in Sportarr:</p>+ <img src={apiKeySettings} alt="sportarr-api-key-settings" width={128 * 4} />+ </div>+</div>++### Widgets & Capabilities++<IntegrationCapabilites items={[{ widget: calendarWidget }, { widget: mediaMissingWidget }]} />++### Adding the integration++<AddingIntegration />++### Secrets++<IntegrationSecrets+ secrets={[+ {+ credentials: ["apiKey"],+ steps: [+ "Open Sportarr and go to Settings → General → Security.",+ "Copy the API key and paste it into Homarr when creating the integration.",+ ],+ },+ ]}+/>diff --git a/apps/docs/docs/integrations/sportarr/index.ts b/apps/docs/docs/integrations/sportarr/index.tsnew file mode 100644index 000000000..85ba1a2bf--- /dev/null+++ b/apps/docs/docs/integrations/sportarr/index.ts@@ -0,0 +1,8 @@+import { IntegrationDefinition } from "@site/src/types";+export const sportarrIntegration: IntegrationDefinition = {+ name: "Sportarr",+ description:+ "Sportarr is a sports event manager that monitors leagues, searches indexers for event releases, and organizes them into your media library.",+ iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/sportarr.svg",+ path: "../../integrations/sportarr",+};diff --git a/apps/docs/docs/widgets/calendar/index.mdx b/apps/docs/docs/widgets/calendar/index.mdxindex 60e97e8bd..33403cfc9 100644--- a/apps/docs/docs/widgets/calendar/index.mdx+++ b/apps/docs/docs/widgets/calendar/index.mdx@@ -17,6 +17,7 @@ import { homeAssistantIntegration } from "@site/docs/integrations/home-assistantimport { radarrIntegration } from "@site/docs/integrations/radarr";import { readarrIntegration } from "@site/docs/integrations/readarr";import { sonarrIntegration } from "@site/docs/integrations/sonarr";+import { sportarrIntegration } from "@site/docs/integrations/sportarr";import { icalIntegration } from "@site/docs/integrations/ical";<WidgetHeader widget={calendarWidget} categories={["Media manager", "Servarr"]} />@@ -38,6 +39,7 @@ occupy a 30-minute slot in Day and Week; their details keep the original event t{ integration: radarrIntegration },{ integration: readarrIntegration },{ integration: sonarrIntegration },+ { integration: sportarrIntegration },{ integration: icalIntegration },{ integration: homeAssistantIntegration },]}diff --git a/apps/docs/docs/widgets/media-missing/index.mdx b/apps/docs/docs/widgets/media-missing/index.mdxindex 1ba08d2ff..c044477be 100644--- a/apps/docs/docs/widgets/media-missing/index.mdx+++ b/apps/docs/docs/widgets/media-missing/index.mdx@@ -1,6 +1,6 @@---title: "Media Missing & Queue"-description: "Track missing media and active downloads from Radarr, Sonarr and Bindery"+description: "Track missing media and active downloads from Radarr, Sonarr, Sportarr and Bindery"hide_title: true---@@ -13,12 +13,13 @@ import { WidgetIntegrations } from "@site/src/components/widgets/integrations";import { mediaMissingWidget } from ".";import { radarrIntegration } from "@site/docs/integrations/radarr";import { sonarrIntegration } from "@site/docs/integrations/sonarr";+import { sportarrIntegration } from "@site/docs/integrations/sportarr";import { binderyIntegration } from "@site/docs/integrations/bindery";<WidgetHeader widget={mediaMissingWidget} categories={["Media", "Downloads"]} />-Monitor which movies, episodes and books are missing from your library, and track what is currently being downloaded.-The widget combines data from Radarr, Sonarr and Bindery, with separate tabs for missing items and active downloads.+Monitor which movies, episodes, events and books are missing from your library, and track what is currently being downloaded.+The widget combines data from Radarr, Sonarr, Sportarr and Bindery, with separate tabs for missing items and active downloads.### Screenshots@@ -48,6 +49,9 @@ import widgetQueued from "./img/sizing-4x3-queued.png";{integration: sonarrIntegration,},+ {+ integration: sportarrIntegration,+ },{integration: binderyIntegration,},@@ -56,10 +60,10 @@ import widgetQueued from "./img/sizing-4x3-queued.png";### Tabs-| Tab | Description |-| ----------- | ---------------------------------------------------------------------------------------------------------------------- |-| **Missing** | Lists movies (Radarr), episodes (Sonarr) and books (Bindery) that are monitored but not yet available in your library. |-| **Queued** | Shows items currently being downloaded with a progress bar and estimated time remaining. |+| Tab | Description |+| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------- |+| **Missing** | Lists movies (Radarr), episodes (Sonarr), events (Sportarr) and books (Bindery) that are monitored but not yet available in your library. |+| **Queued** | Shows items currently being downloaded with a progress bar and estimated time remaining when available. |### Sizing@@ -69,7 +73,7 @@ The widget adapts to its container size, so it looks good at any grid size:- **Short** — packs items into more, tighter columns so they stay visible in the limited height.- **Narrow (1×N)** — tab labels collapse to counts only and posters scale down.-Each item shows its poster art, a type badge, and — on the queue — an animated progress bar with the estimated time remaining.+Each item shows its poster art, a type badge, and — on the queue — an animated progress bar with the estimated time remaining when available.<WidgetInteractionGuide />diff --git a/apps/docs/docs/widgets/media-missing/index.ts b/apps/docs/docs/widgets/media-missing/index.tsindex a10b5b6ec..2f1ae3bae 100644--- a/apps/docs/docs/widgets/media-missing/index.ts+++ b/apps/docs/docs/widgets/media-missing/index.ts@@ -4,13 +4,13 @@ import { IconMovie } from "@tabler/icons-react";export const mediaMissingWidget: WidgetDefinition = {icon: IconMovie,name: "Media Missing & Queue",- description: "Track missing media and active downloads from Radarr, Sonarr and Bindery",+ description: "Track missing media and active downloads from Radarr, Sonarr, Sportarr and Bindery",path: "../../widgets/media-missing",configuration: {items: [{name: "Show Missing",- description: "Display the missing media tab, listing movies, episodes or books not yet downloaded",+ description: "Display the missing media tab, listing movies, episodes, events or books not yet downloaded",values: { type: "boolean" },defaultValue: "true",},diff --git a/apps/docs/public/api/open-api-schema.json b/apps/docs/public/api/open-api-schema.jsonindex 27e90c85a..5d14ebccc 100644--- a/apps/docs/public/api/open-api-schema.json+++ b/apps/docs/public/api/open-api-schema.json@@ -7460,6 +7460,7 @@"aria2","slskd","sonarr",+ "sportarr","radarr","lidarr","readarr",@@ -7635,6 +7636,7 @@"aria2","slskd","sonarr",+ "sportarr","radarr","lidarr","readarr",diff --git a/apps/nextjs/public/images/apps/sportarr.svg b/apps/nextjs/public/images/apps/sportarr.svgnew file mode 100644index 000000000..75619f642--- /dev/null+++ b/apps/nextjs/public/images/apps/sportarr.svg@@ -0,0 +1,268 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048"><circle cx="1024" cy="1024" r="990" fill="#f9f9f9"/><g transform="scale(2,2)"><g transform="translate(0.000000,1024.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none"><path d="M4860 9974 c-237 -20 -313 -28 -430 -45 -701 -101 -1371 -355 -1968+-745 -294 -193 -506 -366 -773 -633 -408 -408 -695 -811 -940 -1316 -260 -538+-406 -1059 -471 -1685 -17 -165 -17 -705 0 -870 65 -626 211 -1147 471 -1685+245 -505 532 -908 940 -1316 408 -408 811 -695 1316 -940 538 -260 1059 -406+1685 -471 165 -17 705 -17 870 0 626 65 1147 211 1685 471 505 245 908 532+1316 940 408 408 695 811 940 1316 260 538 406 1059 471 1685 17 165 17 705 0+870 -65 626 -211 1147 -471 1685 -245 505 -532 908 -940 1316 -408 408 -811+695 -1316 940 -526 254 -1029 397 -1635 465 -127 14 -648 27 -750 18z m738+-191 c2 -9 27 -13 75 -13 40 0 90 -5 112 -11 22 -6 78 -15 125 -21 47 -5 87+-13 90 -17 3 -5 37 -11 75 -15 39 -4 72 -11 73 -16 2 -6 17 -10 33 -10 16 0+29 -4 29 -8 0 -5 42 -14 92 -20 51 -6 94 -16 96 -22 2 -5 12 -10 23 -10 10 0+19 -4 19 -9 0 -5 22 -11 49 -13 27 -3 57 -12 66 -21 9 -10 32 -17 51 -17 19 0+34 -4 34 -10 0 -5 9 -10 19 -10 33 0 139 -37 156 -54 9 -9 30 -16 46 -16 16 0+29 -4 29 -10 0 -5 19 -14 43 -21 23 -6 50 -20 60 -30 10 -10 27 -19 38 -19 11+0 27 -7 35 -15 9 -8 26 -15 40 -15 13 0 24 -4 24 -10 0 -5 6 -10 14 -10 22 0+170 -71 179 -86 4 -8 19 -14 32 -14 14 0 25 -4 25 -10 0 -5 6 -10 13 -10 6 0+27 -14 46 -30 18 -17 44 -30 56 -30 12 0 35 -13 51 -30 16 -16 35 -30 42 -30+7 0 20 -7 28 -15 9 -8 23 -15 32 -15 9 0 34 -15 54 -34 20 -18 50 -38 67 -44+32 -11 221 -160 221 -174 0 -4 15 -14 34 -22 19 -8 39 -24 46 -35 6 -12 18+-21 26 -21 20 0 94 -60 94 -77 0 -7 5 -13 11 -13 20 0 92 -67 284 -260 211+-212 263 -267 310 -330 19 -25 45 -59 59 -76 15 -18 26 -36 26 -40 0 -5 16+-22 35 -38 19 -16 39 -44 45 -63 7 -18 15 -33 20 -33 4 0 11 -11 14 -24 3 -13+17 -31 31 -40 13 -9 34 -33 45 -54 26 -48 42 -73 58 -90 6 -7 12 -19 12 -25 0+-7 11 -20 24 -30 13 -10 34 -45 46 -78 12 -32 26 -59 30 -59 5 0 11 -13 15+-30 4 -16 11 -30 16 -30 5 0 9 -7 9 -15 0 -8 4 -15 10 -15 5 0 12 -11 16 -25+3 -14 10 -25 14 -25 5 0 11 -13 15 -30 4 -16 10 -30 15 -30 5 0 11 -13 15 -30+4 -16 10 -30 15 -30 4 0 11 -18 15 -40 4 -22 11 -40 15 -40 5 0 11 -13 15 -30+4 -16 10 -30 15 -30 5 0 14 -25 20 -55 6 -30 16 -55 21 -55 5 0 9 -9 9 -20 0+-11 4 -20 9 -20 5 0 12 -18 16 -40 4 -22 11 -40 16 -40 5 0 9 -9 9 -20 0 -11+4 -20 9 -20 5 0 12 -21 16 -47 4 -25 13 -52 20 -59 7 -7 16 -41 20 -74 4 -33+11 -60 15 -60 5 0 12 -25 15 -55 4 -30 11 -55 16 -55 5 0 9 -9 9 -19 0 -11 5+-21 11 -23 7 -2 16 -46 22 -101 6 -53 14 -97 19 -97 4 0 8 -20 8 -45 0 -25 5+-45 10 -45 6 0 10 -15 10 -34 0 -19 5 -36 12 -38 7 -3 13 -38 16 -94 3 -49 10+-92 16 -96 7 -5 12 -62 15 -158 2 -82 7 -150 12 -150 5 0 9 -148 9 -340 0+-192 -4 -340 -9 -340 -5 0 -10 -68 -12 -150 -3 -96 -8 -153 -15 -158 -7 -4+-13 -47 -16 -100 -2 -52 -9 -97 -15 -100 -6 -4 -14 -44 -18 -89 -4 -46 -11+-83 -16 -83 -5 0 -9 -13 -9 -30 0 -16 -4 -30 -9 -30 -4 0 -11 -27 -15 -60 -4+-33 -11 -60 -15 -60 -5 0 -12 -25 -16 -55 -3 -30 -11 -55 -16 -55 -5 0 -9 -13+-9 -30 0 -16 -4 -30 -9 -30 -4 0 -11 -27 -15 -60 -4 -33 -13 -66 -20 -73 -8+-7 -17 -32 -21 -55 -4 -23 -10 -42 -15 -42 -4 0 -10 -18 -14 -40 -3 -22 -11+-40 -16 -40 -6 0 -10 -9 -10 -20 0 -11 -4 -20 -10 -20 -5 0 -10 -9 -10 -20 0+-11 -4 -20 -10 -20 -5 0 -10 -9 -10 -19 0 -11 -6 -26 -13 -33 -8 -7 -17 -30+-21 -51 -4 -20 -11 -37 -16 -37 -4 0 -11 -13 -15 -30 -4 -16 -10 -30 -15 -30+-4 0 -10 -18 -14 -40 -3 -22 -10 -40 -15 -40 -5 0 -12 -14 -16 -30 -4 -17 -11+-30 -16 -30 -5 0 -12 -18 -15 -41 -4 -22 -13 -46 -20 -54 -8 -7 -14 -18 -14+-24 0 -6 -4 -11 -10 -11 -5 0 -10 -6 -10 -14 0 -7 -11 -25 -25 -40 -14 -15+-28 -38 -31 -51 -3 -14 -10 -25 -14 -25 -4 0 -11 -16 -14 -36 -4 -19 -14 -38+-22 -41 -7 -3 -14 -11 -14 -18 0 -8 -6 -20 -13 -27 -6 -7 -21 -30 -32 -52 -11+-21 -26 -40 -32 -43 -7 -3 -13 -11 -13 -18 0 -8 -6 -20 -12 -27 -7 -8 -20 -27+-29 -43 -10 -17 -26 -34 -38 -40 -12 -5 -21 -17 -21 -27 0 -27 -11 -48 -25+-48 -8 0 -15 -10 -17 -22 -2 -13 -13 -27 -25 -33 -13 -5 -23 -16 -23 -23 0 -7+-7 -15 -15 -18 -8 -4 -15 -12 -15 -19 0 -26 -164 -215 -186 -215 -8 0 -14 -8+-14 -18 0 -9 -87 -104 -192 -210 -195 -194 -237 -232 -257 -232 -6 0 -11 -7+-11 -15 0 -8 -18 -26 -40 -40 -23 -14 -43 -32 -47 -40 -3 -8 -13 -15 -22 -15+-9 0 -21 -10 -26 -22 -6 -13 -19 -25 -30 -27 -11 -2 -23 -9 -27 -16 -4 -7 -19+-16 -33 -19 -14 -4 -34 -15 -45 -26 -11 -11 -26 -20 -34 -20 -8 0 -18 -9 -21+-20 -3 -11 -13 -20 -21 -20 -8 0 -14 -4 -14 -10 0 -5 -19 -19 -42 -31 -24 -12+-56 -32 -71 -45 -16 -13 -34 -24 -41 -24 -7 0 -28 -14 -46 -30 -18 -17 -40+-30 -47 -30 -7 0 -13 -4 -13 -10 0 -5 -11 -12 -25 -16 -14 -3 -25 -10 -25 -14+0 -5 -13 -11 -30 -15 -16 -4 -30 -11 -30 -15 0 -5 -18 -14 -40 -20 -22 -6 -40+-15 -40 -20 0 -6 -7 -10 -15 -10 -8 0 -15 -4 -15 -9 0 -5 -13 -12 -30 -16 -16+-4 -30 -10 -30 -15 0 -5 -13 -11 -30 -15 -16 -4 -30 -11 -30 -16 0 -5 -7 -9+-15 -9 -8 0 -15 -4 -15 -9 0 -5 -13 -12 -30 -16 -16 -4 -30 -11 -30 -16 0 -5+-18 -12 -39 -15 -22 -4 -42 -12 -45 -19 -2 -7 -27 -16 -55 -20 -28 -4 -51 -11+-51 -16 0 -5 -7 -9 -15 -9 -8 0 -15 -4 -15 -10 0 -5 -16 -12 -35 -16 -19 -3+-35 -10 -35 -14 0 -5 -18 -11 -40 -15 -22 -4 -40 -11 -40 -16 0 -5 -7 -9 -16+-9 -8 0 -22 -6 -29 -14 -8 -7 -43 -17 -79 -21 -37 -3 -66 -10 -66 -15 0 -5+-20 -12 -45 -16 -25 -3 -45 -10 -45 -15 0 -5 -12 -9 -26 -9 -14 0 -31 -6 -39+-13 -7 -8 -46 -17 -87 -21 -40 -3 -74 -11 -76 -16 -2 -6 -16 -10 -32 -10 -16+0 -30 -4 -32 -10 -1 -5 -36 -12 -75 -16 -40 -4 -73 -11 -73 -15 0 -5 -20 -9+-44 -9 -27 0 -46 -5 -48 -12 -3 -9 -35 -14 -99 -17 -55 -2 -97 -8 -101 -14 -4+-7 -58 -13 -147 -15 -78 -3 -141 -8 -141 -13 0 -5 -141 -9 -320 -9 -181 0+-320 4 -320 9 0 5 -68 10 -150 12 -98 3 -153 8 -158 15 -4 7 -43 13 -90 15+-46 3 -86 9 -90 15 -4 7 -43 13 -86 16 -51 2 -81 8 -84 16 -2 7 -17 12 -33 12+-16 0 -29 5 -29 10 0 6 -13 10 -30 10 -16 0 -30 4 -30 9 0 5 -27 12 -60 16+-33 4 -60 11 -60 15 0 4 -25 11 -55 15 -30 3 -55 10 -55 15 0 4 -20 11 -45 14+-25 4 -45 11 -45 15 0 5 -22 11 -50 15 -27 4 -50 11 -50 16 0 6 -9 10 -20 10+-11 0 -20 4 -20 9 0 5 -20 12 -45 15 -25 4 -45 11 -45 16 0 5 -25 14 -55 20+-30 6 -55 15 -55 20 0 4 -18 11 -40 15 -22 4 -40 10 -40 15 0 5 -18 11 -40 15+-22 4 -40 11 -40 15 0 5 -13 11 -30 15 -16 4 -30 10 -30 15 0 5 -14 11 -30 15+-17 4 -30 11 -30 16 0 5 -7 9 -15 9 -8 0 -15 4 -15 9 0 5 -13 12 -30 16 -16 4+-30 11 -30 16 0 5 -7 9 -15 9 -22 0 -95 38 -95 49 0 5 -13 12 -30 16 -16 4+-30 10 -30 14 0 4 -24 18 -54 31 -31 13 -57 32 -59 42 -3 10 -13 18 -22 18+-24 0 -77 29 -100 55 -11 12 -30 25 -42 29 -13 4 -23 11 -23 16 0 5 -16 14+-35 20 -19 6 -35 15 -35 20 0 5 -15 14 -34 20 -19 6 -47 26 -62 45 -14 18 -37+36 -50 39 -13 4 -24 11 -24 16 0 6 -6 10 -13 10 -8 0 -25 12 -39 28 -14 15+-40 38 -57 52 -17 14 -34 33 -37 43 -3 9 -20 23 -38 31 -17 7 -39 25 -49 39+-9 14 -29 28 -45 32 -19 4 -56 37 -113 100 -46 52 -90 94 -96 95 -7 0 -13 4+-13 10 0 5 -21 29 -47 52 -25 24 -77 79 -115 123 -88 102 -88 102 -88 114 0 6+-16 21 -35 33 -19 13 -40 34 -47 47 -7 14 -22 35 -33 47 -35 40 -62 78 -69+100 -4 12 -16 24 -26 27 -13 3 -22 17 -26 36 -4 17 -10 31 -15 31 -5 0 -9 7+-9 15 0 9 -7 18 -15 21 -8 4 -15 10 -15 15 0 6 -18 29 -40 51 -22 23 -40 47+-40 53 0 7 -9 22 -20 35 -11 13 -20 28 -20 34 0 10 -47 86 -70 113 -5 7 -10+17 -10 23 0 5 -4 10 -10 10 -5 0 -10 9 -10 20 0 11 -9 28 -20 37 -11 10 -20+27 -20 40 0 12 -7 28 -15 37 -8 8 -15 19 -15 25 0 6 -4 11 -10 11 -5 0 -10 9+-10 19 0 11 -7 26 -15 35 -8 8 -15 24 -15 36 0 11 -7 23 -15 26 -8 4 -15 12+-15 20 0 8 -4 14 -10 14 -5 0 -12 23 -16 51 -4 28 -13 53 -20 56 -8 3 -14 16+-14 29 0 14 -7 27 -15 30 -8 4 -15 18 -15 34 0 16 -7 35 -15 44 -8 8 -15 22+-15 30 0 9 -4 16 -10 16 -5 0 -10 13 -10 29 0 16 -7 36 -15 45 -8 8 -15 28+-15 45 0 16 -6 36 -13 43 -13 14 -41 100 -52 161 -3 20 -10 37 -15 37 -6 0+-10 14 -10 30 0 17 -4 30 -9 30 -5 0 -11 25 -13 56 -3 31 -10 59 -17 63 -7 4+-15 33 -18 64 -3 32 -9 57 -13 57 -4 0 -10 34 -12 76 -3 42 -10 79 -15 83 -10+6 -26 95 -44 246 -5 50 -15 115 -22 145 -16 75 -17 1001 -1 1021 6 8 14 59 18+114 4 54 10 102 15 105 5 3 12 48 16 100 4 52 12 98 18 102 6 4 13 36 15 72 2+36 8 66 12 66 4 0 11 32 14 70 4 39 10 70 14 70 12 0 42 79 42 111 0 17 7 37+15 45 8 9 15 29 15 45 0 17 7 37 15 45 8 9 15 32 15 52 0 20 7 46 15 56 8 11+15 29 15 40 0 12 7 30 15 40 8 11 15 32 15 47 0 14 7 32 15 39 8 7 15 23 15+36 0 13 5 24 10 24 6 0 10 5 10 12 0 6 11 25 24 42 12 17 26 52 30 78 4 26 13+49 21 52 8 3 15 15 15 26 0 12 11 33 25 48 14 15 25 36 25 48 0 12 6 24 14 27+8 3 18 25 21 49 5 32 13 47 28 53 12 6 24 21 25 34 2 13 14 35 27 49 13 14 26+40 29 58 4 17 13 35 21 38 8 3 15 12 15 21 0 15 6 25 37 60 7 7 13 21 13 29 0+9 5 16 10 16 6 0 20 20 32 45 12 25 25 45 29 45 4 0 20 22 35 50 15 27 35 52+45 55 11 4 19 12 19 18 0 18 50 87 100 140 25 26 70 77 100 113 30 36 134 144+230 240 251 251 275 274 288 274 6 0 35 22 64 50 81 76 81 76 108 90 14 7 35+23 46 36 12 12 40 32 63 43 22 12 41 26 41 31 0 5 10 10 23 12 12 2 26 13 32+26 5 12 18 22 27 22 10 0 22 8 27 19 6 10 29 26 51 35 22 9 40 19 40 24 0 4+20 18 45 30 25 12 45 26 45 32 0 5 9 10 20 10 11 0 23 7 26 15 4 8 16 15 28+15 12 0 33 11 48 25 15 14 34 25 43 25 9 0 18 7 21 15 4 8 17 15 30 15 14 0+27 6 30 14 3 8 25 19 49 25 24 6 57 22 73 36 16 14 35 25 41 25 6 0 11 4 11 9+0 5 18 11 40 15 22 3 50 16 61 27 12 12 47 26 82 33 33 7 63 18 65 24 2 7 12+12 23 12 10 0 19 5 19 10 0 6 11 10 25 10 13 0 28 7 33 16 5 9 33 22 63 30 30+8 56 19 57 24 2 6 19 10 37 10 19 0 40 7 49 15 8 8 32 15 55 15 22 0 46 6 53+13 7 8 36 16 63 19 27 4 51 11 53 17 2 6 23 11 47 11 25 0 50 6 59 15 8 8 32+15 53 15 21 0 51 7 67 15 15 8 43 15 61 15 18 0 35 4 37 9 2 6 39 13 83 17 44+4 83 11 86 16 3 4 56 11 117 15 62 3 112 10 112 14 0 13 125 16 584 15 334 -1+430 -4 434 -13z M3470 8311 c0 -5 -16 -12 -35 -15 -25 -5 -39 -15 -47 -32 -6+-13 -15 -24 -19 -24 -4 0 -10 -13 -14 -30 -4 -16 -10 -30 -15 -30 -4 0 -11+-31 -15 -70 -4 -38 -11 -70 -16 -70 -5 0 -9 -22 -9 -50 0 -27 -4 -50 -10 -50+-5 0 -10 -9 -10 -20 0 -20 -7 -20 -568 -20 -314 0 -581 -4 -599 -9 -49 -14+-93 -65 -93 -106 0 -19 -4 -35 -10 -35 -6 0 -10 -35 -10 -85 0 -47 4 -85 9+-85 5 0 10 -50 13 -111 3 -61 9 -114 15 -117 6 -4 12 -38 15 -76 2 -42 9 -71+16 -74 7 -2 12 -22 12 -47 0 -25 6 -50 14 -58 8 -8 18 -38 22 -66 4 -28 10+-51 15 -51 5 0 9 -9 9 -20 0 -11 5 -20 10 -20 6 0 10 -12 10 -27 0 -38 19+-103 30 -103 5 0 14 -25 20 -55 6 -30 16 -55 21 -55 5 0 9 -7 9 -15 0 -8 4+-15 9 -15 5 0 12 -13 16 -30 4 -16 11 -30 16 -30 5 0 9 -7 9 -16 0 -8 6 -22+14 -29 7 -8 16 -32 20 -55 5 -30 12 -44 26 -47 11 -3 22 -17 25 -34 4 -16 10+-29 15 -29 4 0 15 -21 24 -46 14 -41 36 -76 81 -127 9 -10 21 -32 27 -48 5+-16 14 -29 19 -29 5 0 9 -6 9 -13 0 -8 18 -33 40 -57 22 -24 40 -49 40 -57 0+-7 7 -16 15 -19 8 -4 15 -14 15 -23 1 -19 34 -61 49 -61 6 0 11 -7 11 -15 0+-9 7 -18 15 -21 8 -4 15 -10 15 -14 0 -4 21 -30 48 -58 56 -59 156 -178 160+-192 2 -6 10 -10 18 -10 8 0 14 -7 14 -15 0 -9 8 -18 18 -22 9 -3 49 -39 89+-79 40 -42 79 -74 90 -74 12 0 30 -15 44 -37 14 -22 43 -47 72 -60 26 -13 47+-28 47 -33 0 -6 7 -10 15 -10 9 0 20 -11 25 -25 5 -14 16 -25 24 -25 7 0 16+-7 20 -15 3 -8 12 -15 20 -15 8 0 32 -15 55 -34 22 -18 60 -42 85 -52 25 -11+46 -22 46 -26 0 -5 6 -8 14 -8 8 0 16 -7 20 -15 3 -8 12 -15 20 -15 7 0 16 -7+20 -15 3 -8 12 -15 19 -15 8 0 20 -7 27 -15 7 -8 21 -15 32 -15 11 0 26 -7 34+-15 9 -8 24 -15 34 -15 10 0 20 -7 24 -15 3 -8 17 -15 31 -15 14 0 25 -4 25+-10 0 -5 6 -10 14 -10 8 0 16 -6 19 -14 3 -8 27 -17 56 -21 28 -4 52 -13 55+-21 3 -8 16 -14 30 -14 13 0 26 -5 28 -11 2 -6 25 -13 51 -16 42 -5 49 -10 61+-37 7 -18 27 -43 43 -57 16 -13 32 -32 35 -41 11 -28 73 -107 85 -107 6 -1 13+-11 15 -23 2 -12 23 -37 48 -55 25 -19 67 -51 94 -73 26 -22 54 -40 61 -40 7+0 20 -11 29 -25 9 -14 27 -27 41 -31 14 -3 25 -10 25 -15 0 -5 6 -9 14 -9 8 0+16 -7 20 -15 3 -8 12 -15 21 -15 8 0 15 -4 15 -10 0 -5 7 -10 15 -10 8 0 15+-4 15 -10 0 -5 7 -10 16 -10 13 0 15 -7 10 -31 -3 -17 -6 -35 -6 -40 0 -4 -9+-11 -20 -14 -15 -5 -20 -15 -20 -41 0 -19 -4 -34 -10 -34 -5 0 -10 -6 -10 -14+0 -8 -9 -18 -20 -21 -12 -4 -23 -18 -27 -36 -3 -16 -12 -34 -19 -40 -8 -6 -14+-16 -14 -21 0 -5 -11 -21 -25 -36 -14 -15 -28 -37 -31 -49 -4 -13 -10 -23 -15+-23 -5 0 -9 -7 -9 -15 0 -8 -4 -15 -10 -15 -5 0 -14 -18 -20 -40 -6 -22 -15+-40 -20 -40 -6 0 -10 -4 -10 -9 0 -6 -11 -22 -24 -36 -14 -15 -28 -40 -31 -56+-4 -17 -13 -33 -21 -36 -8 -3 -14 -9 -14 -14 0 -11 -10 -24 -52 -69 -14 -16+-29 -38 -33 -49 -3 -12 -11 -21 -16 -21 -5 0 -9 -5 -9 -10 0 -6 -18 -29 -40+-51 -22 -22 -40 -47 -40 -55 0 -9 -20 -35 -44 -59 -24 -23 -47 -51 -50 -61 -3+-11 -20 -27 -37 -36 -18 -11 -37 -34 -47 -58 -9 -22 -26 -43 -37 -46 -10 -4+-35 -24 -55 -45 -20 -22 -41 -39 -48 -39 -10 0 -35 -21 -108 -90 -12 -11 -26+-20 -33 -20 -6 0 -11 -4 -11 -8 0 -15 277 -22 797 -22 406 0 493 -2 493 -13 0+-11 -42 -15 -197 -20 -108 -4 -243 -7 -300 -7 -56 0 -103 -4 -103 -8 0 -5+-127 -12 -282 -15 -183 -4 -284 -10 -286 -17 -2 -6 -79 -10 -223 -10 -120 0+-219 -4 -219 -9 0 -4 -21 -11 -47 -14 -30 -3 -52 -12 -58 -22 -5 -9 -18 -26+-27 -37 -16 -19 -18 -50 -18 -314 l0 -292 43 -46 42 -46 88 0 c51 0 87 -4 87+-10 0 -7 515 -10 1525 -10 1010 0 1525 3 1525 10 0 6 37 10 90 10 83 0 93 2+115 25 14 13 25 31 25 38 0 8 7 17 15 21 13 5 15 46 13 313 l-3 307 -25 13+c-13 6 -27 20 -31 31 -9 23 -50 29 -269 38 -85 4 -158 11 -161 17 -4 6 -97 12+-223 15 -119 3 -216 9 -216 13 0 5 -23 9 -51 9 -36 0 -49 4 -47 13 4 9 76 14+294 18 367 8 354 7 354 19 0 6 -7 10 -15 10 -8 0 -15 4 -15 9 0 9 -88 66 -119+76 -12 3 -21 11 -21 17 0 6 -33 40 -72 76 -116 104 -358 352 -358 366 0 15+-37 56 -50 56 -6 0 -10 8 -10 18 0 19 -34 62 -50 62 -5 0 -10 10 -12 23 -2 12+-13 26 -25 32 -13 5 -23 16 -23 23 0 7 -7 15 -15 18 -8 4 -15 12 -15 20 0 8+-4 14 -9 14 -5 0 -12 14 -16 31 -4 18 -16 35 -31 41 -15 7 -24 20 -24 35 0 12+-9 32 -20 43 -11 11 -20 24 -20 29 0 4 -11 20 -25 35 -14 15 -28 38 -31 52 -4+14 -13 28 -20 31 -8 3 -14 11 -14 18 0 6 -11 24 -25 39 -14 15 -25 31 -25 37+0 5 -4 9 -9 9 -5 0 -13 15 -17 33 -3 17 -15 43 -25 56 -25 31 -24 58 1 73 11+7 20 18 20 25 0 8 13 13 30 13 19 0 34 7 42 20 7 11 19 20 26 20 8 0 26 12 41+28 16 15 62 56 105 91 45 38 76 71 76 82 0 11 6 19 13 19 16 1 157 134 157+150 0 7 14 25 30 40 17 15 30 37 30 49 0 14 6 21 20 21 11 0 23 7 26 15 4 9+19 15 35 15 16 0 29 5 29 10 0 6 13 10 28 10 16 0 37 7 48 15 10 8 27 15 38+15 30 0 116 34 116 45 0 11 38 30 83 41 15 3 27 12 27 20 0 8 10 14 25 14 13+0 28 6 32 13 4 8 32 22 61 32 28 11 52 25 52 32 0 7 9 13 20 13 11 0 20 4 20+8 0 4 20 18 45 30 25 12 45 26 45 31 0 5 9 11 21 14 11 3 23 15 26 26 3 12 14+21 24 21 10 0 24 8 31 19 7 10 23 21 35 25 12 4 25 16 28 27 4 10 15 19 25 19+10 0 22 5 25 10 4 6 25 23 48 37 23 14 65 49 92 77 28 28 62 56 77 63 25 11+108 105 108 123 0 4 11 11 24 14 14 3 28 16 32 28 3 12 25 39 49 60 23 21 51+55 61 75 10 20 52 68 92 108 66 65 98 110 134 188 7 15 17 27 24 27 6 0 19 19+30 43 10 23 24 46 31 50 7 4 13 14 13 21 0 8 7 16 15 20 8 3 15 10 15 16 0 6+7 18 15 26 8 9 15 26 15 39 0 12 7 25 15 29 8 3 15 14 15 25 0 10 7 21 15 25+8 3 15 16 15 30 0 13 7 26 15 30 8 3 15 15 15 26 0 12 11 33 25 48 14 15 25+36 25 48 0 12 7 24 15 28 8 3 15 18 15 33 0 15 7 41 15 57 8 15 15 32 15 37 0+5 10 20 23 35 25 29 35 55 36 102 1 18 8 40 16 48 8 9 15 30 15 49 0 18 5 35+11 37 5 2 13 24 16 48 3 25 11 51 17 59 14 18 35 97 36 136 0 17 7 39 15 49+10 14 15 45 15 98 0 55 5 86 16 103 24 37 17 291 -8 309 -10 7 -18 21 -18 31+0 9 -9 19 -20 22 -11 3 -20 9 -20 14 0 5 -100 9 -222 9 -123 0 -395 3 -605 7+l-383 6 0 38 c0 21 -7 44 -15 53 -10 10 -15 35 -15 81 0 49 -4 67 -15 71 -8 4+-15 18 -15 34 0 16 -7 35 -15 44 -8 8 -15 18 -15 23 0 14 -38 42 -65 49 -14 3+-25 10 -25 15 0 5 -697 9 -1665 9 -964 0 -1665 -4 -1665 -9z m570 -401 c0 -11+-4 -20 -9 -20 -4 0 -10 -87 -13 -193 -3 -107 -8 -199 -12 -206 -13 -21 -7+-464 7 -473 8 -5 13 -45 15 -115 2 -59 8 -111 14 -114 5 -3 12 -41 15 -85 4+-45 12 -84 20 -92 8 -8 13 -37 13 -78 0 -36 4 -64 10 -64 6 0 10 -13 10 -30 0+-16 5 -30 10 -30 6 0 10 -13 10 -29 0 -16 5 -31 11 -33 5 -2 13 -24 16 -48 3+-25 10 -48 16 -51 5 -4 12 -28 15 -55 3 -27 11 -53 19 -59 7 -5 16 -38 19 -72+4 -35 11 -63 15 -63 5 0 9 -10 9 -21 0 -12 7 -27 15 -33 10 -7 18 -35 22 -71+4 -33 12 -66 20 -73 7 -7 13 -27 13 -43 0 -16 5 -29 10 -29 6 0 10 -9 10 -20+0 -11 5 -20 10 -20 6 0 10 -5 10 -11 0 -6 6 -17 14 -24 7 -8 16 -36 20 -64 4+-28 11 -51 16 -51 6 0 10 -5 10 -11 0 -6 7 -17 15 -25 8 -9 15 -27 15 -40 0+-14 6 -32 14 -39 7 -8 17 -34 20 -60 4 -25 11 -45 17 -45 5 0 9 -7 9 -16 0 -8+7 -22 15 -30 8 -9 15 -24 15 -35 0 -10 5 -19 10 -19 6 0 10 -5 10 -11 0 -6 7+-17 15 -25 8 -9 15 -29 15 -45 0 -16 5 -29 10 -29 6 0 10 -6 10 -13 0 -7 14+-40 30 -72 34 -67 34 -65 19 -65 -13 0 -159 152 -159 166 0 6 -20 31 -44 56+-25 25 -48 58 -52 74 -8 32 -19 45 -52 63 -19 10 -36 34 -77 112 -5 11 -13 19+-17 19 -5 0 -8 6 -8 13 0 8 -16 30 -35 50 -19 20 -35 45 -35 57 0 11 -4 20+-10 20 -13 0 -50 74 -50 99 0 10 -6 21 -14 24 -8 3 -17 19 -21 36 -4 17 -10+31 -15 31 -5 0 -11 14 -15 30 -4 17 -11 30 -16 30 -5 0 -9 7 -9 15 0 8 -4 15+-9 15 -5 0 -12 14 -16 30 -4 17 -11 30 -16 30 -5 0 -9 7 -9 15 0 8 -4 15 -9+15 -5 0 -12 14 -16 30 -4 17 -10 30 -15 30 -4 0 -11 18 -15 39 -4 22 -13 42+-20 45 -8 3 -17 27 -21 56 -4 27 -10 50 -15 50 -5 0 -9 7 -9 15 0 8 -4 15 -9+15 -5 0 -12 20 -15 45 -4 25 -11 45 -17 45 -5 0 -9 7 -9 15 0 8 -4 15 -9 15+-5 0 -12 20 -15 45 -4 25 -11 45 -15 45 -10 0 -51 166 -51 208 0 18 -4 32 -9+32 -4 0 -11 35 -15 77 -4 43 -12 81 -18 84 -7 5 -13 53 -16 118 -3 61 -8 111+-13 111 -5 0 -9 126 -9 280 0 154 4 280 9 280 4 0 11 43 13 96 3 53 10 99 16+103 6 4 14 26 18 49 l7 42 168 0 c162 0 169 -1 169 -20z m-800 -589 c0 -98 4+-151 11 -153 7 -2 13 -63 16 -163 3 -88 10 -163 15 -166 19 -13 58 -228 58+-325 0 -23 5 -44 11 -46 6 -2 14 -27 17 -56 2 -29 8 -52 13 -52 5 0 9 -9 9+-20 0 -11 5 -20 10 -20 6 0 10 -7 10 -16 0 -9 7 -22 15 -28 9 -7 18 -36 21+-73 4 -35 11 -63 15 -63 5 0 9 -9 9 -21 0 -11 6 -27 14 -34 7 -8 17 -34 20+-60 4 -25 11 -45 17 -45 5 0 9 -7 9 -16 0 -8 7 -22 15 -30 8 -9 15 -27 15 -40+0 -14 7 -32 15 -40 8 -9 15 -24 15 -35 0 -10 4 -19 10 -19 5 0 13 -12 16 -27+4 -16 14 -33 21 -38 8 -6 17 -30 20 -53 3 -23 9 -42 13 -42 9 0 47 -59 66+-100 6 -14 18 -31 27 -39 10 -7 17 -20 17 -28 0 -21 -36 -7 -69 28 -16 16 -33+29 -39 29 -7 0 -17 9 -24 20 -7 11 -33 30 -58 42 -25 11 -65 41 -91 67 -25 25+-69 64 -97 86 -64 48 -232 210 -232 222 0 5 -30 41 -67 80 -94 97 -173 201+-173 227 0 11 -11 30 -25 40 -14 10 -25 24 -25 31 0 7 -9 15 -19 18 -11 3 -22+17 -26 36 -4 17 -10 31 -15 31 -4 0 -11 11 -14 25 -4 14 -11 25 -16 25 -11 0+-50 73 -50 94 0 7 -7 16 -14 19 -8 3 -18 22 -22 41 -3 20 -10 36 -14 36 -5 0+-11 14 -15 30 -4 17 -11 30 -16 30 -5 0 -9 7 -9 15 0 8 -4 15 -10 15 -5 0 -10+9 -10 20 0 11 -4 20 -9 20 -5 0 -12 14 -16 30 -4 17 -10 30 -15 30 -5 0 -11+14 -15 30 -4 17 -10 30 -15 30 -4 0 -11 18 -15 40 -4 22 -10 40 -15 40 -4 0+-11 20 -14 45 -4 25 -11 45 -15 45 -5 0 -11 23 -15 50 -4 28 -11 50 -16 50 -6+0 -10 9 -10 20 0 11 -4 20 -9 20 -4 0 -11 27 -15 59 -4 33 -12 61 -18 63 -6 2+-13 30 -16 61 l-4 57 421 0 421 0 0 -149z m4618 106 c3 -29 -17 -87 -30 -87+-5 0 -8 -13 -8 -30 0 -16 -4 -30 -8 -30 -4 0 -13 -44 -20 -97 -7 -53 -18 -104+-26 -112 -7 -9 -19 -31 -27 -48 -8 -18 -17 -33 -21 -33 -5 0 -8 -13 -8 -29 0+-16 -7 -36 -15 -45 -8 -8 -18 -35 -21 -59 -4 -27 -16 -55 -30 -70 -13 -15 -24+-33 -24 -42 0 -8 -4 -15 -9 -15 -6 0 -13 -20 -17 -45 -3 -25 -12 -49 -19 -53+-7 -4 -15 -18 -17 -32 -1 -14 -13 -29 -25 -35 -14 -6 -23 -18 -23 -33 0 -12+-7 -25 -15 -28 -8 -4 -15 -14 -15 -25 0 -10 -6 -22 -14 -26 -7 -4 -19 -25 -25+-45 -7 -21 -18 -41 -25 -45 -7 -5 -21 -22 -30 -40 -9 -18 -26 -43 -39 -56 -12+-14 -33 -41 -47 -62 -14 -20 -33 -46 -42 -56 -10 -10 -18 -25 -18 -33 0 -18+-66 -76 -85 -76 -8 0 -15 -9 -15 -20 0 -17 -92 -120 -106 -120 -8 0 -44 -41+-44 -50 0 -5 -5 -10 -10 -10 -13 0 -100 -88 -100 -101 0 -5 -7 -9 -15 -9 -8 0+-15 -5 -15 -11 0 -5 -16 -17 -35 -24 -19 -8 -39 -24 -45 -34 -5 -11 -24 -28+-40 -38 -17 -9 -30 -23 -30 -30 0 -15 -56 -58 -90 -68 -13 -4 -30 -14 -38 -21+-7 -8 -20 -14 -28 -14 -8 0 -14 -4 -14 -9 0 -13 -29 -41 -41 -41 -11 0 -2 41+10 50 4 3 15 27 25 53 10 27 24 51 32 54 8 3 14 11 14 18 0 7 5 15 11 17 6 2+15 26 20 53 5 28 14 52 19 53 6 2 10 10 10 18 0 8 4 14 10 14 5 0 12 16 16 35+3 19 10 35 15 35 4 0 11 23 15 50 4 28 10 50 15 50 4 0 11 16 15 35 3 19 10+35 15 35 4 0 11 23 15 50 4 28 10 50 15 50 4 0 11 20 15 45 3 25 10 45 14 45+5 0 11 19 15 43 12 80 39 187 47 187 4 0 8 14 8 30 0 17 4 30 9 30 5 0 13 30+17 68 3 37 10 69 15 72 4 3 11 43 15 88 4 45 10 82 14 82 4 0 10 53 13 117 4+66 11 119 17 121 6 2 10 50 10 121 0 65 3 159 7 210 l6 91 436 -2 436 -3 3+-28z"/></g></g></svg>\ No newline at end of filediff --git a/apps/nextjs/src/components/board/items/item-select-modal.tsx b/apps/nextjs/src/components/board/items/item-select-modal.tsxindex fef7695b7..2789c1b81 100644--- a/apps/nextjs/src/components/board/items/item-select-modal.tsx+++ b/apps/nextjs/src/components/board/items/item-select-modal.tsx@@ -158,6 +158,7 @@ const ItemSelectModalContent = ({description = t("widget.mediaMissing.description", {radarr: getIntegrationName("radarr"),sonarr: getIntegrationName("sonarr"),+ sportarr: getIntegrationName("sportarr"),bindery: getIntegrationName("bindery"),});} else {diff --git a/packages/api/src/router/widgets/calendar.ts b/packages/api/src/router/widgets/calendar.tsindex 9d843d9b1..e4b44d0d2 100644--- a/packages/api/src/router/widgets/calendar.ts+++ b/packages/api/src/router/widgets/calendar.ts@@ -13,7 +13,7 @@ export const calendarRouter = createTRPCRouter({mcp: {enabled: true,description:- "Get calendar events from calendar-capable integrations. REQUIRED: integrationIds (IDs from integration_all whose kinds include Sonarr, Radarr, Lidarr, Readarr, Home Assistant, Nextcloud, or iCal), year (four-digit number), month (human month number from 1=January through 12=December), releaseType (Radarr filters: 'inCinemas'|'digitalRelease'|'physicalRelease'), showUnmonitored (boolean). Great for 'what's coming out this week/month?'",+ "Get calendar events from calendar-capable integrations. REQUIRED: integrationIds (IDs from integration_all whose kinds include Sonarr, Sportarr, Radarr, Lidarr, Readarr, Home Assistant, Nextcloud, or iCal), year (four-digit number), month (human month number from 1=January through 12=December), releaseType (Radarr filters: 'inCinemas'|'digitalRelease'|'physicalRelease'), showUnmonitored (boolean). Great for 'what's coming out this week/month?'",},}).input(diff --git a/packages/api/src/router/widgets/media-organizer.ts b/packages/api/src/router/widgets/media-organizer.tsindex 2577b332e..83211ea6f 100644--- a/packages/api/src/router/widgets/media-organizer.ts+++ b/packages/api/src/router/widgets/media-organizer.ts@@ -12,7 +12,7 @@ export const mediaOrganizerRouter = createTRPCRouter({mcp: {enabled: true,description:- "Get missing and queued movies/episodes from Radarr and Sonarr. Requires query (use) access to each integration. REQUIRED: integrationIds (array of Radarr/Sonarr integration IDs from integration_all). OPTIONAL: pageSize (1-50, default 10)",+ "Get missing and queued movies/episodes/events from Radarr, Sonarr, and Sportarr. Requires query (use) access to each integration. REQUIRED: integrationIds (array of Radarr/Sonarr/Sportarr integration IDs from integration_all). OPTIONAL: pageSize (1-50, default 10)",},}).concat(createManyWidgetIntegrationMiddleware("query", "mediaMissing"))diff --git a/packages/definitions/src/docs/homarr-docs-sitemap.ts b/packages/definitions/src/docs/homarr-docs-sitemap.tsindex 88de4ad6c..254c01fc9 100644--- a/packages/definitions/src/docs/homarr-docs-sitemap.ts+++ b/packages/definitions/src/docs/homarr-docs-sitemap.ts@@ -176,6 +176,7 @@ export type HomarrDocumentationPath =| "/docs/integrations/sonarr"| "/docs/integrations/speedtest-tracker"| "/docs/integrations/spoolman"+ | "/docs/integrations/sportarr"| "/docs/integrations/stash"| "/docs/integrations/syncthing-relay"| "/docs/integrations/synology"diff --git a/packages/definitions/src/integration.ts b/packages/definitions/src/integration.tsindex 93c120b51..780b7a597 100644--- a/packages/definitions/src/integration.ts+++ b/packages/definitions/src/integration.ts@@ -468,6 +468,16 @@ export const integrationDefs = {apiKeySettingsPath: "/settings/general",features: { onboarding: { featuredOrder: 0 } },},+ sportarr: {+ httpAuth: { type: "adapter" },+ name: "Sportarr",+ secretKinds: [["apiKey"]],+ iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/sportarr.svg",+ category: ["calendar", "mediaOrganizer"],+ documentationSlug: "sportarr",+ defaultPort: 1867,+ apiKeySettingsPath: "/settings/general",+ },radarr: {httpAuth: { type: "adapter" },name: "Radarr",diff --git a/packages/definitions/src/test/docker-integration-match.spec.ts b/packages/definitions/src/test/docker-integration-match.spec.tsindex 2a5db3a14..71c33b5b0 100644--- a/packages/definitions/src/test/docker-integration-match.spec.ts+++ b/packages/definitions/src/test/docker-integration-match.spec.ts@@ -116,4 +116,13 @@ describe("matchIntegrationKindFromContainer", () => {}),).toBeNull();});++ it("matches Sportarr from its official image name", () => {+ expect(+ matchIntegrationKindFromContainer({+ image: "sportarr/sportarr:latest",+ name: "sportarr",+ }),+ ).toBe("sportarr");+ });});diff --git a/packages/integrations/src/base/creator.ts b/packages/integrations/src/base/creator.tsindex 11cbd1a90..97da0b6f4 100644--- a/packages/integrations/src/base/creator.ts+++ b/packages/integrations/src/base/creator.ts@@ -258,6 +258,8 @@ const integrationCreators = {plex: async (input: IntegrationInput) => new (await import("../plex/plex-integration")).PlexIntegration(input),sonarr: async (input: IntegrationInput) =>new (await import("../media-organizer/sonarr/sonarr-integration")).SonarrIntegration(input),+ sportarr: async (input: IntegrationInput) =>+ new (await import("../media-organizer/sportarr/sportarr-integration")).SportarrIntegration(input),radarr: async (input: IntegrationInput) =>new (await import("../media-organizer/radarr/radarr-integration")).RadarrIntegration(input),sabNzbd: async (input: IntegrationInput) =>diff --git a/packages/integrations/src/index.ts b/packages/integrations/src/index.tsindex 65dfe2a90..1860a6582 100644--- a/packages/integrations/src/index.ts+++ b/packages/integrations/src/index.ts@@ -20,6 +20,7 @@ export { LidarrIntegration } from "./media-organizer/lidarr/lidarr-integration";export { RadarrIntegration } from "./media-organizer/radarr/radarr-integration";export { ReadarrIntegration } from "./media-organizer/readarr/readarr-integration";export { SonarrIntegration } from "./media-organizer/sonarr/sonarr-integration";+export { SportarrIntegration } from "./media-organizer/sportarr/sportarr-integration";export { NextcloudIntegration } from "./nextcloud/nextcloud.integration";export { GotifyIntegration } from "./gotify/gotify-integration";export { NTFYIntegration } from "./ntfy/ntfy-integration";diff --git a/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts b/packages/integrations/src/media-organizer/sonarr/sonarr-integration.tsindex 6a6bd1291..41bab2fc7 100644--- a/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts+++ b/packages/integrations/src/media-organizer/sonarr/sonarr-integration.ts@@ -77,14 +77,14 @@ export class SonarrIntegration"X-Api-Key": super.getSecretValue("apiKey"),},});- const sonarrCalendarEvents = await z.array(sonarrCalendarEventSchema).parseAsync(await response.json());+ const sonarrCalendarEvents = await z.array(this.calendarEventSchema).parseAsync(await response.json());return sonarrCalendarEvents.map((event): CalendarEvent => {const imageSrc = this.chooseBestImageAsURL(event);return {title: event.title,- subTitle: event.series.title,- description: event.series.overview ?? null,+ subTitle: event.series?.title ?? null,+ description: event.series?.overview ?? null,startDate: event.airDateUtc,endDate: null,image: imageSrc@@ -93,7 +93,7 @@ export class SonarrIntegrationaspectRatio: { width: 7, height: 12 },badge: {color: "red",- content: `S${event.seasonNumber}/E${event.episodeNumber}`,+ content: this.getCalendarBadgeContent(event.seasonNumber, event.episodeNumber),},}: null,@@ -104,18 +104,60 @@ export class SonarrIntegration});}- private getLinksForSonarrCalendarEvent = (event: z.infer<typeof sonarrCalendarEventSchema>) => {+ protected get calendarEventSchema(): z.ZodType<SonarrCalendarEvent> {+ return sonarrCalendarEventSchema;+ }++ protected get missingEpisodeSchema(): z.ZodType<SonarrMissingEpisode> {+ return sonarrMissingEpisodeSchema;+ }++ /**+ * Branding used for the calendar entry link; Sonarr-API-compatible+ * subclasses (Sportarr) override these so events link with their own+ * name and logo.+ */+ protected get calendarLinkName(): string {+ return "Sonarr";+ }++ protected get calendarLinkLogo(): string {+ return "/images/apps/sonarr.svg";+ }++ protected getCalendarBadgeContent(seasonNumber: number, episodeNumber: number): string {+ return `S${seasonNumber}/E${episodeNumber}`;+ }++ /**+ * Web UI paths for links. Sonarr-API-compatible subclasses (Sportarr)+ * override these because their UI routes differ.+ */+ protected getSeriesPath(series: { id?: number; titleSlug: string }): `/${string}` {+ return `/series/${series.titleSlug}`;+ }++ protected get missingFallbackPath(): `/${string}` {+ return "/wanted/missing";+ }++ protected get queueFallbackPath(): `/${string}` {+ return "/activity/queue";+ }++ private getLinksForSonarrCalendarEvent = (event: SonarrCalendarEvent) => {+ const path = event.series && this.getSeriesPath(event.series);const links: CalendarLink[] = [{- href: this.externalUrl(`/series/${event.series.titleSlug}`).toString(),- name: "Sonarr",- logo: "/images/apps/sonarr.svg",+ href: this.externalUrl(path ?? "/calendar").toString(),+ name: this.calendarLinkName,+ logo: this.calendarLinkLogo,color: undefined,isDark: true,},];- if (event.series.imdbId) {+ if (event.series?.imdbId) {links.push({href: `https://www.imdb.com/title/${event.series.imdbId}/`,name: "IMDb",@@ -128,10 +170,8 @@ export class SonarrIntegrationreturn links;};- private chooseBestImage = (- event: z.infer<typeof sonarrCalendarEventSchema>,- ): z.infer<typeof sonarrCalendarEventSchema>["images"][number] | undefined => {- const flatImages = [...event.images, ...event.series.images];+ private chooseBestImage = (event: SonarrCalendarEvent): SonarrCalendarEvent["images"][number] | undefined => {+ const flatImages = [...event.images, ...(event.series?.images ?? [])];const sortedImages = flatImages.sort((imageA, imageB) =>@@ -141,7 +181,7 @@ export class SonarrIntegrationreturn sortedImages[0];};- private chooseBestImageAsURL = (event: z.infer<typeof sonarrCalendarEventSchema>): string | undefined => {+ private chooseBestImageAsURL = (event: SonarrCalendarEvent): string | undefined => {const bestImage = this.chooseBestImage(event);if (!bestImage) {return undefined;@@ -164,7 +204,7 @@ export class SonarrIntegrationconst data = await z.object({totalRecords: z.number(),- records: z.array(sonarrMissingEpisodeSchema),+ records: z.array(this.missingEpisodeSchema),}).parseAsync(await response.json());@@ -181,8 +221,8 @@ export class SonarrIntegrationyear: episode.series?.year,imageUrl: episode.series?.images.find((img) => img.coverType === "poster")?.remoteUrl ?? null,link: episode.series?.titleSlug- ? this.externalUrl(`/series/${episode.series.titleSlug}`).toString()- : this.externalUrl("/wanted/missing").toString(),+ ? this.externalUrl(this.getSeriesPath(episode.series)).toString()+ : this.externalUrl(this.missingFallbackPath).toString(),}),),};@@ -224,8 +264,8 @@ export class SonarrIntegrationseriesTitle: item.series?.title,imageUrl: item.series?.images.find((img) => img.coverType === "poster")?.remoteUrl ?? null,link: item.series?.titleSlug- ? this.externalUrl(`/series/${item.series.titleSlug}`).toString()- : this.externalUrl("/activity/queue").toString(),+ ? this.externalUrl(this.getSeriesPath(item.series)).toString()+ : this.externalUrl(this.queueFallbackPath).toString(),};}),};@@ -250,13 +290,14 @@ export class SonarrIntegration}}-const sonarrMissingEpisodeSchema = z.object({+export const sonarrMissingEpisodeSchema = z.object({id: z.number(),title: z.string(),seasonNumber: z.number(),episodeNumber: z.number(),series: z.object({+ id: z.number().optional(),title: z.string(),year: z.number().optional(),titleSlug: z.string(),@@ -274,7 +315,7 @@ const sonarrQueueItemSchema = z.object({id: z.number(),title: z.string(),status: z.string(),- timeleft: z.string().optional(),+ timeleft: z.string().nullish(),size: z.number().optional(),sizeleft: z.number().optional(),series: z@@ -306,12 +347,13 @@ const sonarrCalendarEventImageSchema = z.array(}),);-const sonarrCalendarEventSchema = z.object({+export const sonarrCalendarEventSchema = z.object({title: z.string(),airDateUtc: z.string().transform((value) => new Date(value)),seasonNumber: z.number().min(0),episodeNumber: z.number().min(0),series: z.object({+ id: z.number().optional(),overview: z.string().optional(),title: z.string(),titleSlug: z.string(),@@ -320,3 +362,11 @@ const sonarrCalendarEventSchema = z.object({}),images: sonarrCalendarEventImageSchema,});++type SonarrCalendarEvent = Omit<z.infer<typeof sonarrCalendarEventSchema>, "series"> & {+ series: z.infer<typeof sonarrCalendarEventSchema>["series"] | null;+};++type SonarrMissingEpisode = Omit<z.infer<typeof sonarrMissingEpisodeSchema>, "series"> & {+ series?: z.infer<typeof sonarrMissingEpisodeSchema>["series"] | null;+};diff --git a/packages/integrations/src/media-organizer/sportarr/sportarr-integration.ts b/packages/integrations/src/media-organizer/sportarr/sportarr-integration.tsnew file mode 100644index 000000000..141d08ac6--- /dev/null+++ b/packages/integrations/src/media-organizer/sportarr/sportarr-integration.ts@@ -0,0 +1,46 @@+import { sonarrCalendarEventSchema, sonarrMissingEpisodeSchema, SonarrIntegration } from "../sonarr/sonarr-integration";++/**+ * Sportarr (https://github.com/Sportarr/Sportarr) is a sports event manager+ * exposing a Sonarr-v3-compatible API: calendar, queue and wanted/missing+ * behave like Sonarr's with leagues surfacing as series and events as+ * episodes. Standalone events have no series. Validation, link branding,+ * web UI paths and the calendar badge differ from Sonarr.+ */+export class SportarrIntegration extends SonarrIntegration {+ protected override get calendarEventSchema() {+ return sonarrCalendarEventSchema.extend({ series: sonarrCalendarEventSchema.shape.series.nullable() });+ }++ protected override get missingEpisodeSchema() {+ return sonarrMissingEpisodeSchema.extend({ series: sonarrMissingEpisodeSchema.shape.series.nullable() });+ }++ protected override get calendarLinkName(): string {+ return "Sportarr";+ }++ protected override get calendarLinkLogo(): string {+ return "/images/apps/sportarr.svg";+ }++ // Sportarr seasons are years ("S2026/E43" overflows the badge), and+ // the calendar already shows the date, so the season adds nothing.+ protected override getCalendarBadgeContent(_seasonNumber: number, episodeNumber: number): string {+ return `E${episodeNumber}`;+ }++ // Sportarr shows a league at /leagues/{id}. It has no slug route.+ protected override getSeriesPath(series: { id?: number; titleSlug: string }): `/${string}` {+ return series.id === undefined ? "/leagues" : `/leagues/${series.id}`;+ }++ // Sportarr shows its queue and missing events on the activity page.+ protected override get missingFallbackPath(): `/${string}` {+ return "/activity";+ }++ protected override get queueFallbackPath(): `/${string}` {+ return "/activity";+ }+}diff --git a/packages/integrations/src/stats/existing.ts b/packages/integrations/src/stats/existing.tsindex 81ec8ae33..ebffb4919 100644--- a/packages/integrations/src/stats/existing.ts+++ b/packages/integrations/src/stats/existing.ts@@ -185,12 +185,16 @@ for (const kind of ["jellyseerr", "seerr", "overseerr"] as const) {({ pending, approved, available, processing }) => ({ pending, approved, available, processing }),);}-for (const kind of ["sonarr", "radarr"] as const) {+for (const kind of ["sonarr", "sportarr", "radarr"] as const) {const libraryMetric = metric("movies", "Movies");if (kind === "sonarr") {libraryMetric.key = "shows";libraryMetric.label = "Shows";}+ if (kind === "sportarr") {+ libraryMetric.key = "shows";+ libraryMetric.label = "Leagues";+ }const metrics = [libraryMetric,metric("monitored", "Monitored"),@@ -203,6 +207,10 @@ for (const kind of ["sonarr", "radarr"] as const) {metrics[2] = metric("downloaded", "Downloaded episodes");metrics.push(metric("episodes", "Episodes"));}+ if (kind === "sportarr") {+ metrics[2] = metric("downloaded", "Downloaded events");+ metrics.push(metric("episodes", "Events"));+ }existingStatsProviders[kind] = adapter(kind,metrics,diff --git a/packages/integrations/test/sportarr-unit.spec.ts b/packages/integrations/test/sportarr-unit.spec.tsnew file mode 100644index 000000000..b7bd6ae01--- /dev/null+++ b/packages/integrations/test/sportarr-unit.spec.ts@@ -0,0 +1,135 @@+// @vitest-environment node++import { describe, expect, test, vi } from "vitest";++import { createDb } from "@homarr/db/test";+import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";++import { SonarrIntegration } from "../src/media-organizer/sonarr/sonarr-integration";+import { SportarrIntegration } from "../src/media-organizer/sportarr/sportarr-integration";++vi.mock("@homarr/db", async (importActual) => {+ const actual = await importActual<typeof import("@homarr/db")>();+ return { ...actual, db: createDb() };+});++vi.mock("@homarr/core/infrastructure/certificates", async (importActual) => {+ const actual = await importActual<typeof import("@homarr/core/infrastructure/certificates")>();+ return {+ ...actual,+ getTrustedCertificateHostnamesAsync: vi.fn().mockResolvedValue([]),+ };+});++vi.mock("@homarr/core/infrastructure/http", () => ({+ fetchWithTrustedCertificatesAsync: vi.fn(),+}));++const mockFetch = vi.mocked(fetchWithTrustedCertificatesAsync);++const calendarEventResponse = [+ {+ title: "Test Event",+ airDateUtc: "2026-01-01T00:00:00Z",+ seasonNumber: 1,+ episodeNumber: 1,+ images: [],+ series: {+ id: 7,+ title: "Test League",+ titleSlug: "test-league",+ images: [],+ },+ },+];++const createCalendarEventWithPoster = (seasonNumber: number, episodeNumber: number) => [+ {+ title: "Test Event",+ airDateUtc: "2026-01-01T00:00:00Z",+ seasonNumber,+ episodeNumber,+ images: [{ coverType: "poster", remoteUrl: "https://example.com/event-poster.jpg" }],+ series: {+ title: "Test League",+ titleSlug: "test-league",+ images: [],+ },+ },+];++const sportarrIntegrationInput = {+ id: "test-sportarr",+ name: "Sportarr",+ url: "http://localhost:1867",+ decryptedSecrets: [{ kind: "apiKey" as const, value: "test-key" }],+ externalUrl: null,+};++describe("SportarrIntegration branding override", () => {+ test("uses Sportarr name, logo and league route instead of Sonarr's on calendar links", async () => {+ mockFetch.mockResolvedValueOnce({+ ok: true,+ json: () => Promise.resolve(calendarEventResponse),+ } as never);++ const integration = new SportarrIntegration(sportarrIntegrationInput);+ const events = await integration.getCalendarEventsAsync(new Date("2026-01-01"), new Date("2026-01-31"));++ expect(events[0]?.links[0]).toMatchObject({+ name: "Sportarr",+ href: "http://localhost:1867/leagues/7",+ logo: "/images/apps/sportarr.svg",+ });+ });++ test("does not affect SonarrIntegration's own branding", async () => {+ mockFetch.mockResolvedValueOnce({+ ok: true,+ json: () => Promise.resolve(calendarEventResponse),+ } as never);++ const integration = new SonarrIntegration({+ ...sportarrIntegrationInput,+ id: "test-sonarr",+ name: "Sonarr",+ url: "http://localhost:8989",+ });+ const events = await integration.getCalendarEventsAsync(new Date("2026-01-01"), new Date("2026-01-31"));++ expect(events[0]?.links[0]).toMatchObject({+ name: "Sonarr",+ href: "http://localhost:8989/series/test-league",+ logo: "/images/apps/sonarr.svg",+ });+ });++ test("shortens the calendar badge to the episode number because seasons are years", async () => {+ mockFetch.mockResolvedValueOnce({+ ok: true,+ json: () => Promise.resolve(createCalendarEventWithPoster(2026, 43)),+ } as never);++ const integration = new SportarrIntegration(sportarrIntegrationInput);+ const events = await integration.getCalendarEventsAsync(new Date("2026-01-01"), new Date("2026-01-31"));++ expect(events[0]?.image?.badge?.content).toBe("E43");+ });++ test("does not affect SonarrIntegration's own calendar badge format", async () => {+ mockFetch.mockResolvedValueOnce({+ ok: true,+ json: () => Promise.resolve(createCalendarEventWithPoster(1, 2)),+ } as never);++ const integration = new SonarrIntegration({+ ...sportarrIntegrationInput,+ id: "test-sonarr",+ name: "Sonarr",+ url: "http://localhost:8989",+ });+ const events = await integration.getCalendarEventsAsync(new Date("2026-01-01"), new Date("2026-01-31"));++ expect(events[0]?.image?.badge?.content).toBe("S1/E2");+ });+});diff --git a/packages/translation/src/lang/en.json b/packages/translation/src/lang/en.jsonindex edfa99055..de562736d 100644--- a/packages/translation/src/lang/en.json+++ b/packages/translation/src/lang/en.json@@ -4567,7 +4567,7 @@},"mediaMissing": {"name": "Missing & Queued Media",- "description": "Shows missing and queued movies, episodes and books from {radarr}, {sonarr} and {bindery}",+ "description": "Shows missing and queued movies, episodes, events and books from {radarr}, {sonarr}, {sportarr} and {bindery}","option": {"showMissing": {"label": "Show missing items"