added error if no decryption keys found
This commit is contained in:
parent
bd8b07f532
commit
35e8f9254b
@ -114,7 +114,7 @@ const locales = ref<Array<{ locale: string; name: string }>>([
|
|||||||
{ locale: 'vi-VN', name: 'VI' },
|
{ locale: 'vi-VN', name: 'VI' },
|
||||||
{ locale: 'id-ID', name: 'ID' },
|
{ locale: 'id-ID', name: 'ID' },
|
||||||
{ locale: 'ko-KR', name: 'KO' },
|
{ locale: 'ko-KR', name: 'KO' },
|
||||||
{ locale: 'zh-CN', name: 'CN' },
|
{ locale: 'zh-CN', name: 'CN' }
|
||||||
])
|
])
|
||||||
|
|
||||||
const selectedVideoQuality = ref<number>()
|
const selectedVideoQuality = ref<number>()
|
||||||
|
@ -388,7 +388,7 @@ const locales = ref<Array<{ locale: string; name: string }>>([
|
|||||||
{ locale: 'vi-VN', name: 'VI' },
|
{ locale: 'vi-VN', name: 'VI' },
|
||||||
{ locale: 'id-ID', name: 'ID' },
|
{ locale: 'id-ID', name: 'ID' },
|
||||||
{ locale: 'ko-KR', name: 'KO' },
|
{ locale: 'ko-KR', name: 'KO' },
|
||||||
{ locale: 'zh-CN', name: 'CN' },
|
{ locale: 'zh-CN', name: 'CN' }
|
||||||
])
|
])
|
||||||
|
|
||||||
const isProduction = process.env.NODE_ENV !== 'development'
|
const isProduction = process.env.NODE_ENV !== 'development'
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
import { app } from 'electron'
|
import { app } from 'electron'
|
||||||
import settings from 'electron-settings'
|
import settings from 'electron-settings'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
import { messageBox } from '../../electron/background'
|
||||||
|
import { server } from '../api'
|
||||||
|
|
||||||
export async function getWVKPath() {
|
export async function getWVKPath() {
|
||||||
const drmL3blob = (await settings.get('l3blob')) as string
|
const drmL3blob = (await settings.get('l3blob')) as string
|
||||||
const drmL3key = (await settings.get('l3key')) as string
|
const drmL3key = (await settings.get('l3key')) as string
|
||||||
|
|
||||||
if (!drmL3blob || !drmL3key) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user