about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/storage/video_database/setters.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/storage/video_database/setters.rs b/src/storage/video_database/setters.rs
index ec5a5e1..42875ce 100644
--- a/src/storage/video_database/setters.rs
+++ b/src/storage/video_database/setters.rs
@@ -204,17 +204,9 @@ pub async fn set_video_options(
 }
 
 pub async fn add_video(app: &App, video: Video) -> Result<()> {
-    let parent_subscription_name = if let Some(subs) = video.parent_subscription_name {
-        subs
-    } else {
-        "NULL".to_owned()
-    };
+    let parent_subscription_name = video.parent_subscription_name;
 
-    let thumbnail_url = if let Some(thum) = video.thumbnail_url {
-        thum.to_string()
-    } else {
-        "NULL".to_owned()
-    };
+    let thumbnail_url = video.thumbnail_url.map(|val| val.to_string());
 
     let status = video.status.as_db_integer();
     let status_change = if video.status_change { 1 } else { 0 };