mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Enhancement: add links to sonarr and radarr calendar widget items (#5448)
This commit is contained in:
@@ -54,6 +54,7 @@ export default function Integration({ config, params, setEvents, hideErrors, tim
|
||||
ICAL.Time.now(), // handles events without a date
|
||||
location: event.getFirstPropertyValue("location"),
|
||||
status: event.getFirstPropertyValue("status"),
|
||||
url: event.getFirstPropertyValue("url"),
|
||||
};
|
||||
};
|
||||
|
||||
@@ -133,6 +134,7 @@ export default function Integration({ config, params, setEvents, hideErrors, tim
|
||||
isCompleted: getIsCompleted(),
|
||||
additional: event.location,
|
||||
type: "ical",
|
||||
url: event.url,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
@@ -22,6 +22,7 @@ export default function Integration({ config, params, setEvents, hideErrors = fa
|
||||
const cinemaTitle = `${event.title} - ${t("calendar.inCinemas")}`;
|
||||
const physicalTitle = `${event.title} - ${t("calendar.physicalRelease")}`;
|
||||
const digitalTitle = `${event.title} - ${t("calendar.digitalRelease")}`;
|
||||
const url = config?.baseUrl && event.titleSlug && `${config.baseUrl}/movie/${event.titleSlug}`;
|
||||
|
||||
if (event.inCinemas) {
|
||||
eventsToAdd[cinemaTitle] = {
|
||||
@@ -30,6 +31,7 @@ export default function Integration({ config, params, setEvents, hideErrors = fa
|
||||
color: config?.color ?? "amber",
|
||||
isCompleted: event.hasFile,
|
||||
additional: "",
|
||||
url,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,6 +42,7 @@ export default function Integration({ config, params, setEvents, hideErrors = fa
|
||||
color: config?.color ?? "cyan",
|
||||
isCompleted: event.hasFile,
|
||||
additional: "",
|
||||
url,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -50,6 +53,7 @@ export default function Integration({ config, params, setEvents, hideErrors = fa
|
||||
color: config?.color ?? "emerald",
|
||||
isCompleted: event.hasFile,
|
||||
additional: "",
|
||||
url,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
@@ -29,6 +29,7 @@ export default function Integration({ config, params, setEvents, hideErrors = fa
|
||||
color: config?.color ?? "teal",
|
||||
isCompleted: event.hasFile,
|
||||
additional: `S${event.seasonNumber} E${event.episodeNumber}`,
|
||||
url: config?.baseUrl && event.series.titleSlug && `${config.baseUrl}/series/${event.series.titleSlug}`,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user