-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add ytdl search #210
Add ytdl search #210
Conversation
What are your linter settings? Mine seem to be conflicting. |
You need to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this feature is needed and useful, but there's work needing done to make it fit and function as expected if you're able to.
I should have commented originally with the impetus for this feature. I am currently using it in my bot, albeit it is not fully implemented, however the entire purpose is to do a search and return options which the client can then choose from, before it plays the song. |
I am more than happy to work on this to have it fit properly into songbird, it is absolutely needed for a feature I'm using in my bot, so as long as I can make that work, I'm happy to make whatever changes you feel are appropriate. |
Thanks, I'm just keen that it works great for everyone. The main assumption with |
f14ed6d
to
29ba8c4
Compare
29ba8c4
to
82a6e57
Compare
I believe I've made all the requested changes and have got it working with these changes in my bot (which of course is the most important piece in this equation). I feel that my approach to using the yt-dlp search feature and parsing that into the AuxMetadata is either exactly as it is intended, or completely wrong. Also for the future I believe yt-dlp may support other searches, and also are there plans to not need yt-dlp? |
Thanks for making changes, I'll take a proper look in the next few days.
It looks valid at a glance, thank you. If there are any changes then I'll either push to your branch or provide a patchset.
We can support these as and when they come up.
You don't need yt-dlp for songbird, but practically speaking you need it to get any usable data from youtube given the way it works. |
Refactors such that parsing of (ND)JSON is handled in only one location now, which allows us to greatly simplify the actual `search` method. The main change is that any `new_search` is now instantly playable.
@cycle-five please have a look and see that you're okay with the changes I've made here:
|
Awesome! I'm just going to pull this update and make sure my bot can integrate apropos. |
This works exactly as I need, so it has my OK. |
Adds to YoutubeDl the ability to just return the search results as text.