From 5fc266ed81f147cbdc70bd647393711fce92a2cc Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 18 Sep 2022 02:12:24 +0300 Subject: [PATCH] better status icon logic for tautulli --- .../services/widgets/service/tautulli.jsx | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/src/components/services/widgets/service/tautulli.jsx b/src/components/services/widgets/service/tautulli.jsx index a9e9f61f1..8ca6b01b4 100644 --- a/src/components/services/widgets/service/tautulli.jsx +++ b/src/components/services/widgets/service/tautulli.jsx @@ -2,7 +2,7 @@ import useSWR from "swr"; import { useTranslation } from "react-i18next"; import { BsFillPlayFill, BsPauseFill, BsCpu, BsFillCpuFill } from "react-icons/bs"; -import { MdOutlineSmartDisplay } from "react-icons/md"; +import { MdOutlineSmartDisplay, MdSmartDisplay } from "react-icons/md"; import Widget from "../widget"; @@ -37,9 +37,16 @@ function SingleSessionEntry({ session }) {
{full_title}
+ {video_decision === "direct play" && audio_decision === "direct play" && ( + + )} {video_decision === "copy" && audio_decision === "copy" && } - {video_decision !== "copy" && audio_decision !== "copy" && } - {video_decision === "copy" && audio_decision !== "copy" && } + {video_decision !== "copy" && + video_decision !== "direct play" && + (audio_decision !== "copy" || audio_decision !== "direct play") && } + {(video_decision === "copy" || video_decision === "direct play") && + audio_decision !== "copy" && + audio_decision !== "direct play" && }
@@ -92,9 +99,16 @@ function SessionEntry({ session }) {
{full_title}
+ {video_decision === "direct play" && audio_decision === "direct play" && ( + + )} {video_decision === "copy" && audio_decision === "copy" && } - {video_decision !== "copy" && audio_decision !== "copy" && } - {video_decision === "copy" && audio_decision !== "copy" && } + {video_decision !== "copy" && + video_decision !== "direct play" && + (audio_decision !== "copy" || audio_decision !== "direct play") && } + {(video_decision === "copy" || video_decision === "direct play") && + audio_decision !== "copy" && + audio_decision !== "direct play" && }
{millisecondsToString(view_offset)}