From c2545b871fc5ee2ae784773daa5d2bf2023e7ddd Mon Sep 17 00:00:00 2001 From: Joakim Holm Date: Fri, 5 May 2023 12:04:59 +0200 Subject: [PATCH] Small changes - Fix config to load source configuration correctly - Add a newline in readme to be more readable --- README.md | 1 + grawlix/config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dbbd7b8..a601e3a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ![GitHub top language](https://img.shields.io/github/languages/top/jo1gi/grawlix) ![License](https://img.shields.io/github/license/jo1gi/grawlix) [![Donate using Ko-Fi](https://img.shields.io/badge/donate-kofi-00b9fe?logo=ko-fi&logoColor=00b9fe)](https://ko-fi.com/jo1gi) + CLI ebook downloader ## Supported services diff --git a/grawlix/config.py b/grawlix/config.py index 4599fea..ce73133 100644 --- a/grawlix/config.py +++ b/grawlix/config.py @@ -33,7 +33,7 @@ def load_config() -> Config: else: config_dict = {} sources = {} - if "source" in config_dict: + if "sources" in config_dict: for key, values in config_dict["sources"].items(): sources[key] = SourceConfig ( username = values.get("username"),