Use folder argument as base for album/playlist file exports. #476
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use
const.args.folder
when using-b
or-p
.Related
Context
I set up a script that uses an URI handler to call
spotdl
. This allows the application to be called from an URI such asspotdl:https://open.spotify.com/album/0OkJThJls8FO1lutMzMDJ0
.https://msdn.microsoft.com/en-us/windows/desktop/aa767914
The problem I faced is that the current working directory for my application is
C:\Windows\System32
, which results in permission issues (https://github.com/ritiek/spotify-downloader/issues/340). The output directory for songs works around this issue, but the same can not currently be said for playlists and albums.These changes re-use the folder parameter to put the album or playlist text files in the supplied folder. From what I can tell
-f
is already required for both-p
and-b
even though the value is ignored.The global
const
was not included inspotify_tools.py
but because it was referenced in just about every other script I figured it wouldn't hurt to include it here as well. In particular,youtube_tools.py
already uses it in the same fashion when downloading songs.