4.9.1 • Published 12 months ago

podcast-partytime v4.9.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Partytime Podcast Parser

NPM version

Podcast feed parser, originally extracted from podcast index - https://github.com/Podcastindex-org/aggregator/tree/master/partytime. It is up to you, the consumer of this package, to fetch the feed which needs to be parsed. When fetching the feed YOU SHOULD INCLUDE A PROPER USER-AGENT.

This package will also identify new namespace elements and call out the "phases" implemented by the feed in a pc20support element.

By default, this will produce log messages that are warnings or errors, but this can be controlled via an environment variable, PARTYTIME_LOG can be set to whatever log level you may want.

Usage

npm install podcast-partytime

Typescript

import fetch from "node-fetch";
import pt from "podcast-partytime";

// Check CORS support
pt.checkFeedByUri("https://www.spreaker.com/show/3128218/episodes/feed").then(console.log);

fetch("http://mp3s.nashownotes.com/pc20rss.xml", {
  headers: {
    "user-agent": "partytime/example",
  },
})
  .then((resp) => resp.text())
  .then((xml) =>
    console.log(
      pt.checkFeedByObject({
        uri: "http://mp3s.nashownotes.com/pc20rss.xml",
        feedObject: pt.parseFeed(xml),
      })
    )
  );

// Parse Feed
fetch("http://mp3s.nashownotes.com/pc20rss.xml", {
  headers: {
    "user-agent": "partytime/example",
  },
})
  .then((resp) => resp.text())
  .then((xml) => console.log(pt.parseFeed(xml)));

Javascript

const fetch = require("node-fetch");
const pt = require("podcast-partytime");

// Check CORS support
pt.checkFeedByUri("https://www.spreaker.com/show/3128218/episodes/feed").then(console.log);

fetch("http://mp3s.nashownotes.com/pc20rss.xml")
  .then((resp) => resp.text())
  .then((xml) =>
    console.log(
      pt.checkFeedByObject({
        uri: "http://mp3s.nashownotes.com/pc20rss.xml",
        feedObject: pt.parseFeed(xml),
      })
    )
  );

// Parse Feed
fetch("http://mp3s.nashownotes.com/pc20rss.xml")
  .then((resp) => resp.text())
  .then((xml) => console.log(pt.parseFeed(xml)));

Resources

Sample Feeds

The sample feeds below were chosen for their varied nature. Including things like non-traditional titles, different publishers, and season usage.

Development

Update dependencies (person enum and valid license list) via yarn deps or npm run deps.

4.9.0

1 year ago

4.9.1

12 months ago

4.8.1

1 year ago

4.8.3

1 year ago

4.8.2

1 year ago

4.8.0

2 years ago

4.8.1-beta.0

2 years ago

4.8.0-beta.0

2 years ago

4.8.0-beta.1

2 years ago

4.6.3

2 years ago

4.6.2

2 years ago

4.7.0

2 years ago

4.6.1

2 years ago

4.6.0

2 years ago

4.6.0-beta.3

2 years ago

4.6.0-beta.2

2 years ago

4.6.1-beta.0

2 years ago

4.6.0-beta.1

2 years ago

4.5.4

3 years ago

4.5.3

3 years ago

4.5.5

3 years ago

4.5.2

3 years ago

4.4.0

3 years ago

4.5.0

3 years ago

4.5.1

3 years ago

4.3.6

3 years ago

4.3.5

3 years ago

4.3.7

3 years ago

4.3.4

3 years ago

4.3.3

3 years ago

4.3.2

4 years ago

4.3.3-beta.1

4 years ago

4.3.3-beta.2

3 years ago

4.3.3-beta.3

3 years ago

4.3.1-beta.0

4 years ago

4.3.1-beta.3

4 years ago

4.3.1-beta.1

4 years ago

4.3.0

4 years ago

4.3.1-beta.2

4 years ago

4.2.0

4 years ago

4.1.0-pending.4

4 years ago

4.0.2-preview.0

4 years ago

4.1.0-pending.0

4 years ago

4.1.0-pending.2

4 years ago

4.1.0-pending.1

4 years ago

4.1.0

4 years ago

4.0.1

4 years ago

4.1.0-pending.3

4 years ago

4.0.0-beta.5

4 years ago

4.0.0-beta.4

4 years ago

4.0.0-beta.3

4 years ago

4.0.0-beta.2

4 years ago

4.0.0-beta.1

4 years ago

4.0.0-beta.0

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

3.0.0-beta.0

4 years ago

1.2.0

5 years ago

1.2.1

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

0.1.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.3

5 years ago

0.0.1

5 years ago