Skip to content

Instantly share code, notes, and snippets.

@mthli
Last active June 27, 2019 13:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mthli/3033a52bd48a6171891e1801a17bb8b4 to your computer and use it in GitHub Desktop.
Save mthli/3033a52bd48a6171891e1801a17bb8b4 to your computer and use it in GitHub Desktop.
PRIATE FM podcast JSON structure defined by Typescript.
{
feed_url: string,
title: string,
description: string | null,
author: string,
cover_url: string,
website_url: string | null,
owner: { // owner maybe null
name: string,
email: string,
},
pub_time: number, // timestamp, ms
episodes: [ // episodes maybe null or empty
{
guid: string,
feed_url: string, // belong to which podcast
title: string,
description: string | null,
author: string,
cover_url: string,
website_url: string | null,
enclosure: {
mime: string,
url: string,
},
duration: number, // ms
pubTime: number, // timestamp, ms
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment