shemanaev / jellyfin-plugin-media-cleaner

Automatically delete played media files after specified amount of time.
MIT License
71 stars 1 forks source link

[Feature]: better episode identification in logs #37

Closed NicolaSmaniotto closed 6 months ago

NicolaSmaniotto commented 7 months ago

Describe the feature you'd like added

Logs should print the series season name as well as the episode title, something like Series | Season | Episode.

Additional context

Currently, only the name of the specific item is used, which creates ambiguous lines such as:

[Deb] ItemsAdapter: "Episode 3" played by "nicola" (01/07/2024 11:40:41)
[War] ItemsAdapter: "Episode 1" (ea53f049-50d9-e062-7361-106185bd3eca) marked as played but has not date
[Inf] MediaCleanupTask: (Season) "Season 1" will be deleted because expired for: nicola (01/01/2024 22:13:03)

Since many series don't have specific season or episode names, these logs aren't very useful, as it is not clear which items they refer to.

It would be better to include also series and season information, for example:

[Deb] ItemsAdapter: "Series A | Season 2 | Episode 3" played by "nicola" (01/07/2024 11:40:41)
[War] ItemsAdapter: "Series D | Season 4 | Episode 1" (ea53f049-50d9-e062-7361-106185bd3eca) marked as played but has not date
[Inf] MediaCleanupTask: (Season) "Series B | Season 1" will be deleted because expired for: nicola (01/01/2024 22:13:03)