Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on directory when working on lib #501

Open
Italyermi opened this issue Jul 11, 2024 · 2 comments
Open

Issue on directory when working on lib #501

Italyermi opened this issue Jul 11, 2024 · 2 comments

Comments

@Italyermi
Copy link

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
Copy link
Author

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

@7x11x13
Copy link
Member

7x11x13 commented Jul 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants