mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-21 21:17:20 +00:00
Fix 'invalid byte sequence' error when subscribing to playlists
This commit is contained in:
parent
4782a67038
commit
157c4c3e98
@ -270,7 +270,7 @@ end
|
||||
|
||||
def subscribe_playlist(user, playlist)
|
||||
playlist = InvidiousPlaylist.new({
|
||||
title: playlist.title.byte_slice(0, 150),
|
||||
title: playlist.title.chars[0, 150].join,
|
||||
id: playlist.id,
|
||||
author: user.email,
|
||||
description: "", # Max 5000 characters
|
||||
|
Loading…
Reference in New Issue
Block a user