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