diff --git a/docs/usage.md b/docs/usage.md index aa422f9dd..e0debd881 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -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", diff --git a/spotdl/console/save.py b/spotdl/console/save.py index e30a30aa3..54fcb64c9 100644 --- a/spotdl/console/save.py +++ b/spotdl/console/save.py @@ -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, diff --git a/spotdl/console/sync.py b/spotdl/console/sync.py index 1c3128aa6..6bf68bb4b 100644 --- a/spotdl/console/sync.py +++ b/spotdl/console/sync.py @@ -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, @@ -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, diff --git a/spotdl/download/downloader.py b/spotdl/download/downloader.py index 60db8c500..9876d29db 100644 --- a/spotdl/download/downloader.py +++ b/spotdl/download/downloader.py @@ -341,7 +341,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, diff --git a/spotdl/types/options.py b/spotdl/types/options.py index 180755234..991195046 100644 --- a/spotdl/types/options.py +++ b/spotdl/types/options.py @@ -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 diff --git a/spotdl/utils/config.py b/spotdl/utils/config.py index fd8935bf4..7add380fc 100644 --- a/spotdl/utils/config.py +++ b/spotdl/utils/config.py @@ -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",