miraclx / freyr-js

A tool for downloading songs from music streaming services like Spotify and Apple Music.
https://git.io/freyr-js
Apache License 2.0
1.37k stars 89 forks source link

fix(YouTube Music): fix song extraction #632

Closed miraclx closed 5 months ago

miraclx commented 5 months ago

YouTube Music seems to have removed the "Song" label on songs in its search results. Requiring us to update our extraction logic.

While at this, I updated the accuracy gauge to factor in the weight of texual labels as well.

All together, cutting off at a minimum of 80% match.

github-actions[bot] commented 5 months ago
--- 🐋 🤖 **A docker image for this PR has been built!** ```console docker pull freyrcli/freyrjs-git:pr-632 ``` | [**Base (master)**][base-url] | [![](https://img.shields.io/docker/image-size/freyrcli/freyrjs-git/982e19f?color=gray&label=%20&logo=docker)][base-url] | | :-: | - | | [**This Patch**][pr-url] | [![](https://img.shields.io/docker/image-size/freyrcli/freyrjs-git/pr-632?color=gray&label=%20&logo=docker)][pr-url] | [![][compare-img]][compare-url] ---
What's this? This docker image is a self-contained sandbox that includes all the patches made in this PR. Allowing others to easily use your patches without waiting for it to get merged and released officially. For more context, see https://github.com/miraclx/freyr-js#docker-development.