Page 3 of 7

Posted: Thu Oct 18, 2007 11:01 am
by gege
trixmoto
I have two wishes for this script:

1) Add support for Custom 4 and Custom 5 fields in MM3. I'm already using the other three...

2) Add support to store Dimensions of cover, like "500x500" or "300x300". I use only one artwork per track, but I know it will be tricky if there's more than one artwork. Maybe something like "300x300;945x945;1189x929" could be used for multiple artworks...

Posted: Thu Oct 18, 2007 3:41 pm
by trixmoto
Added to my list! I don't think I can do Custom4+5 yet because I don't think the scripting methods have been implemented by the devs yet.

Posted: Thu Jan 24, 2008 6:42 pm
by trixmoto
New version (1.3) now available to download from my website. Changes include...

- Fixed all artwork counted regardless of linked and tagged options
- Added option to store result in Custom4 and Custom5 fields
- Added option to list the dimensions of the images

Posted: Fri Jan 25, 2008 8:27 am
by gege
trixmoto wrote:New version (1.3) now available to download from my website. Changes include...
- Added option to store result in Custom4 and Custom5 fields
- Added option to list the dimensions of the images
Big thanks!!!!

Posted: Fri Jan 25, 2008 3:16 pm
by fizzjob
Thanks, trix, I can now make my "not square" Magic Node!

Code: Select all

Not Square|Filter:cast(substr(Songs.Custom4,5) as integer) != cast(substr(Songs.Custom4,1,3) as integer)\<Album Artist>\<Album>
woohoo!

Posted: Fri Jan 25, 2008 4:24 pm
by trixmoto
Nice work, glad I could help with that! :)

Posted: Tue May 27, 2008 7:51 pm
by Seeker
A suggestion - an option NOT to populate CustomX with 000000000 if there is no album art.

In doing backups, currently, running the script (yes, just the first time) will require EVERY FILE (25000 for me) to be backed up anew. It would be nice not to have to do them all - and only put a value in if there is art.

I'll live with it - but just a thought - thanks for a great script.

Posted: Wed May 28, 2008 3:44 am
by trixmoto
Nice idea - I'll add this to my list! :)

Posted: Sun Jun 01, 2008 10:49 pm
by Seeker
Hey trixmoto -

I wanted to use this to populate ONE field with BOTH total and widthxheight rather than use two fields.

I modified the script to have a new option (Total; WidthxHeight) that seems to work for all combinations. I also placed NOTES in the script to allow someone to make it (Somethingelse; WidthxHeight) with just two code line changes - others might want it, but not Total first.

Given I was analyzing your script, I also added (probably with stinky code, but it seems to work) the option to not populate CustomX if there is no album art.

I don't know your 'policy' on others changing your scripts, so just thought I'd mention it, and if you want to see it, let me know - if not that's fine too.

Take care.

Posted: Sun Jun 01, 2008 11:59 pm
by Seeker
I realized that 'not writing to an item with no album art' didn't do that much good if the tag is updated anyway - which is what the script does.

It took a while since I hadn't written a Mediamonkey script at all, but I now have a version that creates a changesonglist from the selectedsonglist based on whether a value was placed into the customx field. (Had to do it that way based on the very first 'hint and trick' in the Mediamonkey scripting hints so that the option "update tags when editing properties" works properly.)

Given I went to that trouble, I also now check to see if the CustomX field is CHANGED from before (in case one is just redoing a lot of them) and don't update the tag if nothing changes.

Saves a lot of time for me given I often do this in large quantities.

Same caveats as in the previous message.

Posted: Mon Jun 02, 2008 3:40 am
by trixmoto
Thanks for the PM, I'll take a look and see about getting your modifications released. :)

Posted: Mon Jun 02, 2008 4:06 am
by trixmoto
New version (1.4) is now available to download from my website. Changes include...

- Added option to show total and dimensions
- Added option to not store zero values
- Fixed only modified tracks are updated

This release was developed by 'Seeker' - thanks for your hard work!

Re: Calculate Cover Size 1.4 [MM2+3]

Posted: Tue Sep 16, 2008 12:51 pm
by danhackley
Interesting script, good work !

Question - all my album art is stored in the album folder as cover.jpg, cd.jpg, rear.jpg, etc. Is it possible to have a magicnode (or via a different method) which will list the folder.jpg images in order of size, so I can replace the small ones. I have 71,582 tracks in my library so would rather not run a script on all of these populating custom fields if possible. Many thanks!

Re: Calculate Cover Size 1.4 [MM2+3]

Posted: Tue Sep 16, 2008 2:05 pm
by Bex
Actually no! That's why Trixmoto developed this script!

Re: Calculate Cover Size 1.4 [MM2+3]

Posted: Tue Sep 16, 2008 2:42 pm
by Seeker
Well, although I did have to let it run overnight, (I have about 35000 tracks), I used this to populate Custom5 (which I renamed to CoverSize) - that's one of the reasons I use Size, Dimensions and made version 1.4

I DO use magicnodes to sort by Size. But yes, I had to run this to make a field that I could sort upon.

Just leave your computer on overnight and use this - then magicnode to your heart's content.

I recommend the field I developed - that way you can sort on the size, but also see if the size is due to multiple art pieces.