#39 Playlist error on Youtube when playlist name contains encoding char

Closed
opened 2 years ago by LecygneNoir · 0 comments
Owner

When uploading a video and trying to add it to a existing playlist, the compare function failed if the playlist contains a encoding char.

Example error with a à:

UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if playlist["snippet"]['title'] == playlist_name:

Error is in lib/yt_upload.py on line 171.

Should test if encoding to utf8 as done in peertube lib solve the problem.

When uploading a video and trying to add it to a existing playlist, the compare function failed if the playlist contains a encoding char. Example error with a `à`: ``` UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if playlist["snippet"]['title'] == playlist_name: ``` Error is in `lib/yt_upload.py` on line `171`. Should test if encoding to utf8 as done in peertube lib solve the problem.
LecygneNoir added the
bug
label 2 years ago
LecygneNoir added the
Work in Progress
label 2 years ago
LecygneNoir closed this issue 1 year ago
LecygneNoir removed the
Work in Progress
label 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.