Plex-Image-Cleanup
Plex-Image-Cleanup copied to clipboard
only consider bloat images with the EXIF tag set by Kometa
Description
Edit to only consider bloat images with the EXIF tag set by Kometa exif_tags[0x04bc] == "overlay"
This will allow custom upload images to be kept, and only delete the actual "bloat" images created by Kometa when a new poster is generated.
three line snippet from the log file for operation report
, showing one file that is skipped (custom upload file):
[2024-10-09 01:00:59,117] [imagemaid.py:336] [DEBUG] | BLOAT FILE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\9\90c7a3c30a60d1150d94205109a5a2b74485cdf.bundle\Uploads\posters\36e4a268b6d4df0bc9f66aa775d3704a1eb44619 |
[2024-10-09 01:00:59,117] [imagemaid.py:336] [DEBUG] | IMAGE FILE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\a\ade61580dc88ae8181b9df68aba0b59d40c5a93.bundle\Uploads\posters\d2a12a4a004bcdb4b4269560f8ce868ceae9f6d9 does not have EXIF overlay tag and won't be considered. |
[2024-10-09 01:00:59,117] [imagemaid.py:336] [DEBUG] | BLOAT FILE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\a\eb03f784819ccf7eac36ecbe03bded317864837.bundle\Uploads\posters\e12984d3d6cdc86dc085a924b3bdbeb1c862f66c |
three line snippet from the log file for operation remove
, showing one file that is skipped (custom upload file):
[2024-10-09 01:32:24,708] [imagemaid.py:338] [TRACE] | REMOVE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\9\90c7a3c30a60d1150d94205109a5a2b74485cdf.bundle\Uploads\posters\36e4a268b6d4df0bc9f66aa775d3704a1eb44619 |
[2024-10-09 01:32:24,708] [imagemaid.py:338] [TRACE] | IMAGE FILE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\a\ade61580dc88ae8181b9df68aba0b59d40c5a93.bundle\Uploads\posters\d2a12a4a004bcdb4b4269560f8ce868ceae9f6d9 does not have EXIF overlay tag and won't be considered. |
[2024-10-09 01:32:24,708] [imagemaid.py:338] [TRACE] | REMOVE: \\fs2\docker\plex\Library\Application Support\Plex Media Server\Metadata\Movies\a\eb03f784819ccf7eac36ecbe03bded317864837.bundle\Uploads\posters\e12984d3d6cdc86dc085a924b3bdbeb1c862f66c |
Issues Fixed or Closed
- Fixes #82
Type of Change
Please delete options that are not relevant.
- [x] New feature (non-breaking change which adds functionality)
Checklist
- [x] My code was submitted to the develop branch of the repository.