Skip to content

Sort order of categories #133

Open
Open
@JF-SR

Description

@JF-SR

Hi,
Is there a specific logic for the sorting order when a podcast has multiple categories?
For example, the rss feed for "P3 Krim" https://api.sr.se/api/rss/pod/itunes/34482 has "True Crime" as the first category named (id in podcastindex database: 3500196).

My assumption is that this should be treated as the "main" category and show up as category1. However, the database returns "news" as category1.

Looking at other podcasts it does not seem to be the case that the categories are in alphabetical order, though it does appear that when a main category is chosen and a sub-category specified that the sub-category comes immediately after, for example category1 = "arts", category 2="performing".

Is there any documentation around the sort order for categories in the ten category columns? If there is no specific logic applied to the sorting today (apart from subcategories appear directly after their parent category) could a logic be applied that the first category named in the rss feed always be treated as category 1?

Great service, by the way!
/Jon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions