-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Add track shuffle option to album posters (#21)
- Added shuffle to `get_album` - Fixed `ImagePathValidator` by resolving path - Added `conf.py` for easier config access - Cleaned up Beatprints CLI by removing unnecessary code - Fixed issue with cover image not showing up on the poster when it should
- Loading branch information
Showing
10 changed files
with
267 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .conf import * | ||
from .exutils import * | ||
from .validate import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
import toml | ||
import platform | ||
|
||
# Determine the config path based on the platform | ||
config_dir = ( | ||
os.getenv("APPDATA") | ||
if platform.system() == "Windows" | ||
else os.path.expanduser("~/.config") | ||
) | ||
|
||
config_path = os.path.join(str(config_dir), "BeatPrints", "config.toml") | ||
|
||
with open(config_path) as config: | ||
config = toml.load(config) | ||
|
||
POSTERS_DIR = config["general"]["output_directory"] | ||
SEARCH_LIMIT = config["general"]["search_limit"] | ||
CLIENT_ID = config["credentials"]["client_id"] | ||
CLIENT_SECRET = config["credentials"]["client_secret"] |
Oops, something went wrong.