From 0bb54e2455ee2bbda6a248ace9e628d1ecfd8a46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sat, 2 Apr 2022 20:53:06 +0200 Subject: [PATCH] rssVideos: Smol fixes --- config/scripts/rssVideos | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/scripts/rssVideos b/config/scripts/rssVideos index b58f7bb..dff599c 100755 --- a/config/scripts/rssVideos +++ b/config/scripts/rssVideos @@ -322,7 +322,7 @@ class RVElement: self.clean_file(".", self.basename) def clean(self) -> None: - if self.is_video: + if self.is_researched and self.is_video: self.undownload() log.info(f"Removing gone metadata: {self.sid}*") self.clean_file(self.parent.METADATA_FOLDER, self.sid) @@ -473,7 +473,8 @@ class RVDatabase: @property def ytdl_opts(self) -> dict: # Get user/system options - _, _, _, ydl_opts = yt_dlp.parse_options() + _, _, _, ydl_opts = yt_dlp.parse_options([""]) + # Have to put a dummy option otherwise yt-dlp will use sys.argv return ydl_opts @property