[GH-ISSUE #64] Playlist creation error #48

Open
opened 2026-03-04 12:28:27 +03:00 by kerem · 5 comments
Owner

Originally created by @ghost on GitHub (May 21, 2023).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/64

Playlist creation fails if the playlist name contains "/".
https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk

[2023-05-21 23:48:01,083 :: worker.utility :: worker\utility.py -> 26: run() :: INFO] -> Playlist m3u8 checking ID 2KC9BMH2fMqKbGcHV2lwwk [2023-05-21 23:48:01,083 :: worker.utility :: worker\utility.py -> 31: run() :: INFO] -> Playlist 2KC9BMH2fMqKbGcHV2lwwk has all items ready, making m3u8 playlist at: {play_queue[play_id]["filename"]}! [2023-05-21 23:48:01,084 :: runtimedata :: runtimedata.py -> 51: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 35, in run FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\username\\Music\\OnTheSpot\\!Playlist\\2007年-2023年 VOCALOID 伝説入り・神話入り楽曲 \\ 100万回再生超え ボカロ.m3u8'

Use latest development branch

Originally created by @ghost on GitHub (May 21, 2023). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/64 Playlist creation fails if the playlist name contains "/". https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk `[2023-05-21 23:48:01,083 :: worker.utility :: worker\utility.py -> 26: run() :: INFO] -> Playlist m3u8 checking ID 2KC9BMH2fMqKbGcHV2lwwk [2023-05-21 23:48:01,083 :: worker.utility :: worker\utility.py -> 31: run() :: INFO] -> Playlist 2KC9BMH2fMqKbGcHV2lwwk has all items ready, making m3u8 playlist at: {play_queue[play_id]["filename"]}! [2023-05-21 23:48:01,084 :: runtimedata :: runtimedata.py -> 51: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 35, in run FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\username\\Music\\OnTheSpot\\!Playlist\\2007年-2023年 VOCALOID 伝説入り・神話入り楽曲 \\ 100万回再生超え ボカロ.m3u8'` Use latest development branch
Author
Owner

@casualsnek commented on GitHub (May 21, 2023):

Looks like i the filenames were not sanitized properly:
Windows does not allow following characters in filenames
<,>,:,",/,,|,?,*

I'll fix it asap !

<!-- gh-comment-id:1556312085 --> @casualsnek commented on GitHub (May 21, 2023): Looks like i the filenames were not sanitized properly: Windows does not allow following characters in filenames <,>,:,",/,\,|,?,* I'll fix it asap !
Author
Owner

@casualsnek commented on GitHub (May 23, 2023):

This should be now fixed in development branch !

<!-- gh-comment-id:1558912253 --> @casualsnek commented on GitHub (May 23, 2023): This should be now fixed in development branch !
Author
Owner

@ghost commented on GitHub (May 23, 2023):

An error occurs when trying to download a playlist.

Previously, songs were added to Progress.
But now I get an error before it's added to Progress.

[2023-05-23 20:07:51,966 :: gui.main_ui :: gui\mainui.py -> 574:__get_search_results() :: INFO] -> Search clicked with value with url https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: gui.main_ui :: gui\mainui.py -> 619: __download_by_url() :: INFO] -> URL download clicked with value https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: utils :: utils\utils.py -> 124:regex_input_for_urls() :: INFO] -> Parsing url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7' [2023-05-23 20:07:51,968 :: utils :: utils\utils.py -> 227: get_url_data() :: INFO] -> Parse result for url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7'-> playlist, 2KC9BMH2fMqKbGcHV2lwwk [2023-05-23 20:07:51,977 :: spotutils :: utils\spotify.py -> 28: get_playlist_data() :: INFO] -> Get playlist dump for '2KC9BMH2fMqKbGcHV2lwwk' [2023-05-23 20:07:52,434 :: runtimedata :: runtimedata.py -> 51: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 192, in run File "utils\spotify.py", line 31, in get_playlist_data File "utils\spotify.py", line 84, in sanitize_data AttributeError: 'dict' object has no attribute 'replace'

<!-- gh-comment-id:1559084728 --> @ghost commented on GitHub (May 23, 2023): An error occurs when trying to download a playlist. Previously, songs were added to Progress. But now I get an error before it's added to Progress. `[2023-05-23 20:07:51,966 :: gui.main_ui :: gui\mainui.py -> 574:__get_search_results() :: INFO] -> Search clicked with value with url https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: gui.main_ui :: gui\mainui.py -> 619: __download_by_url() :: INFO] -> URL download clicked with value https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: utils :: utils\utils.py -> 124:regex_input_for_urls() :: INFO] -> Parsing url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7' [2023-05-23 20:07:51,968 :: utils :: utils\utils.py -> 227: get_url_data() :: INFO] -> Parse result for url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7'-> playlist, 2KC9BMH2fMqKbGcHV2lwwk [2023-05-23 20:07:51,977 :: spotutils :: utils\spotify.py -> 28: get_playlist_data() :: INFO] -> Get playlist dump for '2KC9BMH2fMqKbGcHV2lwwk' [2023-05-23 20:07:52,434 :: runtimedata :: runtimedata.py -> 51: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 192, in run File "utils\spotify.py", line 31, in get_playlist_data File "utils\spotify.py", line 84, in sanitize_data AttributeError: 'dict' object has no attribute 'replace'`
Author
Owner

@casualsnek commented on GitHub (May 23, 2023):

An error occurs when trying to download a playlist.

Previously, songs were added to Progress. But now I get an error before it's added to Progress.

[2023-05-23 20:07:51,966 :: gui.main_ui :: gui\mainui.py -> 574:__get_search_results() :: INFO] -> Search clicked with value with url https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: gui.main_ui :: gui\mainui.py -> 619: __download_by_url() :: INFO] -> URL download clicked with value https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: utils :: utils\utils.py -> 124:regex_input_for_urls() :: INFO] -> Parsing url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7' [2023-05-23 20:07:51,968 :: utils :: utils\utils.py -> 227: get_url_data() :: INFO] -> Parse result for url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7'-> playlist, 2KC9BMH2fMqKbGcHV2lwwk [2023-05-23 20:07:51,977 :: spotutils :: utils\spotify.py -> 28: get_playlist_data() :: INFO] -> Get playlist dump for '2KC9BMH2fMqKbGcHV2lwwk' [2023-05-23 20:07:52,434 :: runtimedata :: runtimedata.py -> 51: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 192, in run File "utils\spotify.py", line 31, in get_playlist_data File "utils\spotify.py", line 84, in sanitize_data AttributeError: 'dict' object has no attribute 'replace'

Should be fixed now !

<!-- gh-comment-id:1559247809 --> @casualsnek commented on GitHub (May 23, 2023): > An error occurs when trying to download a playlist. > > Previously, songs were added to Progress. But now I get an error before it's added to Progress. > > `[2023-05-23 20:07:51,966 :: gui.main_ui :: gui\mainui.py -> 574:__get_search_results() :: INFO] -> Search clicked with value with url https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: gui.main_ui :: gui\mainui.py -> 619: __download_by_url() :: INFO] -> URL download clicked with value https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7 [2023-05-23 20:07:51,967 :: utils :: utils\utils.py -> 124:regex_input_for_urls() :: INFO] -> Parsing url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7' [2023-05-23 20:07:51,968 :: utils :: utils\utils.py -> 227: get_url_data() :: INFO] -> Parse result for url 'https://open.spotify.com/playlist/2KC9BMH2fMqKbGcHV2lwwk?si=6e1787acc3884ef7'-> playlist, 2KC9BMH2fMqKbGcHV2lwwk [2023-05-23 20:07:51,977 :: spotutils :: utils\spotify.py -> 28: get_playlist_data() :: INFO] -> Get playlist dump for '2KC9BMH2fMqKbGcHV2lwwk' [2023-05-23 20:07:52,434 :: runtimedata :: runtimedata.py -> 51: handle_exception() :: CRITICAL] -> Uncaught exception Traceback (most recent call last): File "worker\utility.py", line 192, in run File "utils\spotify.py", line 31, in get_playlist_data File "utils\spotify.py", line 84, in sanitize_data AttributeError: 'dict' object has no attribute 'replace'` Should be fixed now !
Author
Owner

@ghost commented on GitHub (May 23, 2023):

It worked!
thank you

<!-- gh-comment-id:1559277945 --> @ghost commented on GitHub (May 23, 2023): It worked! thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/onthespot#48
No description provided.