Add Embedded Art support to fetchart plugin#6829
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6829 +/- ##
==========================================
- Coverage 74.92% 74.89% -0.04%
==========================================
Files 163 163
Lines 21174 21211 +37
Branches 3341 3347 +6
==========================================
+ Hits 15864 15885 +21
- Misses 4544 4557 +13
- Partials 766 769 +3
🚀 New features to boost your workflow:
|
|
Taking this to draft to do a little work to improve the test coverage. |
02b1a4f to
18cd2e7
Compare
Add `embedded` source to extract embedded art from files. Add `skip_embedded` option to detect embedded art and skip fetching from other sources (if extracting isn't the desired end state). If `skip_embedded=yes`, then files with embedded art are considered "done" and skipped by FetchArt. If the `embedded` source is enabled, then embedded artwork is always extracted. The two settings are independent of each other. Fix variable shadowing lint due to added import of `_utils.art`. Signed-off-by: Ross Williams <ross@ross-williams.net>
Add unit tests for Embedded source of FetchArt plugin. Add integration tests for FetchArt plugin's handling of files with embedded artwork. Signed-off-by: Ross Williams <ross@ross-williams.net>
Signed-off-by: Ross Williams <ross@ross-williams.net>
Two messages were emitted in the lowest-level helper functions, which meant that callers who expected a silent pass/fail result to validate whether art is contained in media files would spam the CLI with info-level messages. This commit moves the emission-site of the log messages one level up the call stack so that the messages are only emitted by a function that is called when the user requests that art is extracted and needs success/skip/failure logged to the CLI. Also add art extraction logging to fetchart. Signed-off-by: Ross Williams <ross@ross-williams.net>
18cd2e7 to
aac06ee
Compare
|
@snejus, this is ready whenever you have time to take a look. There are some test coverage places I'd like to address, but when investigating I found that more test harness refactoring around when plugins read their configuration (e.g. |
Description
Add
embeddedsource to extract embedded art from files. Addskip_embeddedoption to detect embedded art and skip fetching from other sources (if extracting isn't the desired end state).If
skip_embedded=yes, then files with embedded art are considered "done" and skipped by FetchArt. If theembeddedsource is enabled, then embedded artwork is always extracted. The two settings are independent of each other.Fixes #1130.
To Do