spotify-downloader icon indicating copy to clipboard operation
spotify-downloader copied to clipboard

Finds 1 or 10 hour version when track is from a playlist

Open Dinip opened this issue 1 year ago • 4 comments

System OS

Linux

Python Version

3.7 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.2

Expected Behavior vs Actual Behavior

When I was downloading a personal playlist, I got several matches for 1h or 10h versions instead of the correct ones. One example is the track specified below. But when you query directly with the track url, it finds the correct version.

It should find the same version if you query the track directly and if the (same) track is in a playlist.

Steps to reproduce - Ensure to include actual links!

  1. Query for https://open.spotify.com/track/70R53Oq9IegG1kwhxo2Lxm
  2. Finds correct version (5m58s)
  3. Query for https://open.spotify.com/playlist/58yk6vOO2gZIEjDAUa8JyD (my test playlist with only the previous track added)
  4. Finds a 10h version

The playlist above have some tracks that I found, that when queried directly it finds the correct version, but when are loaded from a playlist, it finds 1 or 10 hour versions

Traceback

dinip@Dinip-Desktop:~/spotdl-test$ spotdl https://open.spotify.com/track/70R53Oq9IegG1kwhxo2Lxm
Processing query: https://open.spotify.com/track/70R53Oq9IegG1kwhxo2Lxm
Downloaded "Otto Knows - Million Voices - Extended Original Mix": https://www.youtube.com/watch?v=uHIsBZNg9nU

dinip@Dinip-Desktop:~/spotdl-test$ du -sh Otto\ Knows/Million\ Voices/Million\ Voices\ -\ Extended\ Original\ Mix.m4a
5.7M    Otto Knows/Million Voices/Million Voices - Extended Original Mix.m4a
dinip@Dinip-Desktop:~/spotdl-test$ ffmpeg -i Otto\ Knows/Million\ Voices/Million\ Voices\ -\ Extended\ Original\ Mix.m4a 2>&1 | grep Duration
  Duration: 00:05:58.26, start: 0.000000, bitrate: 131 kb/s
dinip@Dinip-Desktop:~/spotdl-test$ rm -r Otto\ Knows/

dinip@Dinip-Desktop:~/spotdl-test$ spotdl https://open.spotify.com/playlist/58yk6vOO2gZIEjDAUa8JyD?si=27ab6bf7288a4d6f
Processing query: https://open.spotify.com/playlist/58yk6vOO2gZIEjDAUa8JyD?si=27ab6bf7288a4d6f
Found 1 songs in Testing spotDL (Playlist)
Downloaded "Otto Knows - Million Voices - Extended Original Mix": https://www.youtube.com/watch?v=frpaazbJ2Q0

dinip@Dinip-Desktop:~/spotdl-test$ du -sh Otto\ Knows/Million\ Voices/Million\ Voices\ -\ Extended\ Original\ Mix.m4a
557M    Otto Knows/Million Voices/Million Voices - Extended Original Mix.m4a
dinip@Dinip-Desktop:~/spotdl-test$ ffmpeg -i Otto\ Knows/Million\ Voices/Million\ Voices\ -\ Extended\ Original\ Mix.m4a 2>&1 | grep Duration
  Duration: 10:00:47.77, start: 0.000000, bitrate: 129 kb/s

Other details

No response

Dinip avatar Nov 19 '23 02:11 Dinip

update to v4.2.3

xnetcat avatar Nov 19 '23 07:11 xnetcat

I don't see any reference to v4.2.3 in the repo. The latest version available is v4.2.2 released 19h ago.

Dinip avatar Nov 19 '23 12:11 Dinip

I don't see any reference to v4.2.3 in the repo. The latest version available is v4.2.2 released 19h ago.

sorry thought you were on 4.2.1 and I wanted to type 4.2.2

I will check your issue

xnetcat avatar Nov 19 '23 14:11 xnetcat

fixed on dev branch, v4.2.5 soon

xnetcat avatar Jan 05 '24 16:01 xnetcat

This issue has been automatically marked stale because there hasn't been any activity for the last 30 days.

stale[bot] avatar Mar 17 '24 11:03 stale[bot]