small changes
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user