Closed Ryochan7 closed 2 years ago
More confused than when I started looking. It looks like feeddownloader calls the update_category function that is responsible for placing a podcast in a category. The function looks at the tags associated with a Podcast entity, takes a random tag from the list(?), and then either creates or updates a Category association; this happens each time a feed is parsed. So each Podcast will unintentionally be linked to many Category instances. Also, there is a minimum subscriber count taken into account before mygpo will add a Podcast to a Category; the default setting is 10 subscribers.
https://github.com/Ryochan7/alphagpo/blob/master/mygpo/directory/tags.py#L52
If that is the main way the system populates the Directory section, I don't like it.
Trying to make something sensible with the models that already exist. It looks like I am mainly going to focus on sticking with the current category list that is supported in iTunes for podcasts. Subcategories will be handled with different CategoryTag instances although the parent Category will have an associated CategoryTag to start with. It seems like the path of least resistance and it should work.
https://podcasters.apple.com/support/1691-apple-podcasts-categories
So far, the mygpo generated top list says that the highest subscribed podcast has 3 subscribers. There is still some time before the Directory section would get populated with any podcasts.
Finally got the feed downloader set up to save category associations from podcast feeds.
Default Category and CategoryTag associations are implemented in the code now. For now, deprecated iTunes categories should probably be handled as additional CategoryTag instances. It might be a bigger issue later.
The highest subscribed podcast still only has 3 subs. I might end up reducing the limit soon so the Directory section will get populated with some podcasts. The major issues should be dealt with now and I would like the Directory section to actually be useful. Only some sections have been useful for finding other podcasts to check out.
Still have not found out if there is a way to automate adding categories for use with the Directory section. Although, the original site Directory section is mostly non-functional and many category titles are just wrong like
android;
. Some old categories, like Bbc, don't look like they were added from podcast feed info but added manually instead.Also, trying to add a Category from the Django admin results in 500 errors.