From fbbb2c05691ec1123fdab5553fb465475e38bf31 Mon Sep 17 00:00:00 2001 From: brikim Date: Sun, 16 Feb 2025 13:39:45 -0600 Subject: [PATCH] Emby Stream Type Fix and added IS_EMBY_API to README --- README.md | 1 + public/locales/ca-ES/translation.json | 1 + public/locales/en-UK/translation.json | 1 + public/locales/fr-FR/translation.json | 1 + public/locales/it-IT/translation.json | 1 + public/locales/zh-CN/translation.json | 1 + src/pages/components/statCards/playback_method_stats.jsx | 5 +++-- 7 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c97d1c7..f16e7c1 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ | JS_GEOLITE_ACCOUNT_ID | `null` | `123456` | maxmind.com user id to be used for Geolocating IP Addresses (Can be found at https://www.maxmind.com/en/accounts/current/edit) | | JS_GEOLITE_LICENSE_KEY | `null` | `ASDWdaSdawe2sd186` | License key you need to generate on maxmind to use their services | | MINIMUM_SECONDS_TO_INCLUDE_PLAYBACK | `1` | `10` | The minimum time (in seconds) to include a playback record, which can be used to exclude short playbacks | +| IS_EMBY_API | `false` | `true` | Set to true if using Emby instead of Jellyfin | ## Getting Started with Development diff --git a/public/locales/ca-ES/translation.json b/public/locales/ca-ES/translation.json index 8233779..5578854 100644 --- a/public/locales/ca-ES/translation.json +++ b/public/locales/ca-ES/translation.json @@ -289,6 +289,7 @@ "SOURCE_DETAILS": "Detalls de la font", "DIRECT": "Directe", "TRANSCODE": "Transcodificar", + "DIRECT_STREAM": "", "USERNAME": "Nom d'usuari", "PASSWORD": "Contrasenya", "LOGIN": "Iniciar sessió", diff --git a/public/locales/en-UK/translation.json b/public/locales/en-UK/translation.json index bd7de5e..dd8102f 100644 --- a/public/locales/en-UK/translation.json +++ b/public/locales/en-UK/translation.json @@ -289,6 +289,7 @@ "SOURCE_DETAILS": "Source Details", "DIRECT": "Direct", "TRANSCODE": "Transcode", + "DIRECT_STREAM": "Direct Stream", "USERNAME": "Username", "PASSWORD": "Password", "LOGIN": "Login", diff --git a/public/locales/fr-FR/translation.json b/public/locales/fr-FR/translation.json index 2e7381b..cbaa2a2 100644 --- a/public/locales/fr-FR/translation.json +++ b/public/locales/fr-FR/translation.json @@ -283,6 +283,7 @@ "SOURCE_DETAILS": "Détails de la source", "DIRECT": "Direct", "TRANSCODE": "Transcodage", + "DIRECT_STREAM": "", "USERNAME": "Nom d'utilisateur", "PASSWORD": "Mot de passe", "LOGIN": "Connexion", diff --git a/public/locales/it-IT/translation.json b/public/locales/it-IT/translation.json index f89c8d3..a1530c9 100644 --- a/public/locales/it-IT/translation.json +++ b/public/locales/it-IT/translation.json @@ -281,6 +281,7 @@ "SOURCE_DETAILS": "Dettagli sorgente", "DIRECT": "Diretto", "TRANSCODE": "Transcodifica", + "DIRECT_STREAM": "", "USERNAME": "Nome utente", "PASSWORD": "Password", "LOGIN": "Accedi", diff --git a/public/locales/zh-CN/translation.json b/public/locales/zh-CN/translation.json index a16763b..942c0cc 100644 --- a/public/locales/zh-CN/translation.json +++ b/public/locales/zh-CN/translation.json @@ -283,6 +283,7 @@ "SOURCE_DETAILS": "媒体源信息", "DIRECT": "直接播放", "TRANSCODE": "转码", + "DIRECT_STREAM": "", "USERNAME": "用户名", "PASSWORD": "密码", "LOGIN": "登录", diff --git a/src/pages/components/statCards/playback_method_stats.jsx b/src/pages/components/statCards/playback_method_stats.jsx index c285213..8f147c8 100644 --- a/src/pages/components/statCards/playback_method_stats.jsx +++ b/src/pages/components/statCards/playback_method_stats.jsx @@ -10,7 +10,8 @@ import BarChartGroupedLineIcon from "remixicon-react/BarChartGroupedLineIcon"; function PlaybackMethodStats(props) { const translations = { DirectPlay: , - Transocde: , + Transcode: , + DirectStream: , }; const chartIcon = ; @@ -79,7 +80,7 @@ function PlaybackMethodStats(props) { - stream.Name == "DirectPlay" ? { ...stream, Name: translations.DirectPlay } : { ...stream, Name: translations.Transocde } + stream.Name == "DirectPlay" ? { ...stream, Name: translations.DirectPlay } : stream.Name == "DirectStream" ? { ...stream, Name: translations.DirectStream } : { ...stream, Name: translations.Transcode } )} icon={chartIcon} heading={}