mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-28 05:54:52 -04:00
Add progress bar themes
This commit is contained in:
parent
9f79a47bb4
commit
96b15d9917
3 changed files with 25 additions and 7 deletions
|
@ -136,6 +136,10 @@ source = "qobuz"
|
|||
# on this one.
|
||||
fallback_source = "deezer"
|
||||
|
||||
[theme]
|
||||
# Options: "dainty" or "plain"
|
||||
progress_bar = "dainty"
|
||||
|
||||
[misc]
|
||||
# Check whether a newer version of streamrip is available when starting up
|
||||
check_for_updates = true
|
||||
|
|
|
@ -108,6 +108,9 @@ class RipCore(list):
|
|||
else:
|
||||
self.config = config
|
||||
|
||||
if (theme := self.config.file["theme"]["progress_bar"]) != TQDM_DEFAULT_THEME:
|
||||
set_progress_bar_theme(theme.lower())
|
||||
|
||||
def get_db(db_type: str) -> db.Database:
|
||||
db_settings = self.config.session["database"]
|
||||
db_class = db.CLASS_MAP[db_type]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue