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

list_position : null #2290

Open
BezShkvark0 opened this issue Jan 30, 2025 · 3 comments
Open

list_position : null #2290

BezShkvark0 opened this issue Jan 30, 2025 · 3 comments
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@BezShkvark0
Copy link

System OS

Windows

Python Version

3.13 (CPython)

Install Source

pip / PyPi

Install version / commit hash

4.2.11

Expected Behavior vs Actual Behavior

When using '--output "{list-position} {artists} - {title}.{output-ext}" ' in attempt to sync Saved tracks expected following file naming:
000 Artists - Title.ext

Steps to reproduce - Ensure to include actual links!

Here is the command that I used:
spotdl sync saved --user-auth --save-file "saved.sync.spotdl" --output "{list-position} {artists} - {title}.{output-ext}

Traceback

Here is what I've got in PowerShell:

Template contains {list-position}, but it's value is None. Replacing with empty string.
Downloaded "Aria - Зомби": https://music.youtube.com/watch?v=0r6Ob8vTeqk

and same thing for the next 481 tracks

Other details

I suppose that this is mostly because of the .sync.spotdl file.

Here are contains of the .sync.spotdl file (only for 1 of all 481 tracks)

{
"type": "sync",
"query": [
"saved"
],
"songs": [
{
"name": "Зомби",
"artists": [
"Aria"
],
"artist": "Aria",
"genres": [],
"disc_number": 1,
"disc_count": 1,
"album_name": "Кровь за кровь",
"album_artist": "Aria",
"duration": 270,
"year": "1991",
"date": "1991",
"track_number": 2,
"tracks_count": 8,
"song_id": "1X36ZqzDfzOzz05pYnXdJd",
"explicit": false,
"publisher": "M2BA",
"url": "https://open.spotify.com/track/1X36ZqzDfzOzz05pYnXdJd",
"isrc": "USA370952276",
"cover_url": "https://i.scdn.co/image/ab67616d0000b2737ebccf5f08ae28986ceed882",
"copyright_text": "1991 M2BA",
"download_url": null,
"lyrics": null,
"popularity": 14,
"album_id": "18OdfFMip6GTE3l0HnvqPp",
"list_name": "Saved tracks",
"list_url": "saved",
"list_position": null,
"list_length": 481,
"artist_id": "0ICn3Cbc4mMeLmTvwnqXYu",
"album_type": "album"
}
]
}

As we can see " "list_position": null " for some reason .sync.spotdl didn't took list position from Saved Songs...

@BezShkvark0 BezShkvark0 added the Bug Unexpected problem or unintended behavior that needs to be fixed label Jan 30, 2025
@BezShkvark0
Copy link
Author

BezShkvark0 commented Jan 30, 2025

UPD: I was trying to add list-position in output so that I could see all my 481 tracks in correct order(as they go in my Saved playlist).
Tho, I found a workaround to do so. I just edited the config, so that I have in 32nd line of the config I have " 1 "

UPD 2: I know that is ruining my download speed, but that worked

Image

@cvbraeuer
Copy link

i have the same issue. unfortunately, setting "threads" to 1 did not resolve the issue.

@Silverarmor
Copy link
Member

Possibly linked to #2286 - to be investigated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

No branches or pull requests

3 participants