Update src/invidious/routes/playlists.cr

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
syeopite 2021-09-26 21:55:25 +00:00 committed by syeopite
parent 1adcac175e
commit 88ad7c8d8d
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

View File

@ -245,7 +245,7 @@ module Invidious::Routes::Playlists
if query
begin
search_query, count, items, operators = process_search_query(query, page, user, region: nil)
videos = items.select(SearchVideo).map { |item| item.as(SearchVideo) }
videos = items.select(SearchVideo).map(&.as(SearchVideo))
rescue ex
videos = [] of SearchVideo
count = 0