mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #260] Error whilst creating a new YT-Music Playlist #202
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JakobMei on GitHub (Feb 14, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/260
Hello there,
I really like this library and started developing a playlist-converter from different music services to YT-Music.
But when I want to create a new Playlist on YT-Music (whilst calling the function ytmusic.create_playlist(...)) I get an error like this one:
File "/Users/xxx/PycharmProjects/x/venv/lib/python3.9/site-packages/ytmusicapi/mixins/playlists.py", line 158, in create_playlist 'description': html_to_txt(description), # YT does not allow HTML tags File "/Users/xxx/PycharmProjects/x/venv/lib/python3.9/site-packages/ytmusicapi/helpers.py", line 73, in html_to_txt tags = re.findall("<[^>]+>", html_text) File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/re.py", line 241, in findall return _compile(pattern, flags).findall(string) TypeError: expected string or bytes-like objectIs this a known issue or am I the only one getting this? Error message isn't helping that well 😄
(btw wasnt calling the function with any html-tags, just a title, and privacy status "PUBLIC".)
Cheers and looking foward to an answer,
Jakob
@JakobMei commented on GitHub (Feb 14, 2022):
Okay found the mistake:
apparently you need to set an empty string as playlist description instead of a None-Value.
I'll close this issue.