mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-04 14:33:41 +01:00
Merge pull request #1685 from jonathann92/fix-tautulli-sort
Fix: Handle tautulli response when unable to connect to Plex
This commit is contained in:
commit
5a7e97222c
@ -129,7 +129,8 @@
|
|||||||
"playing": "Playing",
|
"playing": "Playing",
|
||||||
"transcoding": "Transcoding",
|
"transcoding": "Transcoding",
|
||||||
"bitrate": "Bitrate",
|
"bitrate": "Bitrate",
|
||||||
"no_active": "No Active Streams"
|
"no_active": "No Active Streams",
|
||||||
|
"plex_connection_error": "Check Plex Connection"
|
||||||
},
|
},
|
||||||
"omada": {
|
"omada": {
|
||||||
"connectedAp": "Connected APs",
|
"connectedAp": "Connected APs",
|
||||||
|
@ -122,8 +122,8 @@ export default function Component({ service }) {
|
|||||||
refreshInterval: 5000,
|
refreshInterval: 5000,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (activityError) {
|
if (activityError || (activityData && Object.keys(activityData.response.data).length === 0)) {
|
||||||
return <Container service={service} error={activityError} />;
|
return <Container service={service} error={activityError ?? { message: t("tautulli.plex_connection_error") } } />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!activityData) {
|
if (!activityData) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user