Skip to content

iTunes Podcast Categories can't be defined #3

@cukabeka

Description

@cukabeka

Hi,

I could not find any way to create an output according to the iTunes spec from here:
https://help.apple.com/itc/podcasts_connect/#/itc9267a2f12
The correct format would be

Specify a category without a subcategory:
<itunes:category text="History" />

Specify a category with a subcategory:
<itunes:category text="Society & Culture">
<itunes:category text="Documentary" />
</itunes:category>

Specify multiple categories:
<itunes:category text="Society & Culture">
<itunes:category text="Documentary" />
</itunes:category>
<itunes:category text="Health & Fitness">
<itunes:category text="Mental Health" />
</itunes:category>

In my code I tried things like this, but don't get a proper output:

    $channel->addCategory( )
	->term( $feed_category )
	->domain( 'itunes:category' )
        ;
    $channel->addCategory( )
	->term( $feed_subcategory )
	->domain( 'itunes:category' )
        ;

But I could not create anything like the required format. Do I miss something? Could this be implemented?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions