Calculate Cover Size 1.7 - Updated 23/10/2012

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Peke
Posts: 11043
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

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

Post by Peke » Sat Jul 10, 2010 7:16 pm

I would rather say that he knows Monkey Business ;) Nice update.
Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

Dreadlau
Posts: 1967
Joined: Sun Nov 25, 2007 6:49 am

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

Post by Dreadlau » Fri Nov 12, 2010 1:57 pm

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: Barton, UK
Contact:

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

Post by trixmoto » Fri Nov 12, 2010 3:09 pm

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.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

Dreadlau
Posts: 1967
Joined: Sun Nov 25, 2007 6:49 am

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

Post by Dreadlau » Fri Nov 12, 2010 3:17 pm

Thank you.

And thank you for the script :)
Seven Ultimate X64 SP1 / Sansa Clip 2go (with RockBox)

MMuser2011
Posts: 1205
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

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

Post by MMuser2011 » Thu Jan 26, 2012 7:27 am

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.2 (2011-07-01) 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.3 (2011-07-06)

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

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

Post by trixmoto » Thu Jan 26, 2012 1:12 pm

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.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

gege
Posts: 858
Joined: Tue Sep 05, 2006 2:10 pm
Location: Brazil

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

Post by gege » Thu Jan 26, 2012 1:36 pm

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: 1205
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

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

Post by MMuser2011 » Fri Jan 27, 2012 5:16 pm

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.2 (2011-07-01) 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.3 (2011-07-06)

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Barton, UK
Contact:

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

Post by trixmoto » Sat Jan 28, 2012 5:32 am

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.
Send me BTC: 34VQPVsf9mCeR4nfhFvvBYZqQ7LkqNZ8Mn
Send me LTC: 3P1mzrfbyscdhbxRpXLgKz7tufGAU3SrEG
Send me DOGE: 9xPpYSqgF7P5yQiqvE1VqWb4UjxVCCLFJ6
Check out these great cryptocurrency faucets... BTC / LTC / DOGE

MMuser2011
Posts: 1205
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

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

Post by MMuser2011 » Sat Jan 28, 2012 6:37 am

trixmoto wrote:all computers have a memory allocation limit.
Where can I check/set this value for Windows 7?
Magic Nodes v4.2 (2011-07-01) 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.3 (2011-07-06)

MMuser2011
Posts: 1205
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

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

Post by MMuser2011 » Sat Jan 28, 2012 6:08 pm

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.2 (2011-07-01) 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.3 (2011-07-06)

Vyper
Posts: 845
Joined: Tue May 23, 2006 5:53 pm

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

Post by Vyper » Sun Jan 29, 2012 9:06 am

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: 1205
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

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

Post by MMuser2011 » Sat May 19, 2012 9:44 am

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.2 (2011-07-01) 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.3 (2011-07-06)

Lowlander
Posts: 44261
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

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

Post by Lowlander » Sat May 19, 2012 12:40 pm

You can't.
Lowlander (MediaMonkey user since 2003)

scottycope
Posts: 24
Joined: Sun May 27, 2012 11:47 pm

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

Post by scottycope » Thu Jun 14, 2012 12:09 am

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