Upgrade Fresh and add a bunch of small QOL improvements #16

Merged
timharek merged 21 commits from chore-upgrade-fresh into main 2024-03-24 12:41:18 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit 8586a208f9 - Show all commits

View File

@ -15,6 +15,15 @@ export const handler = async (_req: Request, ctx: FreshContext): Promise<Respons
console.log("going to get ep for ", episodeId);
const episode = await nrkRadio.getEpisode(seriesId, episodeId);
if (!episode) {
return new Response(JSON.stringify({ message: `Episode ${episodeId} is missing` }), {
headers: {
"Content-Type": "application/json",
},
status: 500,
});
}
const chapters = toChapters(episode);
const body = {
version: "1.2.0",