This commit is contained in:
parent
0d78c12c5a
commit
cb680bba76
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue