spotify-downloader
spotify-downloader copied to clipboard
-m3u argument fails on certain playlists
System OS
Windows
Python Version
3.11 (CPython)
Install Source
Other
Install version / commit hash
4.2.4
Expected Behavior vs Actual Behavior
Should give 2 m3u files but fails on the 1st every times i suppose it's because of the name of the playlist is it possible to ensure that spotdl get rid of "problematic" charr in the name.
Steps to reproduce - Ensure to include actual links!
spotdl sync https://open.spotify.com/playlist/37i9dQZF1DWWCAjkSJsi1g https://open.spotify.com/playlist/0LvUmTj1ZwjKocQxti4o01 --sponsor-block --sync-without-deleting --user-auth --playlist-numbering --save-errors playlistsERR.txt --save-file playlists.spotdl --m3u {list}.m3u
Traceback
An error occurred
╭─────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ────────────────────────────────────────────────────────────────────────────╮
│ C:\Python312\Lib\site-packages\spotdl\console\entry_point.py:137 in console_entry_point │
│ │
│ 134 │ try: │
│ 135 │ │ # Pick the operation to perform │
│ 136 │ │ # based on the name and run it! │
│ ❱ 137 │ │ OPERATIONS[arguments.operation]( │
│ 138 │ │ │ query=arguments.query, │
│ 139 │ │ │ downloader=downloader, │
│ 140 │ │ ) │
│ │
│ C:\Python312\Lib\site-packages\spotdl\console\sync.py:77 in sync │
│ │
│ 74 │ │ │
│ 76 │ │ if m3u_file: │
│ ❱ 77 │ │ │ gen_m3u_files( │
│ 78 │ │ │ │ songs_list, │
│ 79 │ │ │ │ m3u_file, │
│ 80 │ │ │ │ downloader.settings["output"], │
│ │
│ C:\Python312\Lib\site-packages\spotdl\utils\m3u.py:116 in gen_m3u_files │
│ │
│ 113 │ if "{list}" in file_name: │
│ 114 │ │ # Create multiple m3u files if there are multiple lists │
│ ❱ 116 │ │ │ create_m3u_file( │
│ 117 │ │ │ │ file_name.format( │
│ 118 │ │ │ │ │ list=list_name, │
│ │
│ C:\Python312\Lib\site-packages\spotdl\utils\m3u.py:185 in create_m3u_file │
│ │
│ 182 │ │ detect_formats, │
│ 183 │ ) │
│ 184 │ │
│ ❱ 185 │ with open(file_name, "w", encoding="utf-8") as m3u_file: │
│ 186 │ │ m3u_file.write(m3u_content) │
│ 187 │ │
│ 188 │ return m3u_content │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [Errno 22] Invalid argument: 'Room 2: Classics.m3u8'
Other details
No response
This issue has been automatically marked stale because there hasn't been any activity for the last 30 days.
fixed in v4.2.6