Logging Episodestatus on error

This commit is contained in:
olaven 2023-03-11 13:10:34 +01:00
parent 0b3d33878c
commit b09eb877d6
1 changed files with 1 additions and 4 deletions

View File

@ -32,7 +32,7 @@ async function withDownloadLink(episode: OriginalEpisode): Promise<Episode> {
if (playbackStatus === OK && playbackResponse) { if (playbackStatus === OK && playbackResponse) {
return { ...episode, url: playbackResponse.playable.assets[0].url }; return { ...episode, url: playbackResponse.playable.assets[0].url };
} else { } else {
throw `Error getting downloadLink for ${episode.episodeId}, serie: ${episode.originalTitle}` throw `Error getting downloadLink for ${episode.episodeId}, serie: ${episode.originalTitle}. Status: ${playbackStatus}`
} }
} }
@ -69,6 +69,3 @@ export const nrkRadio = {
} }
} }