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 2068047 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

Album Art Downloader XUI

Reply #1275
Does "libdir" mean anything to you?

Alex


Yes, I have an environment variable called LIBDIR set. It's used as part of my development environment. I guess I should try unsetting it to see if that solves the problem. I never clued into that in the error log because it says "libdir", not "LIBDIR" and I'm used to working in case-sensitive environments.


Album Art Downloader XUI

Reply #1277
Hi. Can anyone help me to get this program working with foobar2000?  I've searched all over but can't find a simple set up guide or instructions.

i am running foobar2000 v1.0 on Win7 64-bit.  I downloaded the latest AlbumArtDownloaderXUI-0.34.1.exe and installed it.  I opened the program and selected New Foobar Browser.  The Foobar2000 status window says: Foobar2000 COM Automation Server must be installed before the Foobar library can be accessed.  So I clicked on the message which launched a link to http://www.hydrogenaudio.org/forums/index....showtopic=39946  I downloaded the installer - foo_comserver2-0.7-setup - and installed to C:\Program Files (x86)\foobar2000.  I closed and relaunched AlbumArtDownloader and opened a new foobar browser.  Again, the same message appears along with "Could not connect to foobar2000 automation server".  So I opened foobar2000 and looked in the Preferences.  Under COM Automation Server it says "Not running: Operation unavailable". 

Please help.  Thank you.

 

Album Art Downloader XUI

Reply #1279
So I opened foobar2000 and looked in the Preferences.  Under COM Automation Server it says "Not running: Operation unavailable".
I think the best place to ask would be in the Foobar2000 COM Automation Server thread. Hopefully someone there will be able to help you figure out why it isn't working. Once that's working, the foobar browser in AAD should work fine.

Alex

Album Art Downloader XUI

Reply #1280
This is a fantastic program.  Many thanks to the developer.

Is aad.exe unable to look in local folders for existing images the way that albumart.exe can?  The help file for aad.exe mentions "Local Files" in one of the examples of how to use the /exclude command but mine doesn't have "Local Files" or anything similar in the list of sources that /listSources outputs. 

Thanks for the help. 


Album Art Downloader XUI

Reply #1281
Suddenly, the COM server does not want to operate and foobar reports it as a component that causes crashes.
Any ideas on a better way of interfacing with foobar?


EDIT- Fix drunken spelling

Album Art Downloader XUI

Reply #1282
I don't seem to have libdir set, but unsetting LIBDIR seems to solve the problem.
If it is only set once, then I can't figure out why it would cause a crash, sorry. As a workaround, as you are running AlbumArt.exe from a script, could you perhaps unset it before calling AlbumArt.exe and re-set it afterwards? I know it's not ideal.

Suddenly, the COM server does not want to operate and foobar reports it as a component that causes crashes.
That's a shame. Any idea what changed? I'd suggest posting in the [a href='index.php?showtopic=39946']COM Automation Server[/a] thread, maybe there will be a fix or a new version. If not, and the COM server has become unsupported and no longer works with the latest version of Foobar at all, then I'll have to remove the Foobar browser window and rely on just the File browser window.

Alex

Album Art Downloader XUI

Reply #1283
I don't seem to have libdir set, but unsetting LIBDIR seems to solve the problem.
If it is only set once, then I can't figure out why it would cause a crash, sorry. As a workaround, as you are running AlbumArt.exe from a script, could you perhaps unset it before calling AlbumArt.exe and re-set it afterwards? I know it's not ideal.


I can just unset it in the script. The script runs in its own environment, so any changes made will be undone when the script exits.

Album Art Downloader XUI

Reply #1284
Is aad.exe unable to look in local folders for existing images the way that albumart.exe can?
Thanks for your comments. No, I'm afraid the Local Files source is not available in the command line version (aad.exe) - it's my mistake to have left it in the command args help, sorry. I'll correct that for the next version.

Alex

Album Art Downloader XUI

Reply #1285
I have thousands of mp3 singles.  They are filenamed "Artist - Track Title" and all tags are removed except for "Artist" and "Track Title".  They are currently all in one folder but could easily be put in individual folders with the same naming system.

However, as the singles do not come from an album I have not found a way to be able to download artwork from Discogs etc.  Discogs does however have the vast majority of artwork for my singles.  Is there a solution please?  I don't see why a search by artist - track title cannot work 

Album Art Downloader XUI

Reply #1286
Is there a solution please?  I don't see why a search by artist - track title cannot work 
If you put in the artist and track title (in the album box) by hand, and search the discogs, do you get useful results? I would expect so, as there's nothing in the discogs script that restricts it to just albums, so if discogs returns results for singles they should show up too.

Assuming that works, then the only difficulty with what you are trying to do is that the track title tag won't be read as the 'album name' in the file browser. To get around this, click the options link (in the file browser), and select File Path Pattern Matching instead of ID3 tags. In the path pattern box, you can put the pattern "\%artist% - %album%.*" to match your naming scheme.

The only other issue is what naming scheme to use for the art. If they're all in one folder, you can't use just "Folder.jpg", but something like "%artist% - %album% cover.%extension%" or "covers\%artist% - %album%.%extension%" (to keep them in a subfolder called covers) would do the job. Put it in the "Specify path to find images" and it will be the default place to save images when searching from the file browser too.

I hope this helps,

Alex

Album Art Downloader XUI

