diff --git a/components/Settings/Main.vue b/components/Settings/Main.vue index d848b62..4c7f96b 100644 --- a/components/Settings/Main.vue +++ b/components/Settings/Main.vue @@ -114,7 +114,7 @@ const locales = ref>([ { locale: 'vi-VN', name: 'VI' }, { locale: 'id-ID', name: 'ID' }, { locale: 'ko-KR', name: 'KO' }, - { locale: 'zh-CN', name: 'CN' }, + { locale: 'zh-CN', name: 'CN' } ]) const selectedVideoQuality = ref() diff --git a/pages/addanime.vue b/pages/addanime.vue index 7c9f297..1f10db9 100644 --- a/pages/addanime.vue +++ b/pages/addanime.vue @@ -388,7 +388,7 @@ const locales = ref>([ { locale: 'vi-VN', name: 'VI' }, { locale: 'id-ID', name: 'ID' }, { locale: 'ko-KR', name: 'KO' }, - { locale: 'zh-CN', name: 'CN' }, + { locale: 'zh-CN', name: 'CN' } ]) const isProduction = process.env.NODE_ENV !== 'development' diff --git a/src/api/services/widevine.ts b/src/api/services/widevine.ts index 064c1d4..11c6419 100644 --- a/src/api/services/widevine.ts +++ b/src/api/services/widevine.ts @@ -1,12 +1,22 @@ import { app } from 'electron' import settings from 'electron-settings' import path from 'path' +import { messageBox } from '../../electron/background' +import { server } from '../api' export async function getWVKPath() { const drmL3blob = (await settings.get('l3blob')) as string const drmL3key = (await settings.get('l3key')) as string if (!drmL3blob || !drmL3key) { + messageBox('error', ['Cancel'], 2, 'No decryption keys found', 'No decryption keys found', "Video/Audio with DRM detected, tried to decrypt but didn't found any decryption keys. Please add them in settings -> widevine. Aborting Download") + server.logger.log({ + level: 'error', + message: 'No L3 Keys found', + error: 'No L3 Keys found', + timestamp: new Date().toISOString(), + section: 'CrunchyrollDecryptionProcess' + }) return }