From 2fd59ac1ef6c9ed7721c3ba1ada6188d9337d86c Mon Sep 17 00:00:00 2001 From: nathom Date: Thu, 1 Jul 2021 16:45:40 -0700 Subject: [PATCH] Fix #112 Signed-off-by: nathom --- rip/config.py | 3 +++ streamrip/media.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rip/config.py b/rip/config.py index 2c2fede..110a0e7 100644 --- a/rip/config.py +++ b/rip/config.py @@ -86,6 +86,9 @@ class Config: os.makedirs(CONFIG_DIR, exist_ok=True) shutil.copy(self.default_config_path, self._path) + self.load() + self.file["downloads"]["folder"] = DOWNLOADS_DIR + self.save() def load(self): """Load infomation from the config files, making a deepcopy.""" diff --git a/streamrip/media.py b/streamrip/media.py index ce7bbaa..a162026 100644 --- a/streamrip/media.py +++ b/streamrip/media.py @@ -107,7 +107,7 @@ class Track: logger.debug("Cover url: %s", u) self.cover_url = u - def load_meta(self): + def load_meta(self, **kwargs): """Send a request to the client to get metadata for this Track. Usually only called for single tracks and last.fm playlists. @@ -672,7 +672,7 @@ class Video: self.explicit = kwargs.get("explicit", False) self.tracknumber = kwargs.get("tracknumber", None) - def load_meta(self): + def load_meta(self, **kwargs): """Given an id at contruction, get the metadata of the video.""" resp = self.client.get(self.id, "video") self.title = resp["title"]