fix(user/imports.cr): double header removal caused first video to be skipped

This commit is contained in:
ThatMatrix 2024-07-11 03:44:56 +02:00
parent 7eb166fd4d
commit 4a4e489447

View file

@ -47,7 +47,7 @@ struct Invidious::User
Invidious::Database::Playlists.update_description(playlist.id, description)
# Add each video to the playlist from the body content
csv_body = CSV.new(raw_body.strip('\n'), headers: true)
csv_body = CSV.new(raw_body.strip('\n'), headers: false)
csv_body.each do |row|
video_id = row[0]
if playlist