scdl icon indicating copy to clipboard operation
scdl copied to clipboard

where are the format definitions for --name-format?

Open manoflinux opened this issue 2 years ago • 8 comments

I can't seem to find them anywhere.

manoflinux avatar Aug 30 '22 03:08 manoflinux

https://github.com/7x11x13/soundcloud.py/blob/main/soundcloud/resource/track.py#L35

7x11x13 avatar Sep 04 '22 17:09 7x11x13

Here is an example which adds the tracknumber and title:

scdl --playlist-name-format "{playlist[tracknumber]:0>2} - {title}" -l URL

dozed avatar Oct 08 '22 14:10 dozed

thanks!

manoflinux avatar Nov 08 '22 05:11 manoflinux

how would i download from a playlist without attaching the playlist name to the title of the song?

kylrober avatar Jun 06 '24 16:06 kylrober

how would i download from a playlist without attaching the playlist name to the title of the song?

Go to your config file and set playlist_name_format = {title}

adithayyil avatar Jun 07 '24 14:06 adithayyil

Is there anything that I need to do to make changes to my config file take effect? I changed my config file as you suggested, but am still getting the playlist name and artist name at the front of my filename when I download a playlist

samuel-clement avatar Jun 19 '24 18:06 samuel-clement

I was able to get it to work with the following: scdl --playlist-name-format "{title}" -l URL

samuel-clement avatar Jun 19 '24 18:06 samuel-clement