Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Album Art Downloader XUI (Read 2063036 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Album Art Downloader XUI

Reply #1375
I'm not really sure what you mean by "stay in synch". Those three different windows do different things, and have their own independent settings. The only effect bunching them together as tabs would have would mean you could only see one of them at a time.

For point 2, this is for simplicity. If you are searching for cover.jpg, then it's a reasonable assumption that that's what you want your images saved as. For the situation you describe, try using "%preset%.jpg" as the file to search for, that match your existing cover.jpg files and save in the format you want.

The profiles idea is a good one. You might find that the Search First feature does what you need, but I'll keep the full profiles idea in mind for a future version.

Alex

Album Art Downloader XUI

Reply #1376
So after all this is what you wanted: three programs in one, only that you always start one, then start one of the others if you need them. Maybe the fact that I'm almost exclusively using the browser and that I was expecting to have the same set of settings is what made me a little bit confused. Thanks for the explanations!

PS: A switch to specifically start one of the three would be great!

Album Art Downloader XUI

Reply #1377
Maybe the fact that I'm almost exclusively using the browser and that I was expecting to have the same set of settings is what made me a little bit confused.
What same settings? Same set of settings as what? I still don't understand this. The File Browser should keep any settings you set for it, if something isn't being saved, please tell me exactly what setting it is and I'll look into it.

To start the file browser directly, the switch is /fileBrowser
If you want it to immediately start a scan of a specified folder, you can add that too, like: /fileBrowser "c:\music"
All the switches are documented, check under the Help menu.

Alex

 

Album Art Downloader XUI

Reply #1378
Can somebody with Regex experience see if they can create a VGMdb source script?  VGMdb is a database of video game music and it'd be really handy to have a working Album Art Downloader plugin that could utilize the site's search and artwork features.  I posted over on their forums but didn't get any responses.  I'd be willing to test if anybody is willing to give it a shot.

My original post over at VGMdb: http://vgmdb.net/forums/showthread.php?t=4845

Quote
I just downloaded a nifty little open source app for Windows called Album Art Downloader.  It's an easy-to-use program that lets you, yeah you guessed it, download album art for all your digital music files.  You can either search manually or it can scan a specific music folder or your foobar2000 library/playlists for albums that are missing artwork.  Not only that, but this thing lets you write custom search scripts so you can basically use any searchable web site as a source for the artwork.  Guess what I'm gonna ask next?  I need to know if it's possible for someone to write a script so we can use VGMdb as an artwork source within the program.

Here's a sample of one of the search scripts (for some site called MusicMight).  Can anyone decipher how it's getting the search results and displaying them within the program?  This would be so epic if someone got this to work.

Code: [Select]
import System
import System.Text.RegularExpressions
import AlbumArtDownloader.Scripts
import util

class MusicMight(AlbumArtDownloader.Scripts.IScript):
    Name as string:
        get: return "MusicMight"
    Version as string:
        get: return "0.3"
    Author as string:
        get: return "Alex Vallat"
    def Search(artist as string, album as string, results as IScriptResults):
        if String.IsNullOrEmpty(album):
            return //Only searching on album is supported

        album = StripCharacters("&.'\";:?!", album)
            
        //Retrieve the search results page
        searchResultsHtml as string = GetPage("http://www.musicmight.com/search?t=recording&q=" + EncodeUrl(album))
        
        matches = Regex("<a\\s[^>]*?href\\s*=\\s*'(?<url>[^']+)'[^>]*?>\\s*<img\\s[^>]+?src\\s*=\\s*'http://s3\\.amazonaws\\.com//mmimagesm/(?<img>[^']+)'[^>]*?>(?<title>.*?)</td>", RegexOptions.IgnoreCase | RegexOptions.Singleline).Matches(searchResultsHtml)
        
        if matches.Count == 0: //Try single page result
            matches = Regex("\"http://s3\\.amazonaws\\.com//mmimagelg/(?<img>[^\"]+)\"[^>]*?>.*?<h4><span id=\"artistTitle\">(?:(?:<[^>4]+>)(?<title>[^<]+)?)+</h4>", RegexOptions.IgnoreCase | RegexOptions.Singleline).Matches(searchResultsHtml)
        
        results.EstimatedCount = matches.Count
        
        for match as Match in matches:
            img = match.Groups["img"].Value
            title = ""
            for capture as Capture in match.Groups["title"].Captures:
                title += capture.Value
            title = title.Replace("<br />", "").Replace("</a>", "").Replace("&bull;", "-");

            url as string = null
            if match.Groups["url"].Success:
                url = "http://www.musicmight.com" + match.Groups["url"].Value
            
            results.Add("http://s3.amazonaws.com//mmimagesm/" + img, title, url, -1, -1, "http://s3.amazonaws.com//mmimagelg/" + img, CoverType.Front);

    def RetrieveFullSizeImage(fullSizeCallbackParameter):
        return fullSizeCallbackParameter;


Basically it looks like it goes to the search page http://vgmdb.net/search?q=blah and then parses out the results using Regex.  Once that Regex line kicks in, that's where I get lost, haha.  Maybe this is best for someone with Regex experience?

Here's an example of the search results within the program itself.  These results here are kinda questionable and pretty unorganized since I had every search site selected.  If we were to just use VGMdb for this same search, these results would be immaculate.  Note that you can either have the program show you these results and then you save each one manually OR it can just save the first result (for each type.. front, back, disc, etc) automatically in the folder you choose:

[a href="http://img204.imageshack.us/img204/8302/55875305.png" target="_blank"]


Thanks guys!

Album Art Downloader XUI

Reply #1379
Can somebody with Regex experience see if they can create a VGMdb source script?
Sure, we don't have anything specifically for game music at the moment, so it's a good addition. Unfortunately the artwork they have is all quite small, but it's better than nothing.

Please give this a try and let me know how you get on: vgmdb.boo

Alex

Album Art Downloader XUI

Reply #1380
All the images are user/editor-uploaded. Not all the images are small.

Album Art Downloader XUI

Reply #1381
Sure, we don't have anything specifically for game music at the moment, so it's a good addition. Unfortunately the artwork they have is all quite small, but it's better than nothing.


Actually most of their scans are hi-res, but you need to be logged in to see them.  If you're not logged in then you'll only see the smaller images.  There's no way to get the script to log itself into VGMdb, is there?

Please give this a try and let me know how you get on: vgmdb.boo


Woah, that was fast!  Tested it out using the Foobar Browser and it does work, sorta.  For some albums, I've noticed that if the Artist field is populated, then there won't be any search results in the Search window.  Clearing the Artist field and manually pressing Search again yields actual search results.

Also, since video game music albums often have multiple artists, it would be awesome if there was a way to somehow condense each result (in the Foobar Browser and the File Browser) to only show one result per album, not a separate album for every different artist on that particular album.  Check out the "2197" album in this screenshot for what I mean:


Album Art Downloader XUI

Reply #1382
Sorry for the double post but I found another potential bug.  Just came across an album that it can't find no matter what I type in for the search: Xenoblade Original Soundtrack.

Only two images get displayed when searching for "xenoblade" and they're both from Xenoblade Special Sound Track (a completely different CD).

Both CDs have a properly-named "Front" cover on the site so I'm not sure what would cause the OST one to not show up.  I'll see if I can replicate this issue with a different album..

Album Art Downloader XUI

Reply #1383
There's no way to get the script to log itself into VGMdb, is there?
Not really. What I could try to do is have marked spots in the script to easily add your own login details. Then, if you edit the script to provide those it will log itself in with those, otherwise it will just use the publicly available medium sized images. I'll look into that when I get a chance.

For some albums, I've noticed that if the Artist field is populated, then there won't be any search results in the Search window.  Clearing the Artist field and manually pressing Search again yields actual search results.
I was using the "composer" field of the advanced search for that, which I guess isn't right. Would "performer" make more sense here, do you think? Or should it be just ignored?

Also, since video game music albums often have multiple artists, it would be awesome if there was a way to somehow condense each result (in the Foobar Browser and the File Browser) to only show one result per album, not a separate album for every different artist on that particular album.
This should already happen. If there are multiple artists for a single album, it lists it as "Various Artists". For this to work, the album tracks must have identical Album tags, and be in the same folder. Looking at your screenshot, I can't see any obvious reason why 2197 shouldn't have been listed as a single "Various Artists" album - are all the tracks in the same folder?

The only other thing I've noticed is that the search results don't always display every scan for a certain album
If you give me specific albums to check, I'll see what I can do. I've already looked at Xenoblade Special Sound Track, and determined that the cause is that it doesn't have the "Covers" block on the right hand side (which is what I was scraping). Presumably this is because it has only a single cover - I can fix that: vgmdb.boo v0.2

Alex

Album Art Downloader XUI

Reply #1384
What I could try to do is have marked spots in the script to easily add your own login details. Then, if you edit the script to provide those it will log itself in with those, otherwise it will just use the publicly available medium sized images. I'll look into that when I get a chance.


That would be perfect.  I'd love to test that out!  VGMdb uses vBulletin 3.7.3 as their login system, FYI.

I was using the "composer" field of the advanced search for that, which I guess isn't right. Would "performer" make more sense here, do you think? Or should it be just ignored?


Composer would make the most sense for VGM, but am I understanding that my artist tag must exactly match to at least one of the composers on VGMdb, or the entire composer list?  Either way, I definitely think artist info should be ignored.  VGM artists have a lot of variations of spelling, language (tons of Japanese composers), etc. and I highly doubt all of anyone's tags would match up to VGMdb.

This should already happen. If there are multiple artists for a single album, it lists it as "Various Artists". For this to work, the album tracks must have identical Album tags, and be in the same folder. Looking at your screenshot, I can't see any obvious reason why 2197 shouldn't have been listed as a single "Various Artists" album - are all the tracks in the same folder?


Yeah, you're right.  It's a bug in the Foobar Browser.  It works properly in the File Browser, just need to wait for it to find all your music before it merges all the Various Artists albums.  Guess I'll stop using the Foobar Browser and switch to File Browser exclusively.

If you give me specific albums to check, I'll see what I can do. I've already looked at Xenoblade Special Sound Track, and determined that the cause is that it doesn't have the "Covers" block on the right hand side (which is what I was scraping). Presumably this is because it has only a single cover - I can fix that: vgmdb.boo v0.2


I can confirm that the Xenoblade issue is fixed is v0.2, thanks!  I'll play around with more albums and searches to see what else I can find.

Album Art Downloader XUI

Reply #1385
am I understanding that my artist tag must exactly match to at least one of the composers on VGMdb, or the entire composer list?
Form says "contains". I haven't done much testing myself, but you can check the behaviour for various search cases directly with the website.

It's a bug in the Foobar Browser.  It works properly in the File Browser
Ah, should have noticed you were using the Foobar browser. Foobar has a proper "Album Artist" tag, so it uses that rather than try and guess based on the folder structure. If you want to keep using the Foobar browser, just tag your albums with an appropriate Album Artist and it should pick it up.

Alex

Album Art Downloader XUI

Reply #1386
Login was trickier than I thought. Still, should be working now. vgmdb.boo v0.3 should work the same as before, but if you edit the script first and enter your login details at the top where it's marked, for example:
Code: [Select]
    VGMDB_UserName = "the_miker"
    VGMDB_Password = "12345"
then it will log in and get larger images where available.

Alex

Album Art Downloader XUI

Reply #1387
Login was trickier than I thought. Still, should be working now. vgmdb.boo v0.3 should work the same as before, but if you edit the script first and enter your login details at the top where it's marked

It works perfectly!  I tested it out with about 20 albums and it got the hi-res images for every single one.  Awesome!

Here are some notes I made while testing:

- I'm only seeing a maximum of 10 search results even if there are more than 10 images for a particular album

- At least one Artist in the search must be exact to get good results

- If "Various Artists" is the Artist in a search, it will never get results.  Maybe ignore artist all together, or at the very least when it's Various Artists?

- Can you make it so any image on VGMdb with "front" in the name shows up as "Front" in the search results?  Booklet Front, for example, shows as "Inside"

- Sometimes it takes a long time (2-3 minutes) to save an image, but that could be an issue with their server?  Happened with about a handful of albums so far

Album Art Downloader XUI

Reply #1388
I'm only seeing a maximum of 10 search results even if there are more than 10 images for a particular album
Click the little "..." on the bottom right of the source to expand the options for it. Uncheck the "Limit to 10 results" box, or just adjust it to whatever limit you feel most appropriate. I think the site itself only returns 30, though.

If "Various Artists" is the Artist in a search, it will never get results.  Maybe ignore artist all together, or at the very least when it's Various Artists?
I'll ignore Artist if it's Various Artists, then. I'd prefer not to ignore Artist otherwise, on general principles - it's better to remove it if unwanted than to be unable to specify it if required. Updated: vgmdb.boo

Can you make it so any image on VGMdb with "front" in the name shows up as "Front" in the search results?  Booklet <anything>, for example, shows as "Inside"
This was deliberate. If it's the front of the booklet, then it's Inside the case. The Front is what appears on the front of the case. If you want to customise your own copy of the script, look at the GetCoverType method at the bottomof the script. You can edit that to return whatever type for whatever string you want, so long as it is one of Front, Back, CD, Inside or Unknown.

Sometimes it takes a long time (2-3 minutes) to save an image
My guess would be server issue. Possibly deliberate throttling, but in any case, it's nothing that the script is doing. Once the full size image is retrieved (if you preview it, for example), saving should be instantaneous, though - if that's not the case then there's something going wrong with AAD.

Alex

Album Art Downloader XUI

Reply #1389
Click the little "..." on the bottom right of the source to expand the options for it. Uncheck the "Limit to 10 results" box, or just adjust it to whatever limit you feel most appropriate. I think the site itself only returns 30, though.


Ah ha!  I haven't played around with AAD long enough to know about the secret dots.  The site definitely returns more than 30 btw.  Try searching for a popular game title (Castlevania or Final Fantasy for example) and prepare to be destroyed with results!

I'll ignore Artist if it's Various Artists, then. I'd prefer not to ignore Artist otherwise, on general principles - it's better to remove it if unwanted than to be unable to specify it if required. Updated: vgmdb.boo


I actually agree with you on that now that I've played with it a little more.  It's handy to have the VA ignored and actually helps in most cases to have the non-VA artist filled out.

This was deliberate. If it's the front of the booklet, then it's Inside the case. The Front is what appears on the front of the case. If you want to customise your own copy of the script, look at the GetCoverType method at the bottomof the script. You can edit that to return whatever type for whatever string you want, so long as it is one of Front, Back, CD, Inside or Unknown.


I left the script alone and just got used to where it places stuff like "Booklet Front" or "Box Front" in the results.  The covers are easy to spot amongst the sea of booklet scans after a while, heh.

My guess would be server issue. Possibly deliberate throttling, but in any case, it's nothing that the script is doing. Once the full size image is retrieved (if you preview it, for example), saving should be instantaneous, though - if that's not the case then there's something going wrong with AAD.


It stopped happening when saving, but happens very rarely if I close a search window while it's still searching, and then the queue starts another one right away.  I've learned to stop a search before closing the window now though, and it hasn't happened since.

Anyway yeah, I downloaded album art for a huge chunk of my collection today.  I can't thank you enough man.  The combination of your awesome program and this VGMdb script seriously made my week, possibly month.  Now where's the "Buy Alex a coffee" link?

Album Art Downloader XUI

Reply #1390
I'm glad it's working out; thanks for letting me know. I've uploaded it as an 'official' script now, so it will appear on the "Get more scripts" link for existing users, and it will get bundled into the installer of the next version.

It's new permanent home is http://album-art.sourceforge.net/scripts/vgmdb.boo, if you want to share it with anyone directly. I'll probably do a post in the VGMdb forums later to let them know of its existence too.

Alex

Album Art Downloader XUI

Reply #1391
First of all I want to thank the creator for this lovely application and wish him best of luck.

I've been reading this topic for half an hour, but I still cannot find a solution for my setup. Regardless if it was discussed before, I'm hereby asking for help

All my covers are stored in one folder, with the naming structure being %artist% - %album%.jpg

When using the file browser, it not only automatically and irreparably sets the save folder for the results, but also the presets seem to be useless for my goal of getting the above naming scheme. I have to do all the naming and saving-to manually, which doesn't seem to be the purpose of this program.

So, Is there a way to configure the settings for my file structure setup?

Album Art Downloader XUI

Reply #1392
Thanks! To answer your question - unless you use the common Folder.jpg or Cover.jpg naming scheme, you have to tell the File Browser what your scheme is. To do this, click the Options link in the file browser, then in the "Path to find images" box, clear out the existing text and replace it with your structure. (The path to find images is also used as the default path to save images.)

As all your covers are in one folder, that's what you put in there, so it would look something like: c:\artwork\%artist% - %album%.%extension% (you could use .jpg instead of .%extension%, but then even if the artwork isn't in jpeg format it will still be given the .jpg extension, which might confuse some viewing software). Obviously substitute in whatever the actual path to your artwork folder is.

