diff --git a/src/library/video.rs b/src/library/video.rs index 083b88f..d8535a8 100644 --- a/src/library/video.rs +++ b/src/library/video.rs @@ -106,13 +106,12 @@ impl Video { let vid_duration = get_vid_duration(v).unwrap(); if let Some(meta) = yt_meta::get_youtube_metadata(v) { - sqlx::query("INSERT INTO youtube_meta (id, title, description, uploader_name, uploader_id, duration, views, upload_date) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)") + sqlx::query("INSERT INTO youtube_meta (id, title, description, uploader_name, uploader_id, views, upload_date) VALUES ($1, $2, $3, $4, $5, $6, $7)") .bind(&meta.youtube_id().unwrap()) .bind(&meta.title()) .bind(&meta.description().unwrap()) .bind(&meta.uploader_name().unwrap()) .bind(&meta.uploader_id().unwrap()) - .bind(&meta.duration().unwrap()) .bind(&meta.views().unwrap()) .bind(&meta.upload_date()) .execute(&mut *tx).await.unwrap();