small changes

This commit is contained in:
2022-09-12 23:49:34 +02:00
parent a76f5cec0e
commit 8172768bdf
2 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import os
def download_playlist(playlist: dict, playlist_root: str) -> None:
def download_playlist(playlist: dict, playlist_root: str, file_type: str) -> None:
print(f"Downloading playlist {playlist['name']}")
# create playlist root, if not done yet
@@ -21,5 +21,5 @@ def download_playlist(playlist: dict, playlist_root: str) -> None:
os.chdir(playlist_dir)
command = f"spotdl {playlist['external_urls']['spotify']}"
command = f"spotdl {playlist['external_urls']['spotify']} --output-format {file_type}"
os.system(command)