add colored logs

This commit is contained in:
2025-12-10 02:50:17 +01:00
parent c3b5d7633a
commit 9242b02957
3 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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