whatdaybob / sonarr_youtubedl

A Sonarr companion script to allow the automatic downloading of web series normally not available for Sonarr to search for. Using Youtube-DL it allows you to download your webseries from the list of supported sites.
107 stars 34 forks source link

Choose videos by name via fuzzy best-match #55

Open Ruakij opened 1 year ago

Ruakij commented 1 year ago

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.