fix(comet): default to empty string for api key when credentails aren't provided

This commit is contained in:
Viren070
2025-02-25 16:32:39 +00:00
parent 98a7d7e253
commit 4d25fec60f
+4 -2
View File
@@ -59,8 +59,10 @@ const getCometConfig = (
debridService: debridService || 'torrent',
debridApiKey: debridService
? ['offcloud', 'pikpak'].includes(debridService)
? `${credentials?.email}:${credentials?.password}`
: `${credentials?.apiKey}`
? credentials?.email && credentials?.password
? `${credentials?.email}:${credentials?.password}`
: ''
: credentials?.apiKey || ''
: '',
debridStreamProxyPassword: '',
languages: { required: [], exclude: [], preferred: [] },