@@ -288,32 +288,32 @@
Substitution
$('.selectTranslationEngineBaidu').css('display', 'inherit');
$('.selectTranslationEngineGoogle').css('display', 'none');
$('.selectTranslationEngineDeepL').css('display', 'none');
- $('.selectTranslationEngineOpenAI').css('display', 'none');
+ $('.selectTranslationEngineOpenAi').css('display', 'none');
} else if (this.value === "Google") {
$('.selectTranslationEngineBaidu').css('display', 'none');
$('.selectTranslationEngineGoogle').css('display', 'inherit');
$('.selectTranslationEngineDeepL').css('display', 'none');
- $('.selectTranslationEngineOpenAI').css('display', 'none');
+ $('.selectTranslationEngineOpenAi').css('display', 'none');
} else if (this.value === "GoogleFree") {
$('.selectTranslationEngineBaidu').css('display', 'none');
$('.selectTranslationEngineGoogle').css('display', 'none');
$('.selectTranslationEngineDeepL').css('display', 'none');
- $('.selectTranslationEngineOpenAI').css('display', 'none');
+ $('.selectTranslationEngineOpenAi').css('display', 'none');
} else if (this.value === "DeepL") {
$('.selectTranslationEngineBaidu').css('display', 'none');
$('.selectTranslationEngineGoogle').css('display', 'none');
$('.selectTranslationEngineDeepL').css('display', 'inherit');
- $('.selectTranslationEngineOpenAI').css('display', 'none');
- } else if (this.value === "OpenAI") {
+ $('.selectTranslationEngineOpenAi').css('display', 'none');
+ } else if (this.value === "OpenAi") {
$('.selectTranslationEngineBaidu').css('display', 'none');
$('.selectTranslationEngineGoogle').css('display', 'none');
$('.selectTranslationEngineDeepL').css('display', 'none');
- $('.selectTranslationEngineOpenAI').css('display', 'inherit');
+ $('.selectTranslationEngineOpenAi').css('display', 'inherit');
} else {
$('.selectTranslationEngineBaidu').css('display', 'none');
$('.selectTranslationEngineGoogle').css('display', 'none');
$('.selectTranslationEngineDeepL').css('display', 'none');
- $('.selectTranslationEngineOpenAI').css('display', 'none');
+ $('.selectTranslationEngineOpenAi').css('display', 'none');
}
});
diff --git a/Jellyfin.Plugin.MetaTube/Translation/TranslationEngine.cs b/Jellyfin.Plugin.MetaTube/Translation/TranslationEngine.cs
index a750c18..df6b1f0 100644
--- a/Jellyfin.Plugin.MetaTube/Translation/TranslationEngine.cs
+++ b/Jellyfin.Plugin.MetaTube/Translation/TranslationEngine.cs
@@ -6,5 +6,5 @@ public enum TranslationEngine
Google,
GoogleFree,
DeepL,
- OpenAI
+ OpenAi
}
\ No newline at end of file
diff --git a/Jellyfin.Plugin.MetaTube/Translation/TranslationHelper.cs b/Jellyfin.Plugin.MetaTube/Translation/TranslationHelper.cs
index 1ebc69d..feac276 100644
--- a/Jellyfin.Plugin.MetaTube/Translation/TranslationHelper.cs
+++ b/Jellyfin.Plugin.MetaTube/Translation/TranslationHelper.cs
@@ -46,7 +46,7 @@ private static async Task TranslateAsync(string q, string from, string t
{ "deepl-api-key", Configuration.DeepLApiKey }
});
break;
- case TranslationEngine.OpenAI:
+ case TranslationEngine.OpenAi:
millisecondsDelay = 1000;
nv.Add(new NameValueCollection
{