chris-lovejoy / YouTube-video-finder

A tool to intentionally discover valuable videos
MIT License
521 stars 94 forks source link

Bug: Some queries return nothing #13

Open chriss2401 opened 3 years ago

chriss2401 commented 3 years ago

Hey,

Thanks for the interesting project, been using this on and off, but I noticed that sometimes I get no results and the reason isn't really defined. Look at this example for "plant based burger":

image

If I search this on YouTube there are of course many videos in the last 7 days :

image

Just wanted to report this in case there was some weird bug. I'm using master latest of course.

chris-lovejoy commented 3 years ago

I believe the reason for this is that the whole phrase has to be identical to how it appears in the video details. So here, the titles either have a dash (plant-based burger) or don't feature those three words in the same order.

This is definitely a limitation of the code, and will be particularly restricting for multiple-word searches, as you're finding.

I'm sure this could be fixed with some sort of fuzzy matching-type search modification. I don't have the bandwidth to add this at the moment, but invite anybody who does to do so.