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

[BUG] Savify downloads random youtube video instead of Spotify track #81

Open
Nughu opened this issue Apr 18, 2023 · 5 comments
Open

[BUG] Savify downloads random youtube video instead of Spotify track #81

Nughu opened this issue Apr 18, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Nughu
Copy link

Nughu commented Apr 18, 2023

Describe the bug
For some reason, a few specific Songs aren't downloaded from Spotify properly. The song "Taser Tot" by Artist "Rittlin" is completely replaced by some random youtube video about tater tots(???). The command I used:

Savify.exe -o "J:\DJing\Musiq\Album\Rittlin" -g "%album%" https://open.spotify.com/album/3s46ycmfDfc4CgH9qcXNfH?si=ib4seon6TiuHxmFpBT55wQ

To Reproduce
Download the album using the command mentioned above.

Expected behavior
Every Song in the album is downloaded correctly (without random YT audio)

Desktop (please complete the following information):

  • OS: Windows 10
  • Build 19042

Additional context
I think this might happen because the Album has the exact same name as the artist.

@Nughu Nughu added the bug Something isn't working label Apr 18, 2023
@Nughu
Copy link
Author

Nughu commented May 22, 2023

I downloaded this Album from Spotify using Savify. In the album directory, I have 2 Songs with similar names:
"Shiva Panchakshara Stotram"
"Shiva Panchakshari Mantra"
both are downloaded, but the second one ("Shiva Panchakshari Mantra") has the exact same audio as the first one("Shiva Panchakshara Stotram"):
image

What is this funky business?

@joamjoamjoam
Copy link

The way this tool works is it generates a youtube query based of the spotify track information and downloads im assuming the first video for that query. You can use the -vv option to see the search query used for each track and search youtube yourself. The results will probably show your "random" youtube video.

@yobonez
Copy link

yobonez commented Jun 23, 2023

How is that even possible? I have my own internet radio backend/frontend project and for my recent download i used my 700+ spotify playlist and it looks like about 15-30% of the songs are valid album songs, but misplaced track names / remixes / completely different songs / podcasts even. I don't recall this happening before, because i have a different (older) folder for this project containing about 670 songs that have one difference. I downloaded them by using a bunch of smaller spotify playlists (probably up to 50 songs) and saved them in one folder. And there was maybe like 1 altered song in it.

One of the saved songs from this recently downloaded playlist (BONES - MineralWashed) caught me off guard, because it literally started playing some book being spoken by a lector, and when i checked it, turns out it is 0,6GB in size and is about 10 hours long.

image

When i searched for this song on youtube with a fresh browser session without any cookies or accounts, it literally flooded the page with just the song i searched for. So from where exactly it got this from?

image

@joamjoamjoam
Copy link

joamjoamjoam commented Jun 23, 2023

Im not sure what to tell you except that its open source and you can see some debug information with -vv option. You can even see the youtube download options yourself. Some of the more obscure music dont get the correct info. Ill try it later with that song and see what i see.

Theres a fork of this repo to update to youtube dlp maybe youll like those results more.

Update: for that song i got the same result. The search term shown by -vv is "BONES - MineralWashed audio" i think when you start getting to more obscure music the accuracy is hit or miss. It might be a good idea to add a max length field to prevent download 1gb songs but this repo seems like its unmaintained unfortunately.

@joamjoamjoam
Copy link

I made some changes to my fork to make matching more accurate. I pulled a couple of other things, like using yt-dlp since it's more maintained.

Feel free to try it and see if it's better for you. My fork matched BONES -MineralWashed as expected. I also look at the top five matches and choose the best one.

Repo on trent-main branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants