scdl-org / scdl

Soundcloud Music Downloader
GNU General Public License v2.0
3.29k stars 331 forks source link

Issue on directory when working on lib #501

Open Italyermi opened 2 months ago

Italyermi commented 2 months ago

Hello, i was using this script directly by calling download_track from my code

But after the update changing path has become pain, before i add 3 or 4 lines and i was downloading to any directory i want. Is there anyway to change the downloaded track path without changing the working directory? is there any simplest way without modifying the library a lot?

Italyermi commented 2 months ago

Very frustrating issue, Please consider changing the downloaded file dir without changing the working dir

7x11x13 commented 1 month ago

Yeah, this script was really not designed to be used as a library. This is an issue, as well as all the sys.exit calls... Unfortunately the code base is pretty gnarly and would require some significant refactoring to make this change. Hopefully we will get around to this, but for now the best way is to call the scdl script as a separate process using e.g. subprocess.run