KenT2 / tboplayer

Raspberry Pi. A GUI for OMXPlayer
Other
158 stars 43 forks source link

How does the youtube search work? #197

Closed Botspot closed 3 years ago

Botspot commented 3 years ago

youtube-dl doesn't appear to have a youtube search feature.
It appears you can give youtube-dl a keyword to search for, but then it will download the top X results!

That's not what I want.

I only want search results, containing the title of the video, and the URL. How does TBOPlayer's YT search function work? Does it use youtube-dl or something else?

Botspot commented 3 years ago

Okay update: I've made tremendous progress with youtube-dl at https://github.com/Botspot/pi-apps/issues/116#issuecomment-743803001

Botspot commented 3 years ago

It's about finished!
YouTubuddy is one awesome tool, and it takes TBOPlayer's search function to the next level. 2020-12-15-220913_1920x1080_scrot

heniotierra commented 3 years ago

Hi, @Botspot ! Now TBOPlayer uses a lib (youtube-search-python) for this, not youtube-dl. I didn't know youtube-dl had a search function. I guess I can have a look at it when I have the time. Thank you!

Botspot commented 3 years ago

Hi, @Botspot ! Now TBOPlayer uses a lib (youtube-search-python) for this, not youtube-dl. I didn't know youtube-dl had a search function. I guess I can have a look at it when I have the time. Thank you!

You're welcome for the info. Feel free to take a look at how YouTubuddy's bash script does it, and if you have any questions let me know.