Fix 'invalid byte sequence' error when subscribing to playlists

This commit is contained in:
Dmitry Sandalov 2024-08-28 23:54:31 +02:00
parent 4782a67038
commit 157c4c3e98
No known key found for this signature in database
GPG Key ID: 718627D28520CA65

View File

@ -270,7 +270,7 @@ end
def subscribe_playlist(user, playlist) def subscribe_playlist(user, playlist)
playlist = InvidiousPlaylist.new({ playlist = InvidiousPlaylist.new({
title: playlist.title.byte_slice(0, 150), title: playlist.title.chars[0, 150].join,
id: playlist.id, id: playlist.id,
author: user.email, author: user.email,
description: "", # Max 5000 characters description: "", # Max 5000 characters