podcast-namespace/README.md

359 wiersze
16 KiB
Markdown
Czysty Zwykły widok Historia

# The "podcast" Namespace
2020-10-09 16:24:50 +00:00
2020-10-15 15:56:01 +00:00
A wholistic rss namespace for podcasting that is meant to synthesize the fragmented world of podcast namespaces. The broad goal is to create a single, compact, efficient
namespace that is easily extensible, community controlled/authored and addresses the needs of the independent podcast industry now and in the future.
Our hope is that this namespace
will become the framework that the independent podcast community needs to deliver new functionality to apps and aggregators.
2020-10-09 16:24:50 +00:00
2020-10-14 17:36:59 +00:00
<br><br>
2020-10-22 15:51:23 +00:00
## Current Roadmap
2020-12-18 04:05:35 +00:00
**Phase 1** - [Closed] Comment period closed on `11/15/20` and 5 tags were adopted.
2020-10-22 15:51:23 +00:00
2020-12-18 04:06:44 +00:00
**Phase 2** - [Open] Comment period closes on `1/31/21` and tags that have good consensus will be adopted. Any tags with questions, concerns or no discernable use case will be either removed or booted to Phase 3.
2020-10-22 15:51:23 +00:00
2020-12-18 04:06:19 +00:00
**Phase 3** - [Open] Proposals welcome.
2020-10-22 15:51:23 +00:00
<br><br>
2020-12-21 20:05:49 +00:00
## Legend
**Formalized** - This tag is frozen. Any future changes to it's definition must maintain backwards compatibility.
**Finalized** - The tag is structurally stable and implementation/testing should be considered safe. Any breaking changes discovered before formalization will be widely communicated.
**Open** - The tag/phase is open for discussion and collaboration.
<br><br>
2020-10-22 15:51:23 +00:00
## Tag Adoption Process
To be adopted as an official part of the namespace, there must be consensus around a tag's usefulness and either commitment to adoption by at least 1 host and 1 app, or a recognition
that the tag is already being used in the wild.
It is ALWAYS ok to delay a tag to a future Phase if there is any concern about it. That is to be expected and encouraged.
When a Phase comes to a close, there will be a full review of any tags currently open for comment and questions will be asked to gather consensus before final adoption. No tags
will be adopted by fiat, or if there are unresolved questions. They will just be moved to the next Phase for further comment and refinement.
Tags that are proposals or rough ideas should be expected to have syntax problems or typos. Those should be refined away as they are worked on. If they are not, that is a good idea
that the tag in question isn't being seen as useful and should be considered for dropping.
2020-10-22 16:00:35 +00:00
We are not a "standards body". It is a community driven project where all stake holders are encouraged to participate, so that many voices are heard. This is an open-source
project to be built fully in the open. Discussions also take place on [podcastindex.social](https://podcastindex.social) where anyone is free to register and participate.
2020-10-22 15:51:23 +00:00
<br><br>
2020-10-09 16:24:50 +00:00
## Goal #1 - Eliminate Redundancy
There is significant overlap amongst the many existing podcast namespaces. Each platform and publisher has created their own namespace to give their respective
system and audience the metadata they need in the way they want it delivered.
2020-10-16 19:53:23 +00:00
## Goal #2 - Keep "required" tags and attributes minimal
2020-10-09 16:24:50 +00:00
2020-10-14 15:51:21 +00:00
The only required tags should be those that solve an overwhelming need in the industry. Requiring tags is a roadblock to adoption and should be avoided. Attributes
should also only be required when they are key to the functionality of the tag.
2020-10-09 16:24:50 +00:00
2020-10-16 19:53:23 +00:00
## Goal #3 - Keep Exisiting Conventions
2020-10-09 16:24:50 +00:00
2020-10-09 19:08:55 +00:00
Reinventing the wheel helps nobody. When at all possible, existing conventions should be maintained. For example, it would make sense to turn **\<podcast:explicit>** into
2020-10-09 16:24:50 +00:00
a unary element, where it's existence is taken as a "yes" and it's absence as a "no". But, that has never been the standard. And, given as how this namespace will probably
sit alongside at least one other namespace, it makes sense to keep existing conventions in place.
2020-10-16 19:53:23 +00:00
## Goal #4 - Be General... to a point
2020-10-09 16:24:50 +00:00
There is no way to address every possible metadata point that each platform would want. That is not the aim. Instead we focus on defining the elements that would be useful
to the broadest set of apps, publishers, platforms and aggregators. Individual parties can keep their respective supplemental namespaces small and targeted as an adjunct to
2020-10-12 22:25:27 +00:00
this larger namespace. But, we don't want to be so general that the spec becomes overly complicated. A beautiful, "perfect" spec is not important. Solving real problems is.
2020-10-09 16:24:50 +00:00
2020-10-14 15:57:14 +00:00
## The Guiding Principles
2020-10-16 19:53:23 +00:00
Our guiding principles for development of this namespace are the "[Rules for Standards Makers](http://scripting.com/2017/05/09/rulesForStandardsmakers.html)" by Dave Winer.
Please read it before contributing if you aren't familiar with it.
2020-10-14 15:51:21 +00:00
2020-10-19 03:10:20 +00:00
2020-10-19 03:13:23 +00:00
## Official XMLNS Definition
2020-10-19 02:00:45 +00:00
2020-10-19 03:13:23 +00:00
To see the formalized tags, the official definition file is [here](docs/1.0.md).
2020-10-19 02:00:45 +00:00
2020-10-19 03:10:20 +00:00
2020-10-19 03:13:23 +00:00
## Supporting Platforms and Apps
2020-10-19 02:00:45 +00:00
2020-10-19 02:02:26 +00:00
To see a list of platforms and apps that currently implement some or all of these tags, see the list [here](docs/element-support.md).
2020-10-19 02:00:45 +00:00
2020-10-19 03:10:20 +00:00
2020-10-19 03:13:23 +00:00
## Example Feed
2020-10-19 03:10:20 +00:00
There is an example feed [example.xml](example.xml) in this repository showing the podcastindex namespace side by side with the Apple itunes namespace. There is also
a "sandbox" feed where we experiment with tags while they are being hashed out.
The url for that feed is: [https://noagendaassets.com/enc/pc20sandbox.xml](https://noagendaassets.com/enc/pc20sandbox.xml).
<br><br>
2020-10-14 15:51:21 +00:00
2020-10-11 01:34:17 +00:00
## Element List
2020-11-15 22:50:27 +00:00
### <u>Phase 1 (Closed on 11/15/20)</u>
2020-10-14 17:36:12 +00:00
<br>
2020-10-12 06:36:43 +00:00
2020-11-15 22:58:33 +00:00
The following tags have been formally adopted into the namespace. They are fully documented in the XMLNS document located [here](docs/1.0.md). Please see that file for
full implementation details.
- **\<podcast:locked>** <br>
- **\<podcast:transcript>** <br>
- **\<podcast:funding>** <br>
- **\<podcast:chapters>** <br>
- **\<podcast:soundbite>** <br>
2020-10-12 06:05:59 +00:00
2020-10-14 17:30:13 +00:00
<br><br>
2020-10-09 16:24:50 +00:00
2020-11-15 22:50:27 +00:00
### <u>Phase 2 (Open)</u>
2020-10-12 05:49:54 +00:00
2020-12-21 19:33:31 +00:00
- **\<podcast:person name="[name of person]" (role="[host,guest,etc.]") (group="[cast,writing,etc.]") (img="[uri of content]") (href="[uri to Podchaser/website/wiki/blog]") />** (finalized)
2020-11-15 22:45:03 +00:00
Channel or Item (optional | multiple)
2020-11-25 23:29:11 +00:00
This element specifies a person of interest to the podcast. It is primarily intended to identify people like hosts, co-hosts and guests. Although, it is flexible enough to allow fuller credits to be given using the roles
2020-12-20 01:12:10 +00:00
and groups that are listed in the Podcast Taxonomy Project.
2020-11-15 22:45:03 +00:00
- `name` (required) This is the full name or alias of the person.
2020-12-20 01:13:24 +00:00
- `role` (optional) Used to identify what role the person serves on the show or episode. This should be a reference to an official role within the Podcast Taxonomy Project list (see below). If `role` is missing then "host" is assumed.
2020-11-25 23:29:11 +00:00
- `group` (optional) This should be a camel-cased, alphanumeric reference to an official group within the Podcast Taxonomy Project list. If `group` is not present, then "cast" is assumed.
2020-11-15 22:45:03 +00:00
- `img` (optional) This is the url of a picture or avatar of the person.
2020-11-25 23:29:11 +00:00
- `href` (optional) Link to a relevant resource of information about the person. (eg. Podchaser profile, website, blog or wiki entry). Linking to the Podchaser profile url is highly encouraged as the standard for this url. In a case
where there is no Podchaser profile, then a link to the person's website, blog, wiki entry, etc. can be used.
2020-11-15 22:45:03 +00:00
The maximum recommended string length of the node value is 128 characters.
2020-12-20 01:08:47 +00:00
The `role` and `group` tags are case-insensitive. So, "Host" is the same as "host".
2020-12-20 01:07:00 +00:00
2020-12-20 01:13:24 +00:00
The full taxonomy list is [here](taxonomy.json) as a json file.
2020-11-15 22:45:03 +00:00
<br>
2020-12-21 19:33:31 +00:00
2020-12-21 20:05:49 +00:00
- **\<podcast:season (name="[name of season]")>**[(int)]**\</podcast:season>** (finalized)
2020-11-01 04:19:46 +00:00
2020-12-21 20:05:49 +00:00
Item
2020-11-01 04:19:46 +00:00
2020-12-21 20:05:49 +00:00
(optional | single)
2020-11-01 04:19:46 +00:00
2020-12-21 20:05:49 +00:00
This element allows for identifying which episodes in a podcast are part of a "season", and allowing that season to have a name associate with it, such as `name="Race for the White House 2020"`. The element's value is an integer
identifying the season number.
2020-12-21 19:33:31 +00:00
2020-12-21 20:05:49 +00:00
All attributes are optional.
2020-11-25 23:46:22 +00:00
2020-12-21 20:05:49 +00:00
<br>
2020-11-25 23:46:22 +00:00
2020-12-21 20:05:49 +00:00
- **\<podcast:location <strike>country="[Country Code]" (locality="[Locality]") (latlon="[latitude,longitude]") (osmid="[OSM type][OSM id]")</strike> />**
2020-11-25 23:46:22 +00:00
2020-12-21 20:05:49 +00:00
_Because of its complexity, the location tag is [currently being discussed over here](https://github.com/Podcastindex-org/podcast-namespace/issues/138). The top message contains the current proposal._
2020-11-25 23:46:22 +00:00
<br>
2020-12-21 19:33:31 +00:00
2020-12-18 04:05:35 +00:00
- **\<podcast:id platform="[service slug]" id="[platform id]" url="[link to the podcast page on the service]" />**
Channel
(optional | multiple)
See "[IDs](#user-content-ids)" in this document for an explanation.
- `platform` (required) This is the service slug of the platform.
- `id` (required) This is the unique identifier for this podcast on the respective platform.
- `url` (optional) A url to the page for this podcast on the respective platform.
<br>
2020-12-21 20:05:49 +00:00
2020-10-12 06:14:58 +00:00
- **\<podcast:social platform="[service slug]" url="[link to social media account]">**[social media handle]**\</podcast:social>**
Channel or Item
(optional | multiple)
This element lists social media accounts for this podcast. The service slugs should be community written into the accompanying serviceslugs.txt file.
2020-10-19 03:10:20 +00:00
The maximum recommended string length of the node value is 128 characters.
2020-10-14 17:36:12 +00:00
<br>
2020-10-12 06:14:58 +00:00
2020-12-18 04:05:35 +00:00
### <u>Phase 3 (Open)</u>
- **\<podcast:category>**[category Name]**\</podcast:category>**
Channel
(optional | multiple)
See "Categories" in this document for an explanation. There can be up to a total of 9 categories defined.
2020-10-09 16:24:50 +00:00
There can be a maximum of 9 category elements defined in a feed. Any number greater than that should be discarded.
2020-10-09 16:24:50 +00:00
Category names are defined in the accompanying "categories.json" file in this repository. They should be referenced in the element by their textual name.
The characters can be in any case. This list of categories aims to replicate the current standard but also eliminate as much as possible compound, heirarchical
naming and the use of ampersands. Thus, "Health & Fitness" becomes "Health" and "Fitness" as two distinct categories. And, "Religion & Spirituality" becomes
two separate categories. Again, they are different things that don't always go together. Splitting them allows for more flexible combinations. And, avoiding
ampersands makes xml encoding errors less likely.
2020-10-09 16:24:50 +00:00
2020-10-14 17:36:12 +00:00
<br>
2020-10-09 16:24:50 +00:00
- **\<podcast:contentRating>**[rating letter]**\</podcast:contentRating>**
Channel or Item
(optional | single)
Specifies the generally accepted rating letter of G, PG, PG-13, R or X. Or, perhaps an age rating system like all, 14, 19, adult. Needs discussion.
2020-10-14 17:36:12 +00:00
<br>
- **\<podcast:previousUrl>**[url this feed was imported from]**\</podcast:previousUrl>**
Channel
(optional | multiple)
Lists the previous url of this feed before it was imported. Any time a feed is moved, an additional **\<podcast:previousUrl>** element
should be added to the channel, to create a paper trail of all the previous urls this feed has lived at. This way, aggregators can easily deduplicate their feed lists.
<br>
2020-11-01 04:30:57 +00:00
- **\<podcast:alternateEnclosure url="[url of media asset]" type="[mime type]" length="[(int)]" bitrate="[(float)]" title="[(string)]" rel="[(string)]" />**
Channel (optional | single)
Item (optional | multiple)
2020-10-22 21:38:45 +00:00
This element is meant to provide alternate versions of an enclosure, such as low or high bitrate, or alternate formats or alternate uri schemes, like IPFS or live streaming.
There may be multiple alternateEnclosure elements in an item, but there must be no more than one in a channel. The presence of this element at the channel level would be
useful for adding a video/audio trailer or intro media that introduces the listener to the podcast. For instance, in a podcast of an audiobook, this could be the book's
introduction or preface. The alternateEnclosure element always refers to an "alternate" media version. The standard RSS enclosure element is always the default media to be played.
An `<enclosure>` tag must be present along with this tag within the item.
- `url` (required) This is the url to the media asset.
- `type` (required) Mime type of the media asset.
- `length` (required) Length of the file in bytes.
- `bitrate` (optional) Encoding bitrate of media asset.
- `title` (required) Alternate assets need a title since main title will apply to primary asset.
2020-11-01 04:30:57 +00:00
- `rel` (optional) Indicates what the purpose of this enclosure is. Like "lowbitrate" for a small file to use over cellular.
<br>
- **\<podcast:indexers>** + **\<podcast:block>[domain, bot or service slug]\</podcast:block>**
Channel (optional | single)
The "indexers" element is meant as a container for one or more `<podcast:block>` elements which send a signal to podcast aggregators whether they are allowed to pull and parse
this feed. If the aggregator is listed as blocked, it should take that as a signal by the feed owner to not index/aggregate this feed.
*Note: this element needs a lot more discussion and work. This is just a placeholder for discussion.*
2020-10-09 16:24:50 +00:00
<br>
- **\<podcast:images srcset="[url to image] [pixelwidth(int)]w,
[url to image] [pixelwidth(int)]w,
[url to image] [pixelwidth(int)]w,
[url to image] [pixelwidth(int)]w" />**
Channel or Item
(optional | single)
This points to a group of images, separated by commas - each with a pixel width declared after them. It is highly recommended that the images referenced
be square (1:1 ratio), as this is the industry standard for podcast album art, and what podcast apps expect to work with. The srcset attribute is designed
to work like the ```srcset``` attribute in the HTML5 specification. Suggested widths are 1500px, 600px, 300px and 150px. See the example feed in this
repo for an example of how this looks in practice.
All attributes are required.
2020-10-23 14:33:47 +00:00
<br>
2020-11-01 04:19:46 +00:00
- **\<podcast:contact type="[feedback or advertising or abuse]">**[email address or url]**\</podcast:contact>**
2020-11-01 04:19:46 +00:00
Channel
(optional | multiple)
2020-11-01 04:19:46 +00:00
This element allows for listing different contact methods for the podcast owner. This could be for general feedback, advertising inquiries, abuse reports, etc. Only one element of each "type"
is allowed.
2020-11-01 04:19:46 +00:00
All attributes are required.
2020-10-23 14:33:47 +00:00
2020-11-08 03:59:49 +00:00
<br>
- **\<podcast:value type="[lightning]" method="[keysend]" suggested="[number of bitcoin(float)]">**[one or more "valueRecipient" elements]**\</podcast:value>**
2020-11-08 03:59:49 +00:00
Channel
(optional | single)
This element defines the payment "model". One or more `<podcast:valueRecipient>` tags must be contained within this element to instruct where to send the payments
within this defined model.
- `type` (required) What type of system will be receiving the payments. Currently only "lightning" is supported.
- `method` (required) The protocol to use to send the payments. Currently only "keysend" is supported.
- `suggested` (required) The amount to send per minute of episode play time, defined in bitcoin (float, 0.00000005000 is 5sat/min).
2020-11-08 03:59:49 +00:00
- **\<podcast:valueRecipient name="[name of recipient(string)]" type="[node]" address="[public key of bitcoin/lightning node(string)]" split="[percentage(int)]" />**
Channel
(required | multiple)
- `name` (optional) A friendly name to identify the receipient.
- `type` (required) The type of destination this is. Currently, only "node" is supported.
- `address` (required) The address of the digital wallet or node that will receive payments.
- `split` (required) Defines a percentage that this payment destination represents. Payments will be sent to each destination in the "value" block, dividing up by this percentage.
2020-10-14 17:36:12 +00:00
<br><br>
2020-10-09 16:24:50 +00:00
## Verification for Importing and Transferring
2020-10-09 16:24:50 +00:00
If the "locked" element is present and set to "yes", podcasting hosts should not allow importing of this feed until the email listed in the element's owner="" attribute is
contacted and subsequently changes the value of the element to "no".
2020-10-09 16:24:50 +00:00
2020-10-14 17:36:12 +00:00
<br><br>
2020-10-09 16:24:50 +00:00
## IDs
2020-10-09 16:24:50 +00:00
Their can be multiple **\<podcast:id>** elements to indicate a listing on multiple platforms, directories, hosts, apps and services. The "platform" attribute shall be a slug
representing the platform, directory, host, app or service. The slugs will look like this:
2020-10-09 16:24:50 +00:00
- blubrry
- captivate
- podcastindex
2020-10-09 16:24:50 +00:00
- fireside
- transistor
- libsyn
2020-10-12 16:26:24 +00:00
- buzzsprout
- apple
2020-10-09 16:24:50 +00:00
- google
- spotify
- anchor
- overcast
2020-10-09 16:24:50 +00:00
2020-10-19 03:10:20 +00:00
More should be added by the community as needed. This is just a starter list. The full list is [here](serviceslugs.txt).