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

Verify that youtube video matches the search term #39

Closed
SathyaBhat opened this issue Apr 19, 2017 · 5 comments
Closed

Verify that youtube video matches the search term #39

SathyaBhat opened this issue Apr 19, 2017 · 5 comments

Comments

@SathyaBhat
Copy link
Owner

https://twitter.com/bsgreenb/status/853456868655587329

spotify-dl is impressive. I'd recommend adding some basic levenstein or nlp to verify the youtube video matches the search term

@avinassh
Copy link
Collaborator

Can you give me some examples?

@SathyaBhat
Copy link
Owner Author

SathyaBhat commented Apr 19, 2017 via email

@avinassh
Copy link
Collaborator

The idea is to use Levenshtein distance to ensure that what the track/artist that was searched for is a close match to what YouTube results return

How?

For example, if user enters Emenem and if YT returns no results, we should search for strings which are close match to Emenem?

So task here is to generate strings based on some fixed Levenshtein distance (may be .9+) and search for those?

@SathyaBhat
Copy link
Owner Author

That's one option - the other way of looking is to calculate the distance of what was searched vs what was returned from the search and if it's beyond a threshold then don't download it

@alvierahman90
Copy link
Contributor

Before the algorithm is run, the title should be tested against a white and blacklist. For example titles like [Artist]-[Song] (Official *music video*) should be automatically passed but titles containing remix or mashup shouldn't be downloaded

@SathyaBhat SathyaBhat closed this as not planned Won't fix, can't repro, duplicate, stale Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants