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

Album Art Downloader XUI

Reply #1300
I'm wondering if the problem might somehow be related to cookies or something?
It's possible. I haven't seen it used, but it's possible that it might use that as security (so accessing the login page sets a cookie, that must then be sent with the username and password). I have seen referrer checking, and user agent string checking. Without being able to access the site itself, I can only suggest you experiment with it.

Cover-paradies, coverisland and psyshop all use POST, in slightly different ways. Cover-paradies and coverisland also set the referer header, in a couple of different ways.

Alex

Album Art Downloader XUI

Reply #1301
'Found' this app again from a looong while back.  I was having some teething problems with it at the time, but it now works flawlessly for me, thanks AlexVallat.

Has anybody ever worked out a solution for 'art' for various songs in a folder?  I have 3000 songs which are named <number> - <Artist> - <title> (with the numbers going from 0001 to 3000).  Is there any way of getting 'art' for these tracks the way they are kept at the moment?

Thanks,

T.

Album Art Downloader XUI

Reply #1302
Is there any way of getting 'art' for these tracks the way they are kept at the moment?

If you want to use AAD to do this, I answered a similar question a couple of posts back: here.

The only difference for your situation is that the pattern would be "\* - %artist% - %title%.*" instead, to take account of the number part of your filename.

Alex

[reposted as my previous reply has vanished]

Album Art Downloader XUI

Reply #1303
It's possible. I haven't seen it used, but it's possible that it might use that as security (so accessing the login page sets a cookie, that must then be sent with the username and password). I have seen referrer checking, and user agent string checking. Without being able to access the site itself, I can only suggest you experiment with it.

Cover-paradies, coverisland and psyshop all use POST, in slightly different ways. Cover-paradies and coverisland also set the referer header, in a couple of different ways.
I talked to a developer on the site who recommended I check out Live HTTP Headers to see exactly what was being passed through a normal web browser login. After the POST, this is received from the server:

Code: [Select]
HTTP/1.1 302 Moved Temporarily
Server: nginx/0.8.32
Date: Tue, 30 Mar 2010 17:01:02 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: session=LONG_SESSION_STRING_REMOVED; expires=Wed, 30-Mar-2011 17:01:02 GMT; path=/
Location: index.php

After which I'm redirected to index.php. So apparently the session cookie isn't being set/saved and when index.php checks for it, I'm greeted with an error message, which is what's returned by System.IO in the Post method you gave me. I've done some searching on my own and wasn't able to find anything about saving/retrieving cookies in Boo scripts so I'm not even sure this is possible. If you've got any ideas, I'd love to hear them

Thanks

Album Art Downloader XUI

Reply #1304
If you've got any ideas, I'd love to hear them
You probably won't have much luck searching for boo samples, but C# or VB.Net code snippets can usually be easily be adapted to boo.

For cookies, try adding:

Code: [Select]
cookies = CookieContainer()
...
request.CookieContainer = cookies

You'll need to assign the same cookies object to every request (rather than creating a new one for each request), so they all share the same set of cookies.

Alex

 

Album Art Downloader XUI

Reply #1305
I've been looking through Microsoft's CookieContainer documentation and I feel like I have an idea of what I need to do to make it work, but I'm running into this error now:

'CookieContainer' is not a member of 'System.Net.WebRequest'

when I try and use request.CookieContainer = cookies

BTW, here's some Python code that a developer sent me for the required login process on the website:
Code: [Select]
    def login(self):
            headers = self.request("GET", self._login, "", {}).headers
            cookie=dict(headers)['set-cookie']
            web_session=re.search("web_session=[a-f0-9]+", cookie).group(0)
            headers = { "Cookie": web_session, "Content-Type": "application/x-www-form-urlencoded"}

            loginform= {'username': self._props['username'], 'password': self._props['password'], 'keeplogged': '1', 'login': 'Login'}
            data = urllib.urlencode(loginform)
            headers = self.request("POST", self._login, data, headers).headers

            cookie=dict(headers)['set-cookie']
            session=re.search("session=[^;]+", cookie).group(0)
            self.headers = { "Cookie": web_session + "; " + session }

Album Art Downloader XUI

Reply #1306
'CookieContainer' is not a member of 'System.Net.WebRequest'

Ah, yeah, it's on HttpWebRequest (a subclass of WebRequest). If the request variable is just of type WebRequest rather than HttpWebRequest then do:
Code: [Select]
(request as System.Net.HttpWebRequest)CookieContainer = cookies

Or cast request as HttpWebRequest on creation instead, if you prefer:
Code: [Select]
request as System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(url)


Alex

Album Art Downloader XUI

Reply #1307
ehhm..still cant make it work properly with foo_run

i have made a button in foobar with a foo_run connection.

the foo_run script is:

C:\Programme\AlbumArtDownloader\albumart.exe -ar "%artist%" -al "%album%" -f "folder.jpg" -p "%path%"

the problem is, that the command %path% gives e.g. Z:\Musik\Beck\1999 - Midnite Vultures\01 - Sexx Laws.flac instead of the path/folder Z:\Musik\Beck\1999 - Midnite Vultures\

its not possible for me to handle it with -p "Z:\Musik\%ARTIST%\%YEAR% - %ALBUM\" because i have lareday started my 2nd TB HDD with music. so, any ideas?

seeya

Album Art Downloader XUI

Reply #1308
Weird. I was using the code you originally gave me that had
Code: [Select]
request = System.Net.HttpWebRequest.Create(url)

and I can't really tell how that differs from
Code: [Select]
request as System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(url)

but the streamresponse now has me logged in using the second version. Just gotta alter the code so that the cookies are being set on each call and I think I'm good!

Thanks a bunch.

Album Art Downloader XUI

Reply #1309
mundschuss, use this:

Code: [Select]
-p "$directory_path(%path%)"


Album Art Downloader XUI

Reply #1311
and I can't really tell how that differs from
Cool, glad you've got it working now! The difference, if you're interested, is that it tells boo that the variable "request" should be of type HttpWebRequest, rather than WebRequest. Most other statically typed languages would use the syntax "HttpWebRequest request = new..." (as distinct from the first, which is equivalent to "WebRequest request = new...".

Alex

Album Art Downloader XUI

Reply #1312
ehhm..still cant make it work properly with foo_run

i have made a button in foobar with a foo_run connection.

the foo_run script is:

C:\Programme\AlbumArtDownloader\albumart.exe -ar "%artist%" -al "%album%" -f "folder.jpg" -p "%path%"

the problem is, that the command %path% gives e.g. Z:\Musik\Beck\1999 - Midnite Vultures\01 - Sexx Laws.flac instead of the path/folder Z:\Musik\Beck\1999 - Midnite Vultures\

its not possible for me to handle it with -p "Z:\Musik\%ARTIST%\%YEAR% - %ALBUM\" because i have lareday started my 2nd TB HDD with music. so, any ideas?

seeya


I have a similar issue with MediaMonkey using "Eternal tools" : my parameters are  /artist "%a" /album "%l" /path "\%p\Folder.jpg", but "\%p\Folder.jpg" gives me the track path and not the folder path... I would really appreciate some help :-).

Thanks a lot by the way for this excellent software :thumbsup:

Album Art Downloader XUI

Reply #1313
I have a similar issue with MediaMonkey using "External tools"
I had a quick look a the MediaMonkey External Tools thread, and it seems you're not the first to want this: This post is asking for the same thing, for the same purpose. There's a suggested fix in that thread, but it seems to involve editing the External Tools script file. Anyway, if you need further help with this, I'd suggest that is the thread to ask in.

Alternatively, although this is sort of cheating, you can use "%p\..\Folder.jpg". It won't look pretty, but should save to the correct location.

Alex

Album Art Downloader XUI

Reply #1314
I have a similar issue with MediaMonkey using "External tools"
I had a quick look a the MediaMonkey External Tools thread, and it seems you're not the first to want this: This post is asking for the same thing, for the same purpose. There's a suggested fix in that thread, but it seems to involve editing the External Tools script file. Anyway, if you need further help with this, I'd suggest that is the thread to ask in.

Alternatively, although this is sort of cheating, you can use "%p\..\Folder.jpg". It won't look pretty, but should save to the correct location.

Alex


Thanks a lot for pointing me to this thread : I edited the script, and this works perfectly now !

Album Art Downloader XUI

Reply #1315
I've been playing around with this wonderful piece of software for a couple of hours now and am amazed by how much easier it makes finding album artwork, however...

I've been trying to find instructions somewhere in this thread about how best to go about using this in conjunction with iTunes? I must confess I've not read all 53 pages (and those which I have read have mostly been at a level far above my basic understandings) but so far can't see many mention of iTunes at all.

Obviously other music management software may be the preferred choice for many users but I'm hoping someone can offer advice for someone like myself who is iTunes based. From what I can make out there is no direct integration between the AAD software and iTunes software so I have been copying and pasting in a laborious process (but still vastly quicker way than previously). I await any assistance your kind selves can provide and would like to once again say how impressed I am with how well the AAD works.

Album Art Downloader XUI

Reply #1316
how best to go about using this in conjunction with iTunes?
Thanks for your comments. AAD doesn't integrate directly with iTunes, but McoreD's [a href='index.php?showtopic=51708']iTunes Store file validator[/a] integrates with both iTunes and Album Art Downloader, so should hopefully do what you need.

Alex

Album Art Downloader XUI

Reply #1317
Having downloaded art for around 3000 mp3s with your tool I have to say it is probably in the top three best pieces of freeware I have ever used. 

Something I have noticed however is that, when using D:\%artist% - %album%.%extension%  AAD only reads part of the album tag in a very small minority of cases (<1%).  For example, in the file

The Chemical Brothers - Get Yourself High (Switch Vs. Corradino Edit) AAD reports the tag as album tag as Get Yourself High (Switch Vs


It seems this happens mostly (but not always) with tags containing Vs. or Vs

I have double checked the tags are fully (i.e. not only partially) written in the mp3s.

Any ideas?

Album Art Downloader XUI

Reply #1318
Any ideas?
Are you sure you are using the ID3 tag option rather than the file path pattern matching option?

If it is definitely using tags, and if it reliably happens with specific files, would you be able to send me one by email or PM? I could then inspect it to see if I can figure out if anything is strange about the tags.

Alex

Album Art Downloader XUI

Reply #1319
Any ideas?
Are you sure you are using the ID3 tag option rather than the file path pattern matching option?

If it is definitely using tags, and if it reliably happens with specific files, would you be able to send me one by email or PM? I could then inspect it to see if I can figure out if anything is strange about the tags.

Alex


Actually, yes I do have file path matching option selected as follows:  \%artist% - %album%.*

I think it is when there is a full stop / decimal point in the tag.  If you pm me your e-mail address I can contact you.

Album Art Downloader XUI

Reply #1320
Actually, yes I do have file path matching option selected as follows:  \%artist% - %album%.*
That would explain it, then. It matches the first "." (after Vs), and the rest of the filename matches "*". You've got two choices - either replace  .* with .mp3 (if all your files are .mp3's), or with ."[^.]+" if you need it to match any extension. So you'd have either:

\%artist% - %album%.mp3
or
\%artist% - %album%."[^.]+"

I've sent you a PM with my email, but this ought to fix the issue.

Alex

Album Art Downloader XUI

Reply #1321
Hi Alex,

I'm having an issue with the Amazon.co.jp script when there's non-english characters (in my case Japanese)
AAD will never return any results from Amazon.co.jp while it worked for an artist/album that only had english characters.

Here's an example:
Album: ファンキーモンキーベイビーズ2
Artist: FUNKY MONKEY BABYS

It does exist on Amazon: here

EDIT:

Actually, it seems that Amazon.co.jp won't return anything (The other amazons do)
Here's an example:
Album: Crispy!
Artist: Spitz

and

Album: B-SIDE
Artist: Mr.Children

Also is it just me or is Coveralia completely borked? For the FUNKY MONKEY BABYS search, it's showing results like Madonna and Justin Bieber of which I see no link...

Thanks!

Album Art Downloader XUI

Reply #1322
Quote
Also is it just me or is Coveralia completely borked?

Yes it is. But not Coveralia script in AAD! Coveralia search is stupidly an "OR" search. Also it doesn't separate artist & album in the search.

Album Art Downloader XUI

Reply #1323
I'm having an issue with the Amazon.co.jp script when there's non-english characters
Thanks for reporting this. It looks like Amazon.jp sometimes has a different form of displaying the results (tabular, rather than a list). I can't figure out when it chooses to do this, so I've just got the script to try to read both formats now. Also, I fixed up some of the encoding issues, so .jp should now use the ShiftJIS codepage properly, both accepting and returning characters in that encoding.

Unfortunately Sourceforge is down for the weekend, so I can't push out an update yet - but if you don't want to wait, you can get the updated script files here: amazon-jp.zip. Both files go in your scripts folder.

Alex

Album Art Downloader XUI

Reply #1324
Hi,

maybe I'm blind, but I can't figure out how to tell the program how to name the downloaded files. It used to save the files under "folder.jpg", now it only saves them under "folder", without extension, which causes several problems... Could anybody give me a clue?

Thanks!