Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Format RSS feed because Apple Podcasts requires it
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Oct 20, 2020
1 parent a8e27dc commit a538200
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"pg": "^8.3.0",
"podcast": "^1.3.0",
"rollup-plugin-consts": "^1.0.2",
"uuid": "^8.3.0"
"uuid": "^8.3.0",
"xml-formatter": "^2.3.1"
}
}
3 changes: 2 additions & 1 deletion src/shows/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
EpisodeLink,
InflatedShow
} from "./types";
const format = require("xml-formatter");
import Podcast from "podcast";
import { multiple, sql, single } from "../db";
import { v4 } from "uuid";
Expand Down Expand Up @@ -407,5 +408,5 @@ export const getRSSBySlug = async (slug: string): Promise<string> => {
)
);

return feed.buildXml();
return format(feed.buildXml());
};

0 comments on commit a538200

Please sign in to comment.