fix
Some checks are pending
ci/woodpecker/push/build Pipeline is pending

This commit is contained in:
JMARyA 2024-12-14 03:49:24 +01:00
parent 0d78c12c5a
commit cb680bba76
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -106,13 +106,12 @@ impl Video {
let vid_duration = get_vid_duration(v).unwrap(); let vid_duration = get_vid_duration(v).unwrap();
if let Some(meta) = yt_meta::get_youtube_metadata(v) { 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.youtube_id().unwrap())
.bind(&meta.title()) .bind(&meta.title())
.bind(&meta.description().unwrap()) .bind(&meta.description().unwrap())
.bind(&meta.uploader_name().unwrap()) .bind(&meta.uploader_name().unwrap())
.bind(&meta.uploader_id().unwrap()) .bind(&meta.uploader_id().unwrap())
.bind(&meta.duration().unwrap())
.bind(&meta.views().unwrap()) .bind(&meta.views().unwrap())
.bind(&meta.upload_date()) .bind(&meta.upload_date())
.execute(&mut *tx).await.unwrap(); .execute(&mut *tx).await.unwrap();