Skip to content

Commit

Permalink
Add Metadata to Playlist Files (#2215)
Browse files Browse the repository at this point in the history
Co-authored-by: kuba <[email protected]>
Co-authored-by: Alan <[email protected]>
Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Co-authored-by: Ash <[email protected]>
Co-authored-by: Jayden <[email protected]>
  • Loading branch information
6 people authored Nov 14, 2024
1 parent e80f84d commit 1c110e7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ If you don't want config to load automatically change `load_config` option in co
"scan_for_songs": false,
"m3u": null,
"output": "{artists} - {title}.{output-ext}",
"m3u_output": "#EXTINF:{duration}, {artists} - {title}.{output-ext}",
"overwrite": "skip",
"search_query": null,
"ffmpeg": "ffmpeg",
Expand Down
2 changes: 1 addition & 1 deletion spotdl/console/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def pool_worker(song: Song):
gen_m3u_files(
songs,
m3u_file,
downloader.settings["output"],
downloader.settings["m3u_output"],
downloader.settings["format"],
downloader.settings["restrict"],
False,
Expand Down
4 changes: 2 additions & 2 deletions spotdl/console/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def sync(
gen_m3u_files(
songs_list,
m3u_file,
downloader.settings["output"],
downloader.settings["m3u_output"],
downloader.settings["format"],
downloader.settings["restrict"],
False,
Expand Down Expand Up @@ -232,7 +232,7 @@ def sync(
gen_m3u_files(
songs_playlist,
m3u_file,
downloader.settings["output"],
downloader.settings["m3u_output"],
downloader.settings["format"],
downloader.settings["restrict"],
False,
Expand Down
2 changes: 1 addition & 1 deletion spotdl/download/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def download_multiple_songs(
gen_m3u_files(
song_list,
self.settings["m3u"],
self.settings["output"],
self.settings["m3u_output"],
self.settings["format"],
self.settings["restrict"],
False,
Expand Down
1 change: 1 addition & 0 deletions spotdl/types/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class DownloaderOptions(TypedDict):
scan_for_songs: bool
m3u: Optional[str]
output: str
m3u_output: str
overwrite: str
search_query: Optional[str]
ffmpeg: str
Expand Down
1 change: 1 addition & 0 deletions spotdl/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def get_parameter(cls, key):
"scan_for_songs": False,
"m3u": None,
"output": "{artists} - {title}.{output-ext}",
"m3u_output": "#EXTINF:{duration}, {artists} - {title}.{output-ext}",
"overwrite": "skip",
"search_query": None,
"ffmpeg": "ffmpeg",
Expand Down

0 comments on commit 1c110e7

Please sign in to comment.