Reply #1287
For the record, I think this works thanks!  But, the functionality to actually write art to the tags is a big plus to me and so I'm probably going to end up using mp3tag anyway.  But you tool and support are great!

Album Art Downloader XUI

Reply #1288
actually, on 2nd thoughts i will use a combination of both tools 

Album Art Downloader XUI

Reply #1289
OK, another problem    when I call up AAD from mp3tag it the "file path to save to" in AAD keeps defaulting back to D:\blah    .I therefore have to enter D:\blah\%artist% - %album%.%extension%  everytime I call up AAD from mp3tag - a real pain!  Is there something I can do about this?

Album Art Downloader XUI

Reply #1290
when I call up AAD from mp3tag it the "file path to save to" in AAD keeps defaulting back to D:\blah
What is the command line you are using to call AAD from mp3tag? If it includes the path, then you can just remove that and AAD will default to whatever the last set path was. Or, you can include the path in the command line, but ensure it is just "D:\blah\%artist% - %album%.%extension%" rather than constructed by mp3tag.

Alex

Album Art Downloader XUI

Reply #1291
actually, on 2nd thoughts i will use a combination of both tools 
Oh, and for the record, in my opinion this is the correct approach. AAD is for finding and downloading cover art. mp3tag is for managing tags. Embedding album artwork in all its track files is a tagging task.

Album Art Downloader XUI

Reply #1292
Hello~
Let's say I have all my music in folders in the folders form of "%artist% - year - %album%".
Is there a way to automatically grab some artist.jpg (very high quality ones) files from some sites for my while library ?

Thank you~

Album Art Downloader XUI

Reply #1293
AAD seems to forget some settings chosen to modify the scripts e.g. in the Juno search, I want to set it to "always download full images" and I don't want to limit it to 10 results.  But I often have to rest this manually.  I took a look in the script and could not see anything obvious to change the default.  How would I do this please?

Album Art Downloader XUI

Reply #1294
AAD seems to forget some settings chosen to modify the scripts
This isn't something that can be set in the script, it is a setting AAD stores for it. It is stored with all the other program settings, so if it is forgetting them then that's a bug. If you can tell me anything specific that you know makes it forget the settings, I'll see if I can figure out what's going wrong.

It shouldn't matter which script it is, unless you are modifying the script to change its name.

Alex

Album Art Downloader XUI

Reply #1295
AAD seems to forget some settings chosen to modify the scripts
This isn't something that can be set in the script, it is a setting AAD stores for it. It is stored with all the other program settings, so if it is forgetting them then that's a bug. If you can tell me anything specific that you know makes it forget the settings, I'll see if I can figure out what's going wrong.

It shouldn't matter which script it is, unless you are modifying the script to change its name.

Alex


The google images script seems to only return 20 results even if I untick the limit box or put a number >20 in the limit box and leave it ticked.  Discogs and Juno work fine though.

Album Art Downloader XUI

Reply #1296
The google images script seems to only return 20 results even if I untick the limit box or put a number >20 in the limit box and leave it ticked.  Discogs and Juno work fine though.
Yeah, that's a limitation of the script. It only gets one page of results from google, so it won't return more results than google returns on one page.

Album Art Downloader XUI

Reply #1297
Hey Alex,

I'm trying to create a script for some users of a private image hosting site. Unfortunately I just realized that while I might stay logged in for years on Firefox, the AAD script has to do its own logging in. I'm pretty new to this sort of thing, so I'm wondering if there's a way to fill out forms and hit submit, without being able to build a "login.php?user=Mordred&pass=blah" type string, because I don't think that will work here sadly.

Album Art Downloader XUI

Reply #1298
I'm wondering if there's a way to fill out forms and hit submit

There are two ways in which forms can be submitted, POST or GET (if you look at the source, it's the "method" attribute on the <form> tag). If it's a GET form, then you construct the url string in the way you indicated in your post. Unfortunately, most forms are POST. In fact, even if it is a POST it's usually worth at least trying it as a GET as several server-side libraries abstract the obtaining of parameter values so that it doesn't matter which method is used, it works just the same.

If you do have to submit a POST form, then here's some boo code to do the job:

Code: [Select]
static def Post(url as String, content as String):
  request = System.Net.HttpWebRequest.Create(url)
  request.Method="POST"
  request.ContentType = "application/x-www-form-urlencoded"
  bytes = System.Text.UTF8Encoding().GetBytes(content)
  request.ContentLength = bytes.Length
  stream = request.GetRequestStream()
  stream.Write(bytes,0,bytes.Length)
  stream.Close()
  streamresponse = request.GetResponse().GetResponseStream()
  return System.IO.StreamReader(streamresponse).ReadToEnd()

To use it, the content parameter should be the field names and values in the form, the same as if you were constructing a url for a GET form, so something like: "user=Mordred&pass=blah".

I hope this helps,

Alex

Album Art Downloader XUI

Reply #1299
Thanks Alex. Unfortunately I'm still having some issues, and I'm not sure what the problem is. The form is a POST. I attempted a GET, but no dice.

I'm now using the above code, and am passing it a correct login string (verified with firebug) and when I do I get an error page back (basically the page you'd get if you attempt to access index.php without logging in first). If I pass an incorrect login string I get the login page back with a "bad login/password please try again" message.

I'm wondering if the problem might somehow be related to cookies or something? There doesn't happen to be a script out there using form POSTs currently is there?