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

Closed
opened 4 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 4 years ago
LecygneNoir added the
Work in Progress
label 4 years ago
LecygneNoir closed this issue 4 years ago
LecygneNoir removed the
Work in Progress
label 4 years 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.