I hope this helps,

Alex

Album Art Downloader XUI

Reply #1393
Once again, thanks for this great GREAT app!

Just wanted to let you know the Juno.co.uk script seems to have stopped working.

Album Art Downloader XUI

Reply #1394
Just wanted to let you know the Juno.co.uk script seems to have stopped working.
Thanks for letting me know. I've updated the script and it should work again now.

Alex

Album Art Downloader XUI

Reply #1395
Confirmed!

Thanks a lot!

Album Art Downloader XUI

Reply #1396
Wiki and Reference Guide
I've started a wiki on SourceForge for this project: Album Art Downloader XUI Wiki.

It's still a bit bare bones, but I've started to fill in a reference guide. Hopefully I'll get around to writing more some time, and even more hopefully if anyone else would like to contribute, that would be most welcome. Suggestions for the FAQ page would also be useful - just edit the page to add your suggested question and I'll edit in an answer (or remove the question and reply to you directly, if I don't think it's of general interest).

If the wiki ever does become complete or useful enough, I'll add a link to it on the Help menu of AAD.

Alex

Album Art Downloader XUI

Reply #1397
Wiki and Reference Guide
I've started a wiki on SourceForge for this project: Album Art Downloader XUI Wiki.

It's still a bit bare bones, but I've started to fill in a reference guide. Hopefully I'll get around to writing more some time, and even more hopefully if anyone else would like to contribute, that would be most welcome. Suggestions for the FAQ page would also be useful - just edit the page to add your suggested question and I'll edit in an answer (or remove the question and reply to you directly, if I don't think it's of general interest).

If the wiki ever does become complete or useful enough, I'll add a link to it on the Help menu of AAD.

Alex



This is a most welcome thing.

I'd be very interested in the script writing section.


Album Art Downloader XUI

Reply #1398
I'd be very interested in the script writing section.
In that case, when you get a minute, could you have a look at what I've written and see if it makes things clear enough, or if there's any area that needs more detail?

Writing Script Files

Thanks,

Alex

Album Art Downloader XUI

Reply #1399
It seems that the following scripts are not working correctly:

- Cd Baby
- Discogs
- Freecovers
- Encyclopaedia Metallum (gets only 1 result in AAD, using the same URL to search in web browser shows 4 results, 2 of them having covers... search vars used: metallica / master)
- Metal Library

Alex, do you test all sources regularly, or do you just wait for the users to report them? Detecting not working scripts might be hard sometimes.. especially if one only looks at the AAD window and not the sources websites. Maybe you could set up a "testbed" for all the scripts with search vars which would always find results? And then run it once a month? More work for you, but would increase the reliability of the scripts.

BTW. Is it possible to get/read cookies sent from the server with BOO when requesting a web page?

Thanks.