diff --git a/changelog/0.1.1.md b/changelog/0.1.1.md index c89ec39..0e8f6bd 100644 --- a/changelog/0.1.1.md +++ b/changelog/0.1.1.md @@ -2,3 +2,4 @@ - Updated Jellyfin item fetching logic to skip items that are not `Audio`, `Episode`, or `Movie` types, preventing errors when unsupported media types are encountered - Updated Jellyfin image fetching logic to use `ParentId` for episodes and music tracks to ensure correct artwork is displayed in Discord Rich Presence +- Added `coloredlogs` dependency for improved logging output diff --git a/main.py b/main.py index 9eb4047..6268b3e 100644 --- a/main.py +++ b/main.py @@ -2,12 +2,11 @@ from discord.rpc import DiscordRPC from jellyfin.api_client import JellyfinApiClient from jellyfin.utils import to_rpc_payload from settings import settings +import coloredlogs import logging import time -logging.basicConfig( - level=logging.INFO, - format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') +coloredlogs.install(level=logging.INFO, fmt='%(asctime)s - %(name)s - %(levelname)s - %(message)s') discordRPC = DiscordRPC() jellyfinApiClient = JellyfinApiClient() diff --git a/requirements.txt b/requirements.txt index 44ce05a..5c947e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ getmac==0.9.5 pypresence==4.6.1 pydantic==2.12.5 pydantic-settings==2.12.0 +coloredlogs==15.0.1