Calculate Cover Size 1.7 - Updated 23/10/2012

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

Peke
Posts: 17446
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by Peke »

I would rather say that he knows Monkey Business ;) Nice update.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Dreadlau
Posts: 1967
Joined: Sun Nov 25, 2007 6:49 am

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by Dreadlau »

Hi Trixmoto.

I'm running the script on all my files.
But I forgot that some of them already had been analyzed by your script.
Will the script overwrite previous values with the new ones.
I ask this because I already changed the artwork in some of them.

Thank you
Seven Ultimate X64 SP1 / Sansa Clip 2go (with RockBox)
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by trixmoto »

Yes, this script will recalculate and overwrite existing values.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Dreadlau
Posts: 1967
Joined: Sun Nov 25, 2007 6:49 am

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by Dreadlau »

Thank you.

And thank you for the script :)
Seven Ultimate X64 SP1 / Sansa Clip 2go (with RockBox)
MMuser2011
Posts: 1308
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by MMuser2011 »

Thanks for this great script, trixmoto!

A few questions:
a) This script works with MM4 too? There are no built-in cover art informations in MM4, right?
b) This script doesn't write anything back to the id3tags of the song, only to the MM database?
c) After modification on the cover art of a song, this will NOT be detected through the scan process (INS) from MM. We have to run the script again, right?
d) What happens to the size calculation, if the song has multiple covers (ie front, back)
Magic Nodes v4.3.3 (2018-10-03) last free version SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.4.9 (2018-10-03) last free version
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by trixmoto »

a) As far as I know, yes, although I've not tried it myself. It should be forward compatible though.
b) It writes back to the field in the database that you specify - depending on your MM settings this may or may not be one which is stored in the file's tags.
c) No, the script is never automatically triggered - you would need to run it manually.
d) This depends on the mode that's running, sometimes it's total, sometimes it's average - the script should make it clear though.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
gege
Posts: 866
Joined: Tue Sep 05, 2006 2:10 pm
Location: Brazil

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by gege »

trixmoto wrote:a) As far as I know, yes, although I've not tried it myself. It should be forward compatible though.
Yes, it DOES work. I've been using it with MM4 since the early betas.
MMuser2011
Posts: 1308
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by MMuser2011 »

Did you know that after ~8000 tracks, the script stop working with this error:
"Thread creation error: Not enough memory available for this command"
(rough translation for my original german error message:
"Thread creation error: Für diesen Befehl ist nicht genug Speicher verfügbar"

I have to kill MM4 with the taskmanager and start again with the next ~8000 tracks. 8)
Magic Nodes v4.3.3 (2018-10-03) last free version SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.4.9 (2018-10-03) last free version
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by trixmoto »

I tested it with over 20,000 when I wrote it for MM3, but I guess all computers have a memory allocation limit.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
MMuser2011
Posts: 1308
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by MMuser2011 »

trixmoto wrote:all computers have a memory allocation limit.
Where can I check/set this value for Windows 7?
Magic Nodes v4.3.3 (2018-10-03) last free version SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.4.9 (2018-10-03) last free version
MMuser2011
Posts: 1308
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by MMuser2011 »

Another question:
If I would write 'your' tag field for the calculated Cover Size
COMMENT SONGS-DB_CUSTOM1
with a 3rd party tag program, would Mediamonkey import it to its database on the next library (re-)scan?
Magic Nodes v4.3.3 (2018-10-03) last free version SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.4.9 (2018-10-03) last free version
Vyper
Posts: 845
Joined: Tue May 23, 2006 5:53 pm

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by Vyper »

MMuser2011 wrote:
trixmoto wrote:all computers have a memory allocation limit.
Where can I check/set this value for Windows 7?
Click start and type in:

system information

:)
Stop Button Freak
MMuser2011
Posts: 1308
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by MMuser2011 »

Could anyone tell me, how I can adjust the sort order for the column "Cover size" (as I labeled the Custom-Field1)?
Actually I get the following sort order:
...
100x140
100x140
1024x1024
102x102
105x105
105x94
1064x1064
106x106
1074x1517
107x105
....
How can I tell MM that the content of this column should be handled as numbers, not as text?
Magic Nodes v4.3.3 (2018-10-03) last free version SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.4.9 (2018-10-03) last free version
Lowlander
Posts: 56465
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by Lowlander »

You can't.
scottycope
Posts: 24
Joined: Sun May 27, 2012 11:47 pm

Re: Calculate Cover Size 1.5 - Updated 03/05/2010

Post by scottycope »

Hi everyone,

I know this is an older thread but I just installed this script today and went to run it on a few albums. I picked Width x Height, stored in Custom 1, and pad 8 characters. I also checked Include images in tags (all my albums should have cover art stored in tags) and to not populate tracks without cover art.

However, when I go to run the script, nothing is written to the Custom 1 field. Yet, if I pick option Total; W x H, values are populated in my selected field.

Any idea why the plain old Width x Height option is not populating my selected field?

Any help is appreciated!

Thanks,
Scott
Post Reply