Fix wrong download link
This commit is contained in:
parent
bfadcae817
commit
ae50117ce1
|
|
@ -17,7 +17,8 @@ function series(nrkSeries: NrkSerieData): Series {
|
|||
id: episode.id,
|
||||
title: episode.titles.title,
|
||||
subtitle: episode.titles.subtitle ?? null,
|
||||
link: episode._links.share?.href ?? "",
|
||||
url: episode.url,
|
||||
shareLink: episode._links.share?.href ?? "",
|
||||
date: new Date(episode.date),
|
||||
durationInSeconds: episode.durationInSeconds,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ function assembleEpisode(options: { series: Series; episode: Episode }) {
|
|||
|
||||
return tag("item", [
|
||||
tag("title", episode.title),
|
||||
tag("link", episode.link),
|
||||
tag("link", episode.shareLink),
|
||||
tag("description", description),
|
||||
tag("itunes:summary", description),
|
||||
tag("guid", episode.id, [["isPermaLink", "false"]]),
|
||||
|
|
@ -78,7 +78,7 @@ function assembleEpisode(options: { series: Series; episode: Episode }) {
|
|||
["type", "application/json+chapters"],
|
||||
]),
|
||||
tag("enclosure", "", [
|
||||
["url", episode.link],
|
||||
["url", episode.url],
|
||||
["length", episode.durationInSeconds.toString()],
|
||||
["type", "audio/mpeg3"],
|
||||
]),
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ export type Episode = {
|
|||
id: string;
|
||||
title: string;
|
||||
subtitle: string | null;
|
||||
link: string;
|
||||
url: string;
|
||||
shareLink: string;
|
||||
date: Date;
|
||||
durationInSeconds: number;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue