rssVideos: Smol fixes

This commit is contained in:
Geoffrey Frogeye 2022-04-02 20:53:06 +02:00
parent 224345c04d
commit 0bb54e2455
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -322,7 +322,7 @@ class RVElement:
self.clean_file(".", self.basename) self.clean_file(".", self.basename)
def clean(self) -> None: def clean(self) -> None:
if self.is_video: if self.is_researched and self.is_video:
self.undownload() self.undownload()
log.info(f"Removing gone metadata: {self.sid}*") log.info(f"Removing gone metadata: {self.sid}*")
self.clean_file(self.parent.METADATA_FOLDER, self.sid) self.clean_file(self.parent.METADATA_FOLDER, self.sid)
@ -473,7 +473,8 @@ class RVDatabase:
@property @property
def ytdl_opts(self) -> dict: def ytdl_opts(self) -> dict:
# Get user/system options # 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 return ydl_opts
@property @property