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

Wrong audio played on my spotify track #1095

Closed
1 task done
acantepie opened this issue Jan 22, 2024 · 5 comments
Closed
1 task done

Wrong audio played on my spotify track #1095

acantepie opened this issue Jan 22, 2024 · 5 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@acantepie
Copy link

acantepie commented Jan 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After logged on my spotify account, the first two tracks of my playlist have right information but the audio played is not the right one

Url of playlist : https://open.spotify.com/playlist/7EtiSLKUiHY7vmJ7SikOaj?si=828fb5d0322b437e

Track one :

Title : The Leftlovers Piano Theme
Artist : Geek music
Album : The Leflovers Piano Theme
Time : 3:07

Audio played : a piano mario theme song ...

Track two :

Title : Leftlovers
Artist : Dennis Lloyd
Album : Leflovers
Time : 3:12

Audio played : a live of metal concert ...

Wtf ..

Expected Behavior

The right audio is played

Steps to reproduce

  1. Log with a spotify account which has previously added this playlist : https://open.spotify.com/playlist/7EtiSLKUiHY7vmJ7SikOaj?si=828fb5d0322b437e
  2. Play the first 2 tracks of playlist (haven't test all track of my library)

Operating System

Windows 11

Spotube version

idk. The last one

Installation source

GitHub Releases (Binary)

Additional information

Installed from url provided by this repo (binary).

@acantepie acantepie added the bug Something isn't working label Jan 22, 2024
@KRTirtho
Copy link
Owner

This is generally a limitation of Spotube as it can't match 100% all the time. See #883 , #737 etc

@KRTirtho KRTirtho added the duplicate This issue or pull request already exists label Jan 22, 2024
@KRTirtho
Copy link
Owner

Duplicate of #883

@KRTirtho KRTirtho marked this as a duplicate of #883 Jan 22, 2024
@acantepie
Copy link
Author

acantepie commented Jan 22, 2024

This is generally a limitation of Spotube as it can't match 100% all the time. See #883 , #737 etc

Hi,
This is wierd, i have developed a software to donwload music of spotify using youtube api music (search with fuziness).
You can take a look at my repo : https://github.com/acantepie/opusify?tab=readme-ov-file

I think there is something wrong with your search algorithm

@KRTirtho
Copy link
Owner

KRTirtho commented Jan 22, 2024

Judging your porject it seems to be using youtube-dl which is a huge project written in python and since python is an interpreted language, their huge algorithm can't be linked with flutter (dart) through FFI.

It's doable but not practical as we've to ship the embedded python interpreter with Spotube. The best solution is probably porting that library. But that'll take a huge amount of work, and I don't see anyone (including me) put that much work.

I welcome anyone who can port youtube-dl to dart in Dart. Although, Spotube only requires the search and match part. Which might be not as big as I'm guessing

@acantepie
Copy link
Author

Hi, the search is only handled by this python script i made : https://github.com/acantepie/opusify/blob/main/src/youtube-dl/YoutubeSearch.py. This script uses this library https://ytmusicapi.readthedocs.io/en/stable to find the best match and retrieve a youtubeId

Unfortunalty there is no official api for yt music but mb there is a port of this library on Dart 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants