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,
|
id: episode.id,
|
||||||
title: episode.titles.title,
|
title: episode.titles.title,
|
||||||
subtitle: episode.titles.subtitle ?? null,
|
subtitle: episode.titles.subtitle ?? null,
|
||||||
link: episode._links.share?.href ?? "",
|
url: episode.url,
|
||||||
|
shareLink: episode._links.share?.href ?? "",
|
||||||
date: new Date(episode.date),
|
date: new Date(episode.date),
|
||||||
durationInSeconds: episode.durationInSeconds,
|
durationInSeconds: episode.durationInSeconds,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ function assembleEpisode(options: { series: Series; episode: Episode }) {
|
||||||
|
|
||||||
return tag("item", [
|
return tag("item", [
|
||||||
tag("title", episode.title),
|
tag("title", episode.title),
|
||||||
tag("link", episode.link),
|
tag("link", episode.shareLink),
|
||||||
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"]]),
|
||||||
|
|
@ -78,7 +78,7 @@ function assembleEpisode(options: { series: Series; episode: Episode }) {
|
||||||
["type", "application/json+chapters"],
|
["type", "application/json+chapters"],
|
||||||
]),
|
]),
|
||||||
tag("enclosure", "", [
|
tag("enclosure", "", [
|
||||||
["url", episode.link],
|
["url", episode.url],
|
||||||
["length", episode.durationInSeconds.toString()],
|
["length", episode.durationInSeconds.toString()],
|
||||||
["type", "audio/mpeg3"],
|
["type", "audio/mpeg3"],
|
||||||
]),
|
]),
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@ export type Episode = {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
subtitle: string | null;
|
subtitle: string | null;
|
||||||
link: string;
|
url: string;
|
||||||
|
shareLink: string;
|
||||||
date: Date;
|
date: Date;
|
||||||
durationInSeconds: number;
|
durationInSeconds: number;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue