Page 63 of 113

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Thu Dec 03, 2009 8:23 pm
by excetara2
Where do you download this script? I want to check it out.

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Thu Dec 03, 2009 9:51 pm
by Owyn

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Fri Dec 04, 2009 7:18 am
by trixmoto
chugger93 - and can see how this would seem easy, but trust me that performing that many lookups and caching that much data and allowing the user to easily select the one they want (not forgetting I calculate and display the real dimensions to help people choose which they want) is actually incredibly complicated, in a script which is already pretty complex. I have put it on my list though, and will attempt to work my magic! :)

excetara2 - all my scripts are on my website (until the script repository opens), click the link in my signature.

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Sat Dec 05, 2009 12:17 pm
by Bythor
Have a question that may be very stupid!
How do I set the Batch Limit variable?

I have looked all over the interface for it but can't seem to find it.
I have 1800 albuns that need cover and my PC comes to a crawl when I ran Batch Art Finer

thanks

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Sun Dec 06, 2009 12:18 am
by papaschtroumpf
Trixmoto, I just discovered MediaMonkey and this plug in and it seems to be just what the doctor ordered to put my audiobook collection in order.
I did find what I believe is a bug in the script however:

I want the album art to be placed in the same path as the album with the name "folder.jpg".

In theory setting the File Mask in the options to "<path>\folder" should do the trick but it doesn't work, instead the file is saved at the root of the drive with a name where backslashes in the path are replaced by dashes.
For example instead of:
D:\My_Music\Audiobooks\Agatha Christie\Marple - Sleeping Murder\folder.jpg
you get:
-My_Music-Audiobooks-Agatha Christie-Marple - Sleeping Murder-folder.jpg at the root of D:\

I don't know VB but have programmed in enough other languages that I was able to trace the problem to the line:
path = SDB.Tools.FileSystem.CorrectFilename(path)
This is intending to clean up the name of the album in case it looks like a path y replacing backslashes with a dash, but it's applied to path way too late in the process, at that point path already contains a real path. Rather than cleanup path you should c clean up oartist and oalbum individually.
Since I know none of my album name have a name that looks like a path, I simply commented the line aboe out and now the script does what I want it to do.

Browsing through the 60+ pages of this thread I noticed at least one user was complaining about the file being placed in the root of the drive, so it may be the same problem.

Let me know if you disagree with my analysis/fix or if you need extra info


Still absolutely love the fact that you wrote this tough, beats looking for album art manually!

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Sun Dec 06, 2009 5:17 am
by Owyn
@Bythor
Use Tools->Options->Library->BatchArtFinder Settings->Batch Limit

In my case I set the limit to 50,

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Mon Dec 07, 2009 5:19 am
by trixmoto
@papaschtroumpf - I have already fixed this in the next version...
trixmoto wrote: This means that in your "MediaMonkey.ini" file you have in your [FilenameMappings] section an entry like of "5C=2D". Removing this should give you the results you expect.

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Mon Dec 07, 2009 7:16 pm
by papaschtroumpf
can you explain what the different storage options are?
I want to save the image in the folder and not touch the tags.
I figured "Download only (don't tag)" was what I should use but it doesn't seem to be working right. It definitely touches the tag (I can even see the comment that the tag was added by the script), although it seems to add a blank image or broken tag.
If I rescan, MM now shows 2 images attached to that album: the blank one inserted by the script and the one it picked up from the folder. since the one from the script is first in the list and it's broken, it doesn't show. If I right click and Edit album art and remove it, then everything is fine.

any ideas?

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Mon Dec 07, 2009 7:38 pm
by papaschtroumpf
so I tried to follow the script, my storage option is equivalent to Storage=5.

Itried to find more info on the MM wiki and found the following:

Code: Select all

Property description
Where is the item stored (0=tag, 1=external file). 
so the built in API takes a 0 or 1 argument, whereas the script leaves Storage untouched (i.e 5-1 = 4 in my case) instead of 0/1. I'm not sure if there is a way to determine what the behavior is when SDBAlbumArtItem::ItemStorage is 4.

Maybe adding the following at the top of postDownload() would do the trick:

If Storage = 4 Then
sto = 1
End If

it would force external storage and not touch the link (I think)

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Mon Dec 07, 2009 7:50 pm
by papaschtroumpf
OK, looks like may have worked with the change above. trixmoto can you confirm it's the right way to go?

One more problem: the album art in the display is not updated until I quit MM (or maybe do a rescan?) Is there a way to force the database to rescan the picture for that one item (or maybe refresh the display for the whole current page). I don't have MM set to monitor the folder as my media folder is extremely large (350G) and a rescan takes a while.

I see
pics.UpdateDB

but that doesn't seem to cause a redraw, so the database object is updated, not its representation on the screen (it seems to be when you write the art to the track, but I don;t want to do this).


FYI the way I don't want to attach the file to each tag is that this is an audiobook collection and some of them were ripped in 2 minutes tracks, so some books easily sport over 500 tracks. Adding a picture to each track adds up into significant more storage on disk and on my backup.

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Tue Dec 08, 2009 12:06 am
by Guest
trixmoto wrote:@papaschtroumpf - I have already fixed this in the next version...
trixmoto wrote: This means that in your "MediaMonkey.ini" file you have in your [FilenameMappings] section an entry like of "5C=2D". Removing this should give you the results you expect.


where can we get this new version?

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Tue Dec 08, 2009 3:44 am
by trixmoto
@Guest - i'm still working on this version, it is not yet ready for release.

@papaschtroumpf - there is a known issue with the "download only" mode still updating the tags. Storage mode 5 is my scripts mode for downloading only and should never be passing into the tags (as that's . whole point of the mode). It's confusing however that you say this is the mode that you want and also that you want to update the track - if you want to update the track then select one of the tag modes!

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Tue Dec 08, 2009 5:32 pm
by Guest
trixmoto wrote:@Guest - i'm still working on this version, it is not yet ready for release.

@papaschtroumpf - there is a known issue with the "download only" mode still updating the tags. Storage mode 5 is my scripts mode for downloading only and should never be passing into the tags (as that's . whole point of the mode). It's confusing however that you say this is the mode that you want and also that you want to update the track - if you want to update the track then select one of the tag modes!

hope it comes out soon, im having so many issues with this one doing around 1600 albums, getting malformed url messages and such....

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Tue Dec 08, 2009 9:20 pm
by jsc315
I'm having a strange problem. Every time i try to install this and Genre finder I get a Instillation error every time I try to install. What am i doing wrong?

Re: Batch Art Finder 3.0 [MM2+3]

Posted: Tue Dec 08, 2009 9:37 pm
by nohitter151
jsc315 wrote:I'm having a strange problem. Every time i try to install this and Genre finder I get a Instillation error every time I try to install. What am i doing wrong?
http://www.mediamonkey.com/support/inde ... ticleid=59