As you can see from the first screenshot, it would be a right royal pain to have to count the covers manually. (Imagine if there were more. Hundreds, even!) But I now realise that my feature request could work just as well as an action. D'oh!
I'm pretty sure I sent you an action called Artwork Count which you run by right clicking on the image well (the large one). The action is on the Artwork Actions submenu.
https://2manyrobots.com/actions/Artwork-Count.zip
The Artwork Count action will give you the number of unique images across all loaded files.
I think a shorthand version would be...
Assuming everything that's currently loaded in Yate is selected...
Count how many cover images are loaded...
Count how many source folders are holding all the tracks...
Make sure they agree.
Well I can tell you that every track in a folder has the same image and that there is only one. I can also tell you how many jpg images are in each folder (although there is no way to tell if it represents the same image in the files).
(A bonus would be to know that if they don't agree, which folders are the ones without a cover image that's being used by the app.)
This is easy.
Earlier on I processed a batch of 77 albums & one of them had a cover image that was called "Absolution.jpg" & not "Absolution_Cover.jpg". Because I use the action you wrote which looks in each source folder for "cover.jpg" & imports that image, anything that is absent or that differs from that pattern does not get imported. So, yes, there was an image in the folder but it hadn't been imported. Which I think means that Yate can't compare the number of loaded images with the images in the folders, as that would (in theory) always be the same but wouldn't solve my issue. It would have to compare imported images with containing folders (I think).
Absolution.jpg was not processed as that's not what you asked for. You asked me to look for images named text_Cover.jpg. There is no way Yate does image compares. It can tell if two images are defined by exactly the same bytes which is quite different from two images looking identical. Yate knows what's in the loaded files ... it can also read the folder contents of any directory.
I've noticed that if I have a box set of albums & each album has a separate cover image in the folder (usually numbered to match the folder number), if all the cover images are the same image just with a different name, Yate knows that they are identical & will only show me one cover, even when all the albums are selected.
True by design. Yate does not care what folder contains a track. Imaging loading 500 tracks all with the same image and having to look at 500 images in the artwork panel. If you change any of the metadata on an artwork item (eg. the description), Yate will display the images individually (even though they are the same) ... again as designed.
I'm not sure if that would be an issue for this action? In the set of folders shown in the screenshot, you'll notice that there are 4 different versions of the album The Defectors. Three of them have the entire audio-book as one track & one of them has it as chapters. All four of them use the same cover image with a name that reflects the version of the album they're for.
I suppose my point is that for this action to work, it has to be able to tell that 120 identical images with different names, one in each folder, will correspond to 120 folders. I just have no idea if that's an issue or not.
Does this make sense?
Yes but it's no an issue. What's displayed and what Yate knows are in the files is two separate things.
Let's assume the following:
- you want to ensure that all the tracks in a given folder have the same artwork items.
- You want to make sure that for every folder represented by the loaded files, there is the same number of jpg files in the folder as in the files in the folder. If there can be additional image files in a folder, let me know as I'll need some method of associating the images with those contained in the file. The filename of an image in the filesystem means nothing to Yate. If there can be additional images should I only match _Cover.jpg files?
- if either of the above tests fail ... you want to know where.
Let me know about the number of images in each folder and I'll knock off an action.
|