Upgrade Fresh and add a bunch of small QOL improvements #16
|
|
@ -2,6 +2,7 @@ import { FreshContext } from "$fresh/server.ts";
|
||||||
import { parse, toSeconds } from "https://esm.sh/iso8601-duration@2.1.1";
|
import { parse, toSeconds } from "https://esm.sh/iso8601-duration@2.1.1";
|
||||||
import { nrkRadio, OriginalEpisode } from "../../../../../lib/nrk.ts";
|
import { nrkRadio, OriginalEpisode } from "../../../../../lib/nrk.ts";
|
||||||
|
|
||||||
|
// TODO: This type `OriginalEpisode` is missing stuff.
|
||||||
function toChapters(episode: OriginalEpisode) {
|
function toChapters(episode: OriginalEpisode) {
|
||||||
return episode.indexPoints.map((indexPoint) => ({
|
return episode.indexPoints.map((indexPoint) => ({
|
||||||
title: indexPoint.title,
|
title: indexPoint.title,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue