fix: Use correct type
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
8586a208f9
commit
d45dde0d53
|
|
@ -1,13 +1,13 @@
|
||||||
import { Episode, nrkRadio } from "../../../lib/nrk.ts";
|
import { nrkRadio, OriginalEpisode } from "../../../lib/nrk.ts";
|
||||||
import { FreshContext } from "$fresh/server.ts";
|
import { FreshContext } from "$fresh/server.ts";
|
||||||
import { declaration, serialize, tag } from "https://raw.githubusercontent.com/olaven/serialize-xml/v0.4.0/mod.ts";
|
import { declaration, serialize, tag } from "https://raw.githubusercontent.com/olaven/serialize-xml/v0.4.0/mod.ts";
|
||||||
import { getHostName } from "../../../utils.ts";
|
import { getHostName } from "../../../utils.ts";
|
||||||
|
|
||||||
function toItemTag(seriesId: string, episode: Episode) {
|
function toItemTag(seriesId: string, episode: OriginalEpisode) {
|
||||||
const description = episode.titles.subtitle || "";
|
const description = episode.titles.subtitle || "";
|
||||||
return tag("item", [
|
return tag("item", [
|
||||||
tag("title", episode.titles.title),
|
tag("title", episode.titles.title),
|
||||||
tag("link", episode._links.share.href),
|
tag("link", episode._links.share?.href),
|
||||||
tag("description", description),
|
tag("description", description),
|
||||||
tag("itunes:summary", description),
|
tag("itunes:summary", description),
|
||||||
tag("guid", episode.id, [["isPermaLink", "false"]]),
|
tag("guid", episode.id, [["isPermaLink", "false"]]),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue