Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a search function to podcast #621

Merged
merged 15 commits into from Jun 22, 2021

Conversation

philippe44
Copy link
Contributor

@philippe44 philippe44 commented Jun 19, 2021

This adds the possibility to search feeds with a choice of providers. It's basic, including the possibility to switch provider (inspired by material). One thing I'm missing is the possibility to subscribe directly by adding an icon on the feed list, but I don't know if this is possible to have a custom handler there

Copy link
Member

@michaelherger michaelherger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a quick review so far - haven't had time to actually play with it.

Overall I like the idea and the approach to support multiple sources in a generic way. But I'm not sure we can use Apple. Maybe we should implement gpodder by default, but provide a hook for 3rd parties to register additional sources like Apple or podcastindex.org (requires an API key, I believe). Then I would whip up a small plugin to add those other sources.

Slim/Plugin/Podcast/Search.pm Outdated Show resolved Hide resolved
title => 'collectionName',
image => ['artworkUrl600', 'artworkUrl100'],
setup => sub {
my $url = 'https://itunes.apple.com/search?media=podcast&term=' . shift;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know whether this endpoint is open to the public?

Slim/Plugin/Podcast/Search.pm Outdated Show resolved Hide resolved
my $log = logger('plugin.podcast');
my $prefs = preferences('plugin.podcast');

my @providers = ( {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this approach!

@michaelherger
Copy link
Member

michaelherger commented Jun 19, 2021

I pushed a few changes I suggested above to a new branch. But I believe I can't submit a pull request because it's based on a pull request of yours...

You'll find my commit in fbed42c

@philippe44
Copy link
Contributor Author

If we can find a way to add a feed to the list, I think that would be enough TLC for this plugin. Anything more would mean searching and browsing episodes themselves which I think is way beyond the scope of this plugin - IMHO.

@philippe44
Copy link
Contributor Author

Re latest commit, I thought that you might prefer to have the extra menu (trending) out of the core LMS as it is not super UI-clean. The small extension mechanism will allow that to be added as a tiny plugin

@philippe44
Copy link
Contributor Author

I've created a basic podcast-extension here https://github.com/philippe44/LMS-PodcastExt

@philippe44
Copy link
Contributor Author

I've made a fair bit of refactoring b/c I realized I was reinventing the OO wheel too much. So I moved providers to a proper class solution. @mherger, I've included all your modficiations

@mherger mherger merged commit c5d095c into LMS-Community:public/8.2 Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants