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

Add argument for downloading songs without creating floder

Open XuliGan4eg2006 opened this issue 3 years ago • 14 comments

I suggest adding a parameter for downloading tracks without creating a folder and a parameter for a custom track name

XuliGan4eg2006 avatar May 01 '21 07:05 XuliGan4eg2006

Yeah! I often download a single tracks rather than playlists, so it would be nice to put just tracks into specified path without wrapping them into an additional folder.

dagolinuxoid avatar May 06 '21 15:05 dagolinuxoid

Yeah this would be really useful.

Spagett1 avatar Jul 09 '21 12:07 Spagett1

@XuliGan4eg2006 @Laar3 @dagolinuxoid where would you prefer to have the file saved? Same place as where you invooked spotify-dl from?

SathyaBhat avatar Jul 13 '21 09:07 SathyaBhat

@XuliGan4eg2006 @Laar3 @dagolinuxoid where would you prefer to have the file saved? Same place as where you invooked spotify-dl from?

To a specific directory, which can be specified by passing a parameter with the path

XuliGan4eg2006 avatar Jul 13 '21 10:07 XuliGan4eg2006

you can do that currently with -o parameter

SathyaBhat avatar Jul 13 '21 10:07 SathyaBhat

you can do that currently with -o parameter

and he will create a folder with the song, and it is necessary that only the song (without the folder)

XuliGan4eg2006 avatar Jul 13 '21 10:07 XuliGan4eg2006

Got it 👍🏼

SathyaBhat avatar Jul 13 '21 10:07 SathyaBhat

@XuliGan4eg2006 @Laar3 @dagolinuxoid where would you prefer to have the file saved? Same place as where you invooked spotify-dl from?

As xuligan said I mean that it should just put the song in the folder without creating a folder Inside that folder fo rthe song.

Spagett1 avatar Jul 13 '21 11:07 Spagett1

@Laar3 makes sense. thanks!

SathyaBhat avatar Jul 13 '21 11:07 SathyaBhat

I'm having an issue where the playlist I'm trying to download has emojis in it so it fails to create the directory. Can I just download it to the dir specified with -o ?

mrchrisster avatar Jul 26 '21 04:07 mrchrisster

I'm having an issue where the playlist I'm trying to download has emojis in it so it fails to create the directory. Can I just download it to the dir specified with -o ?

Unfortunately not, it would try to create a sub-directory with the name of the playlist

https://github.com/SathyaBhat/spotify-dl/blob/master/spotify_dl/spotify_dl.py#L80-L81

SathyaBhat avatar Jul 26 '21 06:07 SathyaBhat

@mrchrisster can you link me to a playlist which has an emoji in it?

SathyaBhat avatar Jul 26 '21 12:07 SathyaBhat

https://open.spotify.com/playlist/7GVx9Oo8GJqK2xZLUgQs0g

mrchrisster avatar Jul 26 '21 13:07 mrchrisster

I think forcing a folder creation actually makes it so the overwrite method doesn't work because you're always downloading to an empty file.

chrisuzokwe avatar May 14 '22 17:05 chrisuzokwe