mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 01:40:16 +00:00
Bugfix: writing to STDOUT would do opposite
This commit is contained in:
@@ -13,4 +13,4 @@ RUN pip install .
|
||||
RUN mkdir /music
|
||||
WORKDIR /music
|
||||
|
||||
ENTRYPOINT ["spotdl", "-f", "/music"]
|
||||
ENTRYPOINT ["spotdl"]
|
||||
|
||||
@@ -156,10 +156,10 @@ class SpotifyHelpers:
|
||||
logger.info(u"Writing {0} tracks to {1}.".format(tracks["total"], target_file))
|
||||
write_to_stdout = target_file == "-"
|
||||
if write_to_stdout:
|
||||
with open(target_file, "a") as file_out:
|
||||
file_out = sys.stdout
|
||||
track_urls = writer(tracks, file_out)
|
||||
else:
|
||||
file_out = sys.stdout
|
||||
with open(target_file, "a") as file_out:
|
||||
track_urls = writer(tracks, file_out)
|
||||
return track_urls
|
||||
|
||||
|
||||
Reference in New Issue
Block a user