Calculate Cover Size 1.7 - Updated 23/10/2012

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

Postby trixmoto » Sat Jun 16, 2012 8:57 pm

No idea, sorry. I've added it to my list to investigate though.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

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

Postby scottycope » Tue Jun 19, 2012 12:22 am

Thanks for the update. I didn't see your post go to the next page and was beginning to feel left out. I appreciate your response. Please let me know if your investigation becomes fruitful as this script will do wonders for my organization.

Thanks again!
scottycope
 
Posts: 16
Joined: Sun May 27, 2012 11:47 pm

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

Postby PatMcQ » Tue Jul 10, 2012 1:40 am

Groovy script. Build it and they will come!

Since this script is strictly for utility (cleaning up the library art tags) and the data has no permanent value in the track tag, I don't want to alter the file and file's timestamp for it. Besides relying on timestamps for library maintenance and harddrive backups, unnecessarily altering a track file increases the odds (slim as that may be) that the file gets corrupted. Album art resolution is already stored in the Album Art tag and thus this script really should only be writing to the MM database. If the database gets corrupted for some other reason and you lose the temporary album art resolution data generated by this script, no big deal because you have to re-run it anyway, whenever you're editing album art.

Summary: I suggest storing this "resolution" data in the MM databse only WITHOUT having to disable the MM options "Update tags when editing properties" and "Modify timestamp when updating properties", as those are indespensible options that I don't what to forget to re-enable. And the script should finish much quicker if it's not writing to each of the track files.
PatMcQ
 
Posts: 24
Joined: Wed Jan 09, 2008 5:00 am
Location: Oregon

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

Postby MMuser2011 » Tue Jul 10, 2012 1:56 am

PatMcQ wrote:Summary: I suggest storing this "resolution" data in the MM databse only WITHOUT having to disable the MM options "Update tags when editing properties" and "Modify timestamp when updating properties", as those are indespensible options that I don't what to forget to re-enable. And the script should finish much quicker if it's not writing to each of the track files.
The script should respect the setting "Modify timestamp when updating properties" from MM4. I don't want to set it for every add-on or script separately.
I would vote +1 for the option:
a) Write to MM.DB and track
b) Write to MM.DB only
Magic Nodes v4.2 (2011-07-01) Album Art Tagger v4.9 (2011-02-27)
ExternalTools v1.4 (2011-05-09) MusicBrainz NGS + AcoustId Tagger v1.25 (2012-01-29)
Calculate Cover Size v1.5 (2010-05-03) RegExp Find & Replace v4.3 (2011-07-06)
MMuser2011
 
Posts: 525
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

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

Postby trixmoto » Tue Jul 10, 2012 10:32 pm

At the moment the way the script works is that it updates the database for each track individually as it loops through, and then also adds the changed tracks to a list. At the end of the loop, the script calls "UpdateAll" on the list, which is what uses your settings to determine whether or not to update the files as well. I could easily add an option in to not call this final "UpdateAll".

In the meantime you could easily comment out the line, which is line 385, by adding an apostrophe at the front...
Code: Select all
' Call changelist.UpdateAll()
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby trixmoto » Thu Jul 12, 2012 6:25 am

New version (1.6) is now available to download from my website. Changes includes...

- Added option to only store to database
- Fixed "Width x Height" not working with other options
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby Vyper » Thu Jul 12, 2012 6:58 am

There seems to be an issue with your site at the moment.
Stop Button Freak
Vyper
 
Posts: 845
Joined: Tue May 23, 2006 5:53 pm

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby trixmoto » Thu Jul 12, 2012 7:35 am

Yes, there is. My host are currently working to resolve it. Hopefully it'll be back up soon!
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby Vyper » Fri Jul 13, 2012 7:00 am

It's baaack! :D
Stop Button Freak
Vyper
 
Posts: 845
Joined: Tue May 23, 2006 5:53 pm

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby vampire0slayer6969 » Sat Sep 01, 2012 6:37 pm

Am a little confuse in how this scripts works....
can you tell me how it work step by step
I got it to go in MM but just not sure how to get my covers all the same size...
vampire0slayer6969
 
Posts: 11
Joined: Sat Nov 05, 2011 1:52 am

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby MMuser2011 » Sun Sep 02, 2012 4:06 am

This script doesn't change your covers. It "only" calculate the size (height, width) and write the numbers to a custom field in the format you choose. It does not adjust the cover itself in any way.
Magic Nodes v4.2 (2011-07-01) Album Art Tagger v4.9 (2011-02-27)
ExternalTools v1.4 (2011-05-09) MusicBrainz NGS + AcoustId Tagger v1.25 (2012-01-29)
Calculate Cover Size v1.5 (2010-05-03) RegExp Find & Replace v4.3 (2011-07-06)
MMuser2011
 
Posts: 525
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby Nanya » Wed Oct 03, 2012 8:46 pm

Think I may have found a bug...
If you have "don't populate tracks without cover art" checked, the script will only work with "Width x Height" and "Total; W x H".
With much trepidation, I rolled up my sleeves and delved into the code (it's my first time working with MM scripting). The problem seems to be line 316 which reads:

Code: Select all
If (ipop) And (res > 0) And (act <> "") Then


This should probably be either
Code: Select all
If (ipop) And ((res > 0) Or (act <> "")) Then
or even
Code: Select all
If (ipop) And (res > 0) Then


Checking for "act" is superfluous, you can rely on "cnt" (and therefore "res") even in Cases 7 and 8.
Last edited by Nanya on Wed Oct 03, 2012 10:28 pm, edited 2 times in total.
Nanya
 
Posts: 21
Joined: Wed Oct 03, 2012 8:04 pm

Re: Calculate Cover Size 1.6 - Updated 12/07/2012

Postby trixmoto » Wed Oct 03, 2012 10:03 pm

Thanks, I'll take a look and fix this in the next version.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Calculate Cover Size 1.7 - Updated 23/10/2012

Postby trixmoto » Mon Oct 22, 2012 5:23 pm

New version (1.7) is now available to download from my website. I have fixed the "Don't populate..." option not working in some modes.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Previous

Return to Need Help with Addons?

Who is online

Users browsing this forum: Bing [Bot] and 38 guests