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