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 2051282 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Album Art Downloader XUI

Reply #1400
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



Thank you Alex, the section is quite clear.

Album Art Downloader XUI

Reply #1401
Thanks for reporting these, I'll take a look as soon as I can. I do rely on users reporting sources failing, but check them all myself when doing a new version release. If no-one notices or cares that a source isn't working, then it isn't a priority for me to fix it!

It is possible to do cookies, yes. You need to create a CookieContainer and assign it to all the HttpWebrequests - check out the vgmdb.boo for an example.

Album Art Downloader XUI

Reply #1402
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

CD Baby and Metal Library seem to be working fine for me. They're a bit specialist, though - what did you search for?

Freecovers are currently upgrading their site. Although they don't specifically mention the API, they say various parts of the site are temporarily unavailable (and the API gives a 404 'not found' error). So I'll regard this as a temporary fault, at least until they complete their upgrades.

Encyclopaedia Metallum and Discogs are fixed now, they should be showing up in the online updates.

Thanks,

Alex


Album Art Downloader XUI

Reply #1404
CD Baby and Metal Library seem to be working fine for me... what did you search for?

For Metal Library: metallica / master ... when browsing to the http://metallica.metallibrary.ru/ page, the first occurrence of "master" has a link to http://www.metallibrary.ru/bands/discograp...of_puppets.html where a 400x400px cover is shown. Also the 3rd occurrence of the search word has a link to http://www.metallibrary.ru/articles/review...of_puppets.html where a 100x100px cover is shown. AAD shows nothing.

As for the CD Baby, same search vars (tried others too, no change, AAD never seem to show any results at all from this source). If I go to the website and search for "master" (w/o quotes), then "Refine Your Results" with "album", I get 491 results. This search is exactly the same as searching from AAD (I checked the URLs used in browser and in your script). What search vars do you use when you get results? EDIT: just noticed progress bar tooltips for sources.. when searching, CD Baby shows "Retrieved 0 of 9 results..." text for a while but then always ends and shows nothing.


Thanks for the fixes.

 

Album Art Downloader XUI

Reply #1405
Hey Alex,

First of all congratulations for this nice application!  I'm a Linux user and wanted to use it on Linux with Mono and realized that WPF is not implemented in Mono, however the command line is well supported. 

Typing "xbuild" in the CommandLineInterface directory builds the application without any hassle with Mono on Linux.  The only improvement that you may want to make is to rename the Scripts directory to scripts (with lowercase) because it's written lowercase in the code and uppercase as the directory name and Linux filenames are case sensitive.  As for now, renaming Scripts to scripts solves the issue.

I wanted to save every cover images to the filesystems instead of just one image so I've implemented a command line option that made it possible.  Let me quote the added paragraph of CommandArgsHelp.txt

[blockquote] /fetchAll    Saves every results to the filesystem.  (/fetchAll)
              The %sequence% variable must be used in order for
              the filenames to be unique for every results,
              otherwise they will be overwritten by each other.
              May be abbreviated to /a              (/a)[/blockquote]

Please let me know whether you're willing to merge my patch which is located at http://monda.hu/releases/aad-fetchall.diff

There is a small, unrelated change in my patch which sets the cursor visibility to true, instead of false.  The reason behind this change is that it was very inconvenient for me to loose the cursor every time when pressing control-c when Album Art Downloader was running and I think that making the cursor invisible is a bad practice on Linux.

Thanks,
Laci

Album Art Downloader XUI

Reply #1406
The MetalLibrary script required an exact album name to work. I've updated it now so that it does a "contains" search for the album name (so it will find "puppets", in your example), but it still requires the exact artist name.

The CD Baby script does a search for the album name, refined by Album. From those results, it then checks to see if any of them have an artist name that contains the artist name searched for. This is why you get the estimated results count dropping effect, as it checks each result and determines that the artist isn't a match and discards it. Unfortunately CD Baby doesn't support searching for both artist and album simultaneously, which is why this two-pass method is used. If you search for "master", but leave the artist field blank, you should get some results. Not the album you are looking for, of course, but then CD Baby is for independently published music, there's no chance they'd have Metallica on there!


Hi Laci,

Thanks for that! It's great to know that at least the command line tool works with Mono under Linux. I can't really start officially supporting it as a platform, but if there are small changes that can be made to improve the Linux compatibility, that's fine. With regards to your specific concerns:

Scripts folder casing: It's easier to correct the source to refer to it with a capital letter! This shouldn't affect Windows at all.

FetchAll functionality: That's great, thanks for contributing! I've merged it in for inclusion in 0.37, but changed the abbreviation to /fa. I've avoided "/a" as there are many parameters for which it could be used, and it's less confusing to just make all the potential "a" parameters have two-letter abbreviations. I've also reworded your help text a bit, as using %sequence% is recommended, but not compulsory (for example, you could use reasonably use "%source%/%name%-%type%.%extension%" with fetch all). I've also made a small fix so that it doesn't always claim no images were found when using fetchAll

Cursor visibility: The cursor visibility should automatically be turned back on, but I take your point about Ctrl-C killing the app before it can turn the cursor back on. As a compromise, I'll change it so that the cursor is turned back on after script compilation finishes (as it only turned off for showing the compilation progress) rather than when the program exits.

Alex

Album Art Downloader XUI

Reply #1407
Thanks for merging my patch and improving upon it, Alex!  I'm very happy with your decisions.

Keep it up!

Laci

Album Art Downloader XUI

Reply #1408
Alex,

When I search for an album cover in the GUI application, get some results and press the left button on a cover for some seconds to see the full sized cover and I release the button then sometimes the relevant record disappears from the GUI.  (I'm using the GUI application on Windows.)

I can reproduce this bug many times, but not always.  Is it known?  Can you fix it?

Thanks,
Laci

Album Art Downloader XUI

Reply #1409
This happens to me on occasion (less often now, since I have started using the "Automatically download full-size images: Only when size is unknown" and closing the program when not actively using it) in the following conditions:
  • A 404 error is received when trying to retrieve the image (computer cannot connect to remote file)
  • The actual file, when downloaded, is outside my "Filter by image size" settings (some servers will mis-report the actual image size before retrieval)

Neither of those conditions is a bug, strictly speaking.

Album Art Downloader XUI

Reply #1410
Zarggg is right, this is almost certainly because the full sized image doesn't meet the filter criteria you've set.

If the full size image is not available for some reason, then the correct behaviour is to simply use the thumbnail image instead - the result shouldn't be removed unless this thumbnail doesn't match the filter criteria.

If you are sure that your filters aren't set up to exclude anything, then I'll look into this further. It would help if you could let me know which source it occurs with, too.

Alex

Album Art Downloader XUI

Reply #1411
Thanks guys!  I'm pretty sure that you're right and it's a filter related behaviour and not a bug.

Album Art Downloader XUI

Reply #1412
hi all...new to this forum so i hope that i'm in the right place: i have my cover art stored in a CATraxx data base (.mdb) as .jpg files following this file path : C:\documents and settings\all users\documents\catraxx\database\g's stuff.mdb. Rather than use the foobar browser function in Album Art Downloader and search the internet for aprox 500 album covers, i would rather search and/or import my existing database images using the File Browser function and bring the cover art into foobar that way. Is this possible, and if so can someone tell me how?

Many thanks in advance,
geo

Album Art Downloader XUI

Reply #1413
Is this possible, and if so can someone tell me how?
It's not possible to search for images inside a proprietary database, but if you can get CATraxx to export the images as files somewhere then you could could get the file browser to use those.

Album Art Downloader XUI

Reply #1414
Is this possible, and if so can someone tell me how?
It's not possible to search for images inside a proprietary database, but if you can get CATraxx to export the images as files somewhere then you could could get the file browser to use those.



Thanks alex for your prompt reply, i will try your suggestion.
geo

Album Art Downloader XUI

Reply #1415
Is this possible, and if so can someone tell me how?
It's not possible to search for images inside a proprietary database, but if you can get CATraxx to export the images as files somewhere then you could could get the file browser to use those.



Thanks alex for your prompt reply, i will try your suggestion.
geo



OK, would appreciate some assistance - i have extracted the jpeg image files to its own folder (E:\cover art) where each file is held as last name, first name - album title.jpg, - in the absence of two names ie. B.B. King, Basia, etc. only one name is listed - opened AAD and selected local files as the only source, then from the file menu selected file browser, and then selected the proper file path in the search for window...and no matter how i configure the other options, either nothing happens or the search stops after looking at one or two items in the cover art folder...please tell me what i am doing wrong and what i have to do to correct this...many thanks,
geo

Album Art Downloader XUI

Reply #1416
OK, would appreciate some assistance

In the file browser, click the options link then in the box marked "Path to search for images" you need to tell it where your cover art is. In your case, that would be: E:\cover art\%artist% - %album%.%extension%. Then, point the file browser at your music collection and hit search. For each album found, it will try to locate the album art with the filename constructed from the artist and album name.

The only issue I can see is that your image files are saved with artist as "lastname, firstname". If that isn't how your music files are tagged ("firstname lastname" is more common), then it wouldn't find them. To work around this, you could use E:\cover art\* - %album%.%extension% instead - the downside of this being that if you have albums with the same name but by different artists, it would find the same image file for both, you'd have to watch out for this.

Alex

Album Art Downloader XUI

Reply #1417
OK, would appreciate some assistance

In the file browser, click the options link then in the box marked "Path to search for images" you need to tell it where your cover art is. In your case, that would be: E:\cover art\%artist% - %album%.%extension%. Then, point the file browser at your music collection and hit search. For each album found, it will try to locate the album art with the filename constructed from the artist and album name.

The only issue I can see is that your image files are saved with artist as "lastname, firstname". If that isn't how your music files are tagged ("firstname lastname" is more common), then it wouldn't find them. To work around this, you could use E:\cover art\* - %album%.%extension% instead - the downside of this being that if you have albums with the same name but by different artists, it would find the same image file for both, you'd have to watch out for this.

Alex


thanks again alex, this mod has done the trick...one further request: as things stand now, when the correct image file is located in e:\cover art, the default 'save to' is the same e:\cover art; is it possible to change the default to the folder containing the album tracks, in my case, e:\rips where they are filed by artist (firstname, lastname), then by album name where the individual album tracks (as .wav files) as well as a .cue sheet (album name.cue): ie. e:\rips\artist name\album name? This would be a great time saver avoiding the necessity of having to do a 'save as' for every album in the collection.

Once again, many thanks,
geo

Album Art Downloader XUI

Reply #1418
is it possible to change the default to the folder containing the album tracks
The default place to save images is the same place that it looks for them, on the grounds that if that's where you save images, you want images there to be found.

In your case, you have two folders where images may be found, "e:\cover art" and "e:\rips". To cope with this, you can specify both paths in the file browser, separated by a "|":

E:\rips\%artist%\%album%\folder.%extension%|E:\cover art\%artist% - %album%.%extension%

When saving, it will use the first path specified (e:\rips...) as the default place to save to. Again, the only issue is likely to be whether artist is specified as "firstname lastname" or "lastname, firstname". AAD can't convert between the two, so if the artist searched for is "firstname lastname" then that's how it will appear in the %artist% substitution.

Alex

Album Art Downloader XUI

Reply #1419
is it possible to change the default to the folder containing the album tracks
The default place to save images is the same place that it looks for them, on the grounds that if that's where you save images, you want images there to be found.

In your case, you have two folders where images may be found, "e:\cover art" and "e:\rips". To cope with this, you can specify both paths in the file browser, separated by a "|":

E:\rips\%artist%\%album%\folder.%extension%|E:\cover art\%artist% - %album%.%extension%

When saving, it will use the first path specified (e:\rips...) as the default place to save to. Again, the only issue is likely to be whether artist is specified as "firstname lastname" or "lastname, firstname". AAD can't convert between the two, so if the artist searched for is "firstname lastname" then that's how it will appear in the %artist% substitution.

Alex



hi alex...it appears that i am unable to return any images with 2 paths specified; actually, the proper images are returned only when the file browser is configured as follows: "use file path pattern matching" is "* - %album%" AND "specify path to find images" is "e:\cover art\* - %album%.%extension%"
any further suggestions to relieve the "save as" issue are greatly appreciated...thanks,
geo

Album Art Downloader XUI

Reply #1420
hi alex...it appears that i am unable to return any images with 2 paths specified

"specify path to find images" should then be "e:\rips\%artist%\%album%\folder.%extension%|e:\cover art\* - %album%.%extension%", without " marks. If for some reason the | isn't copying correctly, then enter the two paths one at a time, and use the > button on the right of the box and choose "alternate" from the drop down menu to insert one.

Alex

Album Art Downloader XUI

Reply #1421
hi alex...it appears that i am unable to return any images with 2 paths specified

"specify path to find images" should then be "e:\rips\%artist%\%album%\folder.%extension%|e:\cover art\* - %album%.%extension%", without " marks. If for some reason the | isn't copying correctly, then enter the two paths one at a time, and use the > button on the right of the box and choose "alternate" from the drop down menu to insert one.

Alex



unfortunately alex, it still does not respond if more than one file path is specified...looks like i'll have to do it the old fashion way...many thanks for your help,
geo

Album Art Downloader XUI

Reply #1422
Hey all!

Is anyone else having any problems with the discogs script? It seems like sometimes it works, sometimes it just gets stuck while running and never finishes. It might be something to do with my connection, so that's why I'm asking.

(Also, it would be great if the Juno script could also search the digital releases (or perhaps a seperate script for Juno Download?). I would love to get into it myself, but the scripting is a bit out of my league right now, I think.)


-frnk

Album Art Downloader XUI

Reply #1423
Hey all!

Is anyone else having any problems with the discogs script? It seems like sometimes it works, sometimes it just gets stuck while running and never finishes. It might be something to do with my connection, so that's why I'm asking.

-frnk


Yes, I am also having this problem with discogs occasionally hanging during searches. I usually notice it when the graph on my CPU monitor gets stuck at 100%. Stopping the discogs search brings the CPU usage down immediately.

Album Art Downloader XUI

Reply #1424
Does the Discogs problem happen with specific search terms, or is it completely random? If there are search terms that trigger it I can try and reproduce it here, and see if I can fix it.

The Discogs script doesn't provide thumbnails, so when you do a search it has to download the full sized image for each result. These can be fairly large, so if you've got a slow connection you might want to set Discogs to only return a few results. To do this, click the ... link in the bottom right of the Discogs entry in the list of sources, and change the limit on number of results to be less than the default of 10.

Alex