7

I want to name downloaded audio files in playlists and albums by the track order. Only the track_number output path command seems to be directly related and results in every file being prefixed with NA string.

screenshot

Affects both Soundcloud and Bandcamp (low-bitrate audio stream is always provided for free).


sample command:

youtube-dl -f bestaudio -o "%(playlist_title)s/%(track_number)s.%(title)s.%(ext)s" url
user198350
  • 4,019

1 Answers1

10

youtube-dl has been updated with Bandcamp support for the track_number command. Soundcloud doesn't provide the track number for youtube-dl, but you can use the playlist template (source):

-o "%(playlist)s\%(playlist_index)s - %(title)s.%(ext)s"
user198350
  • 4,019