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

Choose videos by name via fuzzy best-match #55

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Ruakij
Copy link

@Ruakij Ruakij commented Apr 25, 2023

Problem:

In some cases, the yt-search results in multiple videos being returned, but only one of them being the best-match.
This isnt necessarily the latest or first one in the list of results.

Changes to solve:

Added fuzzy-checking to the results and only select the best-match instead of the first one.

Further changes:

Instwad of grabbing the webpage-url, the url of the video is seletec instead. This should stop some cases where only a flat-search was done, in this case, webpage-url always returns e.g. the playlist-url, not the video-url.

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.

1 participant