changed version and added missing error handeling
This commit is contained in:
parent
1662b7ed63
commit
116b923b32
@ -2,7 +2,7 @@
|
||||
"name": "crunchyroll-downloader",
|
||||
"author": "Stratum",
|
||||
"description": "Crunchyroll Downloader",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.4",
|
||||
"private": true,
|
||||
"main": ".output/src/electron/background.js",
|
||||
"repository": "https://github.com/stratuma/Crunchyroll-Downloader-v4.0",
|
||||
|
@ -459,6 +459,20 @@ export async function downloadCrunchyrollPlaylist(
|
||||
if (!playlist) {
|
||||
await updatePlaylistByID(downloadID, 'failed')
|
||||
console.log('Playlist not found')
|
||||
messageBox(
|
||||
'error',
|
||||
['Cancel'],
|
||||
2,
|
||||
'Playlist not found',
|
||||
'Playlist not found',
|
||||
'Playlist not found'
|
||||
)
|
||||
server.logger.log({
|
||||
level: 'error',
|
||||
message: `Playlist not found for Download ${downloadID}`,
|
||||
timestamp: new Date().toISOString(),
|
||||
section: 'crunchyrollDownloadProcess'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
@ -469,7 +483,7 @@ export async function downloadCrunchyrollPlaylist(
|
||||
await deleteVideoToken(episodeID, playlist.data.token)
|
||||
playlist = await crunchyGetPlaylist(found.guid, found.geo)
|
||||
} else {
|
||||
console.log('Exact Playlist not found, taking what crunchy gives.'),
|
||||
console.log('Exact Playlist not found, taking what crunchy gives.')
|
||||
messageBox(
|
||||
'error',
|
||||
['Cancel'],
|
||||
|
Reference in New Issue
Block a user