Skip to content

A JSON list of podcast hosts and a pattern to use in audio URLs

License

Notifications You must be signed in to change notification settings

panoplymedia/podcast-hosts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

podcast-hosts

A JSON list of podcast hosts and a pattern to use in audio URLs

If you have the URL of a podcast's audio file, this JSON file will help you work out who the host is.

Contributing to the list

For now, the simplest way is to add to the file at src/hosts.json. Each podcast host may have multiple entries, but the URL patterns should be unique.

Each entry must contain the following properties:

  • pattern: a unique string to spot within the audio URL (more accurately, within the domain portion of the URL)

  • hostname: a humanly-readable name of the podcast that this is hosted with

  • retailer: a boolean showing whether podcasters can buy hosting on this podcast host (BBC isn't; Libsyn is).

  • iab: a boolean showing whether a podcast host is able to offer IAB Certified Compliant statistics. This does not mean that all statistics from this host are certified compliant.

  • hosturl: a website link (escaped) that links to the homepage of the podcast host.

Each entry can contain the following properties:

  • privacyhosturl: a link to the privacy policy of the podcast host

Code sample

Podnews uses the below to extract a host's name in the "Information for podcasters" section in our podcast pages (example), and our podcast analysis pages.

$stmt = $db->prepare("SELECT * FROM `podcasts-hosts` WHERE INSTR(:url,pattern) LIMIT 1"); $stmt->execute(array(':url'=>$podcast['audiourl'])); $host = $stmt->fetch(PDO::FETCH_ASSOC);

Improvements are welcome. This list won't adequately spot original hosts via Feedburner or similar, but otherwise will catch most podcasts.

About

A JSON list of podcast hosts and a pattern to use in audio URLs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published