mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
fix(user/imports.cr): double header removal caused first video to be skipped
This commit is contained in:
parent
7eb166fd4d
commit
4a4e489447
@ -47,7 +47,7 @@ struct Invidious::User
|
|||||||
Invidious::Database::Playlists.update_description(playlist.id, description)
|
Invidious::Database::Playlists.update_description(playlist.id, description)
|
||||||
|
|
||||||
# Add each video to the playlist from the body content
|
# 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|
|
csv_body.each do |row|
|
||||||
video_id = row[0]
|
video_id = row[0]
|
||||||
if playlist
|
if playlist
|
||||||
|
Loading…
Reference in New Issue
Block a user