mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 17:26:41 +08:00
feat: 新增音乐信息转简体开关
This commit is contained in:
@@ -2158,6 +2158,9 @@ export default {
|
|||||||
acoustIdApiKeyPlaceholder: 'Please enter AcoustID API Key',
|
acoustIdApiKeyPlaceholder: 'Please enter AcoustID API Key',
|
||||||
acoustIdApiKeyHint: 'Used to identify MusicBrainz recording IDs from audio fingerprints',
|
acoustIdApiKeyHint: 'Used to identify MusicBrainz recording IDs from audio fingerprints',
|
||||||
acoustIdApiKeyRequired: 'Please enter AcoustID API Key',
|
acoustIdApiKeyRequired: 'Please enter AcoustID API Key',
|
||||||
|
musicMetadataToSimplified: 'Convert Music Metadata to Simplified Chinese',
|
||||||
|
musicMetadataToSimplifiedHint:
|
||||||
|
'Force recognized music titles, artists, albums, categories, and other metadata to Simplified Chinese',
|
||||||
tmdbImageDomain: 'TMDB Image Service Address',
|
tmdbImageDomain: 'TMDB Image Service Address',
|
||||||
tmdbImageDomainPlaceholder: 'image.tmdb.org',
|
tmdbImageDomainPlaceholder: 'image.tmdb.org',
|
||||||
tmdbImageDomainHint: 'Customize TheMovieDb image service domain or proxy address',
|
tmdbImageDomainHint: 'Customize TheMovieDb image service domain or proxy address',
|
||||||
|
|||||||
@@ -2133,6 +2133,8 @@ export default {
|
|||||||
acoustIdApiKeyPlaceholder: '请输入 AcoustID API Key',
|
acoustIdApiKeyPlaceholder: '请输入 AcoustID API Key',
|
||||||
acoustIdApiKeyHint: '用于通过音频指纹识别 MusicBrainz 录音 ID',
|
acoustIdApiKeyHint: '用于通过音频指纹识别 MusicBrainz 录音 ID',
|
||||||
acoustIdApiKeyRequired: '请输入 AcoustID API Key',
|
acoustIdApiKeyRequired: '请输入 AcoustID API Key',
|
||||||
|
musicMetadataToSimplified: '音乐媒体信息转简体中文',
|
||||||
|
musicMetadataToSimplifiedHint: '将识别结果中的曲名、艺术家、专辑和分类等音乐信息强制转换为简体中文',
|
||||||
tmdbImageDomain: 'TMDB 图片服务地址',
|
tmdbImageDomain: 'TMDB 图片服务地址',
|
||||||
tmdbImageDomainPlaceholder: 'image.tmdb.org',
|
tmdbImageDomainPlaceholder: 'image.tmdb.org',
|
||||||
tmdbImageDomainHint: '自定义 TheMovieDb 图片服务域名或代理地址',
|
tmdbImageDomainHint: '自定义 TheMovieDb 图片服务域名或代理地址',
|
||||||
|
|||||||
@@ -2132,6 +2132,8 @@ export default {
|
|||||||
acoustIdApiKeyPlaceholder: '請輸入 AcoustID API Key',
|
acoustIdApiKeyPlaceholder: '請輸入 AcoustID API Key',
|
||||||
acoustIdApiKeyHint: '用於通過音訊指紋識別 MusicBrainz 錄音 ID',
|
acoustIdApiKeyHint: '用於通過音訊指紋識別 MusicBrainz 錄音 ID',
|
||||||
acoustIdApiKeyRequired: '請輸入 AcoustID API Key',
|
acoustIdApiKeyRequired: '請輸入 AcoustID API Key',
|
||||||
|
musicMetadataToSimplified: '音樂媒體資訊轉簡體中文',
|
||||||
|
musicMetadataToSimplifiedHint: '將識別結果中的曲名、藝術家、專輯和分類等音樂資訊強制轉換為簡體中文',
|
||||||
tmdbImageDomain: 'TMDB 圖片服務地址',
|
tmdbImageDomain: 'TMDB 圖片服務地址',
|
||||||
tmdbImageDomainPlaceholder: 'image.tmdb.org',
|
tmdbImageDomainPlaceholder: 'image.tmdb.org',
|
||||||
tmdbImageDomainHint: '自定義 TheMovieDb 圖片服務域名或代理地址',
|
tmdbImageDomainHint: '自定義 TheMovieDb 圖片服務域名或代理地址',
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ const SystemSettings = ref<any>({
|
|||||||
TMDB_API_DOMAIN: null,
|
TMDB_API_DOMAIN: null,
|
||||||
TMDB_API_KEY: null,
|
TMDB_API_KEY: null,
|
||||||
ACOUSTID_API_KEY: null,
|
ACOUSTID_API_KEY: null,
|
||||||
|
MUSIC_METADATA_TO_SIMPLIFIED: true,
|
||||||
TMDB_IMAGE_DOMAIN: null,
|
TMDB_IMAGE_DOMAIN: null,
|
||||||
MUSIC_COVER_PROXY: null,
|
MUSIC_COVER_PROXY: null,
|
||||||
TMDB_LOCALE: null,
|
TMDB_LOCALE: null,
|
||||||
@@ -2126,6 +2127,14 @@ watch(currentLlmSnapshotKey, (snapshotKey, previousSnapshotKey) => {
|
|||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
<VRow>
|
<VRow>
|
||||||
|
<VCol cols="12" md="6">
|
||||||
|
<VSwitch
|
||||||
|
v-model="SystemSettings.Advanced.MUSIC_METADATA_TO_SIMPLIFIED"
|
||||||
|
:label="t('setting.system.musicMetadataToSimplified')"
|
||||||
|
:hint="t('setting.system.musicMetadataToSimplifiedHint')"
|
||||||
|
persistent-hint
|
||||||
|
/>
|
||||||
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
<VSwitch
|
<VSwitch
|
||||||
v-model="SystemSettings.Advanced.RECOGNIZE_PLUGIN_FIRST"
|
v-model="SystemSettings.Advanced.RECOGNIZE_PLUGIN_FIRST"
|
||||||
|
|||||||
@@ -899,6 +899,7 @@ describe('AccountSettingSystem', () => {
|
|||||||
const user = userEvent.setup()
|
const user = userEvent.setup()
|
||||||
await renderSettings()
|
await renderSettings()
|
||||||
const dialog = await openAdvancedTab('媒体')
|
const dialog = await openAdvancedTab('媒体')
|
||||||
|
expect(dialog.getByLabelText('音乐媒体信息转简体中文')).toBeChecked()
|
||||||
await fireEvent.update(dialog.getByLabelText('TMDB API服务地址'), 'api.tmdb.org')
|
await fireEvent.update(dialog.getByLabelText('TMDB API服务地址'), 'api.tmdb.org')
|
||||||
await fireEvent.update(dialog.getByLabelText('TMDB API Key'), 'tmdb-key')
|
await fireEvent.update(dialog.getByLabelText('TMDB API Key'), 'tmdb-key')
|
||||||
await fireEvent.update(dialog.getByLabelText('AcoustID API Key'), 'acoustid-key')
|
await fireEvent.update(dialog.getByLabelText('AcoustID API Key'), 'acoustid-key')
|
||||||
@@ -909,6 +910,7 @@ describe('AccountSettingSystem', () => {
|
|||||||
for (const label of [
|
for (const label of [
|
||||||
'跟随TMDB识别整理',
|
'跟随TMDB识别整理',
|
||||||
'TMDB 刮削原语种图片',
|
'TMDB 刮削原语种图片',
|
||||||
|
'音乐媒体信息转简体中文',
|
||||||
'优先使用插件识别',
|
'优先使用插件识别',
|
||||||
'共享使用媒体识别数据',
|
'共享使用媒体识别数据',
|
||||||
'Fanart图片数据源',
|
'Fanart图片数据源',
|
||||||
@@ -928,6 +930,7 @@ describe('AccountSettingSystem', () => {
|
|||||||
MEDIA_RECOGNIZE_SHARE: false,
|
MEDIA_RECOGNIZE_SHARE: false,
|
||||||
META_CACHE_EXPIRE: '48',
|
META_CACHE_EXPIRE: '48',
|
||||||
MUSIC_COVER_PROXY: 'https://music.example',
|
MUSIC_COVER_PROXY: 'https://music.example',
|
||||||
|
MUSIC_METADATA_TO_SIMPLIFIED: false,
|
||||||
RECOGNIZE_PLUGIN_FIRST: true,
|
RECOGNIZE_PLUGIN_FIRST: true,
|
||||||
SCRAP_FOLLOW_TMDB: false,
|
SCRAP_FOLLOW_TMDB: false,
|
||||||
TMDB_API_DOMAIN: 'api.tmdb.org',
|
TMDB_API_DOMAIN: 'api.tmdb.org',
|
||||||
|
|||||||
Reference in New Issue
Block a user