Add more debug logging. Do not enable debug by default

This commit is contained in:
Luigi311
2022-12-19 14:07:56 -07:00
parent 59c6d278e3
commit 4066228e57
3 changed files with 9 additions and 2 deletions

View File

@@ -105,6 +105,11 @@ class Jellyfin:
and movie["MediaSources"] is not {}
):
logger(f"Jellyfin: Adding {movie['Name']} to {user_name} watched list", 3)
if "ProviderIds" in movie:
logger(f"Jellyfin: {movie['Name']} {movie['ProviderIds']} {movie['MediaSources']}", 3)
else:
logger(f"Jellyfin: {movie['Name']} {movie['MediaSources']['Path']}", 3)
# Create a dictionary for the movie with its title
movie_guids = {"title": movie["Name"]}