Git Product home page Git Product logo

podcast-prefixes's Introduction

podcast-prefixes

A JSON list of podcast prefix companies

If you have the URL of a podcast's audio file, this JSON file will help you work out whether there is a podcast prefix company being used for analytics, and be able to link to their privacy policy

Contributing to the list

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

Each entry must contain the following properties:

  • prefixpattern: a unique string to spot within the audio URL. It may not always be first, when companies chain URLs.

  • prefixname: a humanly-readable name of the prefix company

  • iab: a boolean showing whether stats from this prefix company are certified IAB v2 compliant

  • abilities_stats: a boolean showing whether this prefix company uses its logs to provide stats

  • abilities_tracking: a boolean showing whether this prefix company uses its logs to provide tracking and attribution

  • abilities_dynamicaudio: a boolean showing whether this prefix company is capable of dynamic content insertion, used for advertising or content.

  • prefixurl: a website link (escaped) that links to the homepage of the podcast prefix company.

  • prefixprivacyurl: a website link (escaped) that links to the privacy policy of the podcast prefix company.

  • notes: freeform detail about how the 'tracking' and 'dynamicaudio' values were decided upon.

Code sample

Podnews uses this:

$stmt = $db->prepare("SELECT * FROM `podcasts-prefixes` WHERE INSTR(:url,prefixpattern)"); $stmt->execute(array(':url'=>$podcast['audiourl'])); $prefixes = $stmt->fetchAll(PDO::FETCH_ASSOC);

Of note: some podcasts are measured by multiple prefix providers.

Improvements are welcome.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.