mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Chore(config): improve option description (#487)
This commit is contained in:
@@ -169,10 +169,11 @@ public class PluginConfiguration : BasePluginConfiguration
|
||||
public string DeepLApiKey { get; set; } = string.Empty;
|
||||
|
||||
#if __EMBY__
|
||||
[DisplayName("DeepL alt url (optional)")]
|
||||
[DisplayName("DeepL api url")]
|
||||
[Description("Custom DeepL-compatible api url. (optional)")]
|
||||
[VisibleCondition(nameof(TranslationEngine), ValueCondition.IsEqual, TranslationEngine.DeepL)]
|
||||
#endif
|
||||
public string DeepLAltUrl { get; set; } = string.Empty;
|
||||
public string DeepLApiUrl { get; set; } = string.Empty;
|
||||
|
||||
#if __EMBY__
|
||||
[DisplayName("OpenAI api key")]
|
||||
|
||||
@@ -205,9 +205,9 @@
|
||||
<div class="fieldDescription"></div>
|
||||
</div>
|
||||
<div class="inputContainer">
|
||||
<label class="inputLabel inputLabelUnfocused" for="txtDeepLAltUrl">DeepL alt url (optional):</label>
|
||||
<input id="txtDeepLAltUrl" is="emby-input" name="txtDeepLAltUrl" type="text"/>
|
||||
<div class="fieldDescription"></div>
|
||||
<label class="inputLabel inputLabelUnfocused" for="txtDeepLApiUrl">DeepL api url:</label>
|
||||
<input id="txtDeepLApiUrl" is="emby-input" name="txtDeepLApiUrl" type="text"/>
|
||||
<div class="fieldDescription">Custom DeepL-compatible api url. (optional)</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -358,7 +358,7 @@
|
||||
$('#txtBaiduAppKey', page).val(config.BaiduAppKey).change();
|
||||
$('#txtGoogleApiKey', page).val(config.GoogleApiKey).change();
|
||||
$('#txtDeepLApiKey', page).val(config.DeepLApiKey).change();
|
||||
$('#txtDeepLAltUrl', page).val(config.DeepLAltUrl).change();
|
||||
$('#txtDeepLApiUrl', page).val(config.DeepLApiUrl).change();
|
||||
$('#txtOpenAiApiKey', page).val(config.OpenAiApiKey).change();
|
||||
$('#txtOpenAiApiUrl', page).val(config.OpenAiApiUrl).change();
|
||||
$('#txtOpenAiModel', page).val(config.OpenAiModel).change();
|
||||
@@ -398,7 +398,7 @@
|
||||
config.BaiduAppKey = $('#txtBaiduAppKey', form).val();
|
||||
config.GoogleApiKey = $('#txtGoogleApiKey', form).val();
|
||||
config.DeepLApiKey = $('#txtDeepLApiKey', form).val();
|
||||
config.DeepLXAltUrl = $('#txtDeepLAltUrl', form).val();
|
||||
config.DeepLXAltUrl = $('#txtDeepLApiUrl', form).val();
|
||||
config.OpenAiApiKey = $('#txtOpenAiApiKey', form).val();
|
||||
config.OpenAiApiUrl = $('#txtOpenAiApiUrl', form).val();
|
||||
config.OpenAiModel = $('#txtOpenAiModel', form).val();
|
||||
|
||||
@@ -44,7 +44,7 @@ public static class TranslationHelper
|
||||
nv.Add(new NameValueCollection
|
||||
{
|
||||
{ "deepl-api-key", Configuration.DeepLApiKey },
|
||||
{ "deepl-alt-url", Configuration.DeepLAltUrl }
|
||||
{ "deepl-api-url", Configuration.DeepLApiUrl }
|
||||
});
|
||||
break;
|
||||
case TranslationEngine.OpenAi:
|
||||
|
||||
Reference in New Issue
Block a user