DownOnSpot
DownOnSpot copied to clipboard
Template for track order in playlist
I'm trying to download a spotify playlist for my music class. I really need to include the playlist # in the filename, because we study the pieces inside chronologically, but I can't find a template for it. So far I've tried %0track% and %track%, but it seems to be track number of the album the piece is in, not of the playlist.
Describe the solution you'd like A new template for the playlist number of the piece.
Songs don't have anything to do with Spotify anymore after download, at max it would make sense to add the playlist number in the comment tag.
That's exactly the reason I want this feature. When I go into the folder, I don't know which piece we are currently studying. I have to open the Spotify playlist page, find the piece, go back to finder and find the piece, and then play it. Since I'm given the playlist index of the pieces we are going to study each week, if I can somehow put the playlist index into the filename, I don't need to touch Spotify at all. I hope this answers your question and makes more sense.
The problem is that the teacher solely relies on the Spotify playlist, so she only gave us indexes. If she would also give us the piece title and composer I would not need this. But it is what it is.
I'm sorry that what I've said doesn't make sense to you.
Try think about it this way: I have a spotify playlist that I would like to migrate into iTunes, and I care about the order of the tracks because that's what I'm used to. So how can I preserve the order of tracks in the playlist?
There is no such feature for that in DownOnSpot. Code logic would need to change, to add the playlist metadata, if a playlist is being downloaded from.
@sclsj I don't understand what the issue is. DownOnSpot downloads the tracks in chronological order so you can sort the files by creation date and add a number to each file. All my tracks are in the right order. Here is a one liner:
a="$1"; ls -tr | while read line; do printf "%s \'%s\' \'%01d. "%s"\'\n" mv "$line" $((a=a + 1)) "$line"; done | bash
If you want to do a dry run, pipe it into cat instead of bash. | cat
If you change 01
to 02
you can add a single zero infront.. if you do 03
or 04
you can add even more.. This is good for large collections if you want everything to look a bit cleaner..
So with 03
it would be like: 005. artist - track
Add the script to your $PATH and run it like script N
if you want an other starting number than 1. without N it starts at 1
@fov95 No. DownOnSpot uses multithreaded downloading by default, so it's not strictly in chronological order. Therefore you cannot rely on mod or create date.
Does it? For me it downloaded one track at a time, top to bottom and I just reverse the order and number it and everything is always in the right order for me. I don't have the issue you're describing and I have quite a lot of playlists... Edit: I checked my playlists again now and I can assure you every track is in it's right place. They match 100% the spotify playlists.
I would also find the addition of playlist # helpful. At the very less adding it to comments or something that I can parse it later. The order of many playlists are quite intentional.
Or having the spotify ID added as metadata or filename template so that it can be parsed and combined with a playlist export to be imported into a different player.