mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 02:09:49 +00:00
add Jellyfin integration
This commit is contained in:
parent
7647d8eb4e
commit
1141401e56
3 changed files with 10 additions and 2 deletions
|
@ -3,7 +3,7 @@ import useSWR from "swr";
|
|||
import Widget from "../widget";
|
||||
import Block from "../block";
|
||||
|
||||
export default function Emby({ service }) {
|
||||
export default function Emby({ service, title = "Emby" }) {
|
||||
const config = service.widget;
|
||||
|
||||
function buildApiUrl(endpoint) {
|
||||
|
@ -16,7 +16,7 @@ export default function Emby({ service }) {
|
|||
});
|
||||
|
||||
if (sessionsError) {
|
||||
return <Widget error="Emby API Error" />;
|
||||
return <Widget error={`${title} API Error`} />;
|
||||
}
|
||||
|
||||
if (!sessionsData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue