HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: paradog on 2010-01-01 05:45:25

Title: artistArt downloader.
Post by: paradog on 2010-01-01 05:45:25
artistArt downloader

Is it a standard foobar2k component?
No, it's meant to be called like AlbumArtDownloader with foo_run.

What does it do?
It fetches artist's photos by using Last.fm's api.
You can specify the number of photos you want to download, path the photos to be saved in.
There is Discogs around that also does the job, but it only downloads a limited number of
photos together with writing tags. Discogs also has a relatively small collection of artists. So I set off to make this *component*.

*It won't read tags itself.It must work with players like foobar2000

Requirement
It requires .Net Framework 2.0 (http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en).
To work with foobar2000, you need foo_run (http://www.foobar2000.org/components/view/foo_run).

Usage
art.exe <artist> <path> <number>
<artist>: artist name
<path>:save path
<number>:number of photos

Because it's more easier to call %path% in foobar.so <path> must contain filename. Call like this:
Code: [Select]
art.exe "Fall Out Boy" "L:Fall.Out.Boy.-.Folie.A.Deux\09-fall_out_boy-27.mp3" 5


In foobar2k with foo_run, call like this:
Code: [Select]
art.exe "%artist%" "%path%" 5


If you want to save images to one folder call like this:
Code: [Select]
art.exe "Katharine McPhee" "K:\artistart\foobar" 5

foobar is a random string, it's just to make string cut in the program work. It will save images to K:\artistart\.

Source code and download:
Download binary code here (http://artistart.googlecode.com/files/art.exe).

Download source code here (http://code.google.com/p/artistart/).
or just
Code: [Select]
svn checkout http://artistart.googlecode.com/svn/trunk/ artistart-read-only


Sorry about my English..again..sigh..
Title: artistArt downloader.
Post by: Mar2zz on 2010-01-01 06:19:24
Thx for this newyear present. I was using
Code: [Select]
"C:\Program Files\foobar2000\Album Art Downloader\AlbumArt.exe" /sources "LastFM Artist" /ar "%artist%" /mn 300 /mx 1000 /path "$replace(%_path%,%_filename_ext%,)artist.jpg"
until now, that could only save one picture.
Title: artistArt downloader.
Post by: Innuendo_ on 2010-01-01 17:17:28
paradog, this is majorly cool. Not only usable with foobar2000, but I can see how it could easily be made to work with mp3tag and Total Commander as well! That's pure awesome.

Thank you for your hard work & don't worry about your English. Your English skills are at least as good, if not better, than some native English speakers I have run across.
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-01 18:29:21
Very nice and useful! Thanks!

I, however, would be happy to see someone picking up the source and writing an origin foobar component with some nice features more: f.e. window where you can browse by artist and see already downloaded pictures or preview pictures before downloading ...
Title: artistArt downloader.
Post by: mudlord on 2010-01-01 22:12:43
....to do that, I need a decent XML parser it seems.
Title: artistArt downloader.
Post by: paradog on 2010-01-02 04:14:09
Very nice and useful! Thanks!

I, however, would be happy to see someone picking up the source and writing an origin foobar component with some nice features more: f.e. window where you can browse by artist and see already downloaded pictures or preview pictures before downloading ...


Sorry, if somebody is going to write an original component, my source can't be helpful (because it's all C#).. However I think making a GUI for it would be enough..

I'll see if I can do it when I has some time.

To mudlord
I wrote it in c#, just using System.Xml; This is a very small program, only 200 lines..

To all others, thanks for reply..
Title: artistArt downloader.
Post by: mudlord on 2010-01-02 04:23:34
Quote
I wrote it in c#, just using System.Xml; This is a very small program, only 200 lines..


I noticed, and thats the nice strength of .NET (all the inbuilt functionality)  Unfortunately for me to do a component, it has to be native C++. Which means I need a external XML parser as well as I need to read up on using the Wininet API for reading data from Internet streams...
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-02 14:07:21
However I think making a GUI for it would be enough..

I'll see if I can do it when I has some time.
Thanks for considering it. I think that could be something simple: a) a nice window popup with progressbar instead of command prompt window and b) a result window that contains images to be checked for downloading.

I have some questions:

The downloaded pictures have names that are builded by artist name and number. What is the meaning of the number? The order of storage on disk of randomly picked images or order in Last.fm? I would like to know if for example "David Bowie_12" would be always the same image. In that context let me ask for two three special values for <number> parameter:
One question more: So far i didn't have success to download images for multiple artists with foo_run wich i am not familiar enough. Did art.exe support that at all and if yes is there a way to achieve that with foo_run?


Once again: many thanks for this little tool, it helped me so far to download a huge amount of tasteful images.
Title: artistArt downloader.
Post by: paradog on 2010-01-02 15:34:43
However I think making a GUI for it would be enough..

I'll see if I can do it when I has some time.
Thanks for considering it. I think that could be something simple: a) a nice window popup with progressbar instead of command prompt window and b) a result window that contains images to be checked for downloading.

I have some questions:

The downloaded pictures have names that are builded by artist name and number. What is the meaning of the number? The order of storage on disk of randomly picked images or order in Last.fm? I would like to know if for example "David Bowie_12" would be always the same image. In that context let me ask for two three special values for <number> parameter:
  • "ALL" -> would download all images
  • "REST" -> would take a look in the storage folder to find out the image with highest number and then download the rest of available images (assuming the order is fixed by last.fm). Useful to download newly added images.
  • "10 MORE" -> similar like "Rest" but just downloads 10 images more.
One question more: So far i didn't have success to download images for multiple artists with foo_run wich i am not familiar enough. Did art.exe support that at all and if yes is there a way to achieve that with foo_run?


Once again: many thanks for this little tool, it helped me so far to download a huge amount of tasteful images.

1.filename: the number is the order of the image in returned xml..yes,there is a possibility "David Bowie_12" won't be the same file. I mentioned it in the Issue 1 before posting here..
2."ALL" and "REST" are not quite practical.. There are too many images in Last.fm's collection, usually one artist can have over 100 photos. Downloading that many... is just not practical.
3.So far it only support one artist.. And I don't if foo_run supports calling with multiple artists as well..Just tried, it seems it can only work for the track you click right click on.

More:
I have being doing this thing since morning(GT+8)..and fix Issue 1, and made a working GUI..I'm still testing, when I'm done, I will update this post..
Title: artistArt downloader.
Post by: paradog on 2010-01-02 16:36:01
Update

New Gui Version

Usage

First browse the destination path by clicking on the disabled(gray) textbox, Then input the artist name in the other textbox, number in the numberbox.
Click "Get list"..and wait until the list with preview is fetched.

It also support usage in the commandline.

Code: [Select]
artistArtGui.exe <artist> <save_path> <number>


Click download under each preview.Then the image will be download to destination path with Last.fm's number identifier.(Thus,  Issue 1  won't happen again)

Note:
1.Select path first, or it won't judge whether you have already downloaded that file.
2.If previous downloaded file is found, using local file for preview, "Download" label would be changed to "Downloaded".

Download Gui Version Here (http://artistart.googlecode.com/files/artistArtGui.exe)

Fixed Issues in Commandline Version

Issue 1:  save filename may not be identical to remote file ....fixed

*Issue 1 ls what q-stankovic mentioned in his post about the filename problem, which he explained better...

Commandline Version Download Url is not changed.

Download Commandline Version (http://artistart.googlecode.com/files/art.exe)

other stuff:

Because I'm using CERNET, an ISP that you can't tolerate when going outside China, or even sometimes within, I tried my best to
test it before release.. But there will be bugs.. hope you can tell me if you encounter one..

And .. Somebody tell me why I can't edit my original post?? I can only add an reply here, hope I've not violated your rules Hydrogenaudio..
Title: artistArt downloader.
Post by: Chaser on 2010-01-02 17:20:48
As soon as your are elevated to the "Developer" usergroup you can edit your posts.
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-02 20:02:48
Hello paradog! 

I had a quick test with artistArtGui and it looks very good! I like especially the solved issue1 and the feature that downloaded images are recognized.

Here a list with some suggestions:

1. The field for path and artist name could be a little bit longer to show full/more content.
2. An option inside the Gui to show only images that aren't downloaded or only images that are downloaded
3. A possibilty to select multiple images and to download the selection
4. A possibilty to download all images displayed in the Gui


Here some problems i discovered.

1. If artistArtGui is called from commandline by foo_run then the "get list"-button could be activated automatically (additional parameter necessary?)
2. If you choose a relative high number for images (for example 100) an error message is shown. I assume that more images are demanded than there are on last.fm. Any way for a workaround to at least show all available images without any error message?

Edit
"ALL" and "REST" are not quite practical.. There are too many images in Last.fm's collection, usually one artist can have over 100 photos. Downloading that many... is just not practical.
Well, the most artist don't have more than 100 images and even if the time to download them is not too much. I didn't count the time but i would estimate that you need 1 minute to download 100 images completely. Furthermore in context of artistArtGui "All images" would not mean to download them but to fetch them for display before downloading.

Edit2
I have no chance to create a download path that contains artists name. I tried following in foo_run: artistArtGui.exe "%artist%" "C:Artist Art%artist%" 10 But the path field in artistArtGui remains empty.

Edit3
Quote from: q-stankovic link=msg=676876 date=
3. A possibilty to select multiple images and to download the selection
i am such an idiot: you just have to click "download" and before you have a chance to click another "download the image is already downloaded. How it is know you can even faster download a selection. However, possibility to download all images in Gui is useful.

Moderation: @mod: Please merge my two last post
Title: artistArt downloader.
Post by: paradog on 2010-01-03 07:12:56
Update..Again

Changed

Parameter format changed*:
<save_path> parameter is changed in GUI version and commandline version.
I don't think we like that random string at the end of <save_path>. so I modified it to be used as standard directory path.


Call from foobar like this, if you want to download images into your music directory.
Code: [Select]
artistArtGui.exe "%artist%" "$replace(%path%,%filename_ext%,)" 100


Call like this, if you want to download images into specific directory.(Here is "K:\artistart\by_artistName\")
Code: [Select]
artistArtGui.exe "%artist%" "K:\artistart\by_artistName\" 100


Quote
1. The field for path and artist name could be a little bit longer to show full/more content.

1. Ui is modified now, making browse  field like a status bar.
Quote
2. An option inside the Gui to show only images that aren't downloaded or only images that are downloaded

err..I didn't get around to add this feature yet.. It's not my priority in this project..
Quote
3. A possibilty to select multiple images and to download the selection

I'm using multiThreading, so you can click many "download" buttons at the same time, and watch all their progress bars roll 
Quote
4. A possibilty to download all images displayed in the Gui

Feature Added now, The "Download All" button will download images on current page..
Quote
I have no chance to create a download path that contains artists name. I tried following in foo_run: artistArtGui.exe "%artist%" "C:Artist Art%artist%" 10 But the path field in artistArtGui remains empty.

Will now create folder..

Now, the preview will display in pages according to your number setting.
Set the max number to Last.fm's 50. But you can always turn to the next one..

Click on the downloaded image will open it.

Commandline Download url is the same:
Commandline (http://artistart.googlecode.com/files/art.exe)
Gui Version is changed to
Gui (http://artistart.googlecode.com/files/artGui.exe)

Title: artistArt downloader.
Post by: q-stankovic on 2010-01-03 12:56:33
Wow, the pages are a very elegant and useful solution. Thanks!

This almost is now perfect for me: just filtering by display by "donloaded, not downloaded, all" would be very useful for either browsing one artist downloaded pictures or watch not downloaded images. Combining this filter feature with pages would be great.

Another little features: scrolling with mouse wheel and deleting downloaded images. And: "Reach limit" sounds like a demand - "Limit is reached" sounds somehow better.   
Title: artistArt downloader.
Post by: odyssey on 2010-01-03 13:28:39
Umm, foo_uie_biography already does this...
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-03 13:36:37
So what? 

I don't like foo_biography!
Title: artistArt downloader.
Post by: mudlord on 2010-01-03 23:39:20
@paradog:

Your recent changes look good. I might do a component that might interface with this.
Title: artistArt downloader.
Post by: Benji99 on 2010-01-04 06:29:36
Wow this tool works really well!
One little problem though, is there anyway to edit the file name of the pictures?
More precisely, I'm trying to fetch pictures for 'AC/DC' and the '/' in the name seem to be creating problems for the filename.
Any chance you could an option so that the program would remove any illegal characters?

NOTE: I'm using the commandline version
Thanks!
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-04 18:59:45
just filtering by display by "donloaded, not downloaded, all" would be very useful for either browsing one artist downloaded pictures or watch not downloaded images.

In the meantime i think that feature would have a bad side effect: each time you download an image displayed by "filter: show not downloaded" would cause removal of image and hence an annoying reordering of rest images that makes quick downloading of remaining pictures impossible. You anyway just can see just 12 pictures at same time in window, so you have an good overview anyway.

What do you think of possibility to delete stored picture (maybe by clicking an red "X")?
Title: artistArt downloader.
Post by: paradog on 2010-01-05 07:14:39
Quote
Quote
just filtering by display by "donloaded, not downloaded, all" would be very useful for either browsing one artist downloaded pictures or watch not downloaded images.


In the meantime i think that feature would have a bad side effect: each time you download an image displayed by "filter: show not downloaded" would cause removal of image and hence an annoying reordering of rest images that makes quick downloading of remaining pictures impossible. You anyway just can see just 12 pictures at same time in window, so you have an good overview anyway.

What do you think of possibility to delete stored picture (maybe by clicking an red "X")?


I add two small links in the program to switch display. But only "downloaded" and "all".. filtering not downloaded may make current page blank, and some other problems, so I didn't add it.
But viewing local files works fine. All local files will display in one page.

"A"-All.
"B"-Browse local files.
* I want to make the UI minimized..So sorry about the one-letter link.

Delete local files is added now.
The "Downloaded" will be changed to "Delete" if local file is found or downloading is completed.
Deleting image in standard display (both remote and local files) will refresh the displaying image to
a preview from Last.fm server.

But it will still remain in the display window if you are browsing local files, even though the file is already deleted.
That's because download link is not included in the filename, so it can't get a preview version, and I don't want to rerender the
display. Instead the label will be changed to "Deleted".

Manually refreshing is there by clicking "B" again.

Quote
Wow this tool works really well!
One little problem though, is there anyway to edit the file name of the pictures?
More precisely, I'm trying to fetch pictures for 'AC/DC' and the '/' in the name seem to be creating problems for the filename.
Any chance you could an option so that the program would remove any illegal characters?

NOTE: I'm using the commandline version
Thanks!

Okey.Now, it will change all illegal chars in artist name to "-"

Quote
Another little features: scrolling with mouse wheel and deleting downloaded images. And: "Reach limit" sounds like a demand - "Limit is reached" sounds somehow better. tongue.gif wink.gif

Scrolling with mouse is enabled as default ,but I was stupid not to give that panel focus..
Now, that may works, if not , try clicking on the blank part of the display panel.


Commandline Version:
Commandline (http://artistart.googlecode.com/files/art.exe)
Gui Version is changed to
Gui (http://artistart.googlecode.com/files/artGui.exe)

BTW:
Because my Internet connection is sometimes dying hard to reach Last.fm server, testing the program is extremely horrible for me.
Sometimes I get replies from Last.fm , sometimes I don't. I've been testing it using my local cache. But it still makes debug like hell.
So, I will stop developing it soon. It works for me quite well though.. as long as I don't make requests from server as often as I do when debugging .
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-05 17:43:29
Hello paradog,

there is a small bug:

when you delete a picture in browse-mode and then you switch to all-mode the deleted picture is still decribed as "downloaded" (without any scrollbar).

Another point: The A and B links look strange and are not intuitive. Why don't you place just two big buttons at top of the window: "All Art" and "Browse Downloaded" - that is more friendly. 

Can you also take a look into the interplay between field for artist name, "get list" button and page-changing. I don't know how to describe it: sometimes the get-list button is disabled and sometimes not. You can change artist name in artist name field and can't get list.

Thanks!

Edit:
The confirmation window after deleting is annoying: it is faster to redownload a picture than to confirm a deleting.
Title: artistArt downloader.
Post by: chrissl on 2010-01-06 06:35:14
Code: [Select]
 "C:\Program Files\foobar2000\Artists\art.exe" "%artist%" "%path%" 1


Is it possible to expand the command line so it's automatically renaming the file to %artist%.jpg?
Title: artistArt downloader.
Post by: paradog on 2010-01-07 13:37:02
Code: [Select]
 "C:\Program Files\foobar2000\Artists\art.exe" "%artist%" "%path%" 1


Is it possible to expand the command line so it's automatically renaming the file to %artist%.jpg?


That will throw image's identity away, may cause problem in the future...
Title: artistArt downloader.
Post by: garbanzo.bean on 2010-01-07 13:50:10
the GUI version is great!

any chance you could show the dimensions of each image below the preview? i don't want to bother grabbing tiny thumbnail-sized pics...
Title: artistArt downloader.
Post by: carmenm on 2010-01-07 15:08:02
Very nice application. One thing that bug me right away. Problem with "the"

YOu should make no difference between
The artist
artist
artist, The
the artist
artist, the
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-07 18:44:20
Carmenm,

i am not sure what you mean? Are your tags for artist builded in this inconsistent way? If that is the case so you could tag them in a consistent way and use tag <artistsortorder> for handling of article. IMHO not every problematic scenario should be adressed by additional features as long as they are caused by uncommon and inconsistent user behaviour.
Title: artistArt downloader.
Post by: carmenm on 2010-01-08 08:21:19
I wasnt using any tag at all. I was just launching your gui, typing a band s name, and see the result.
I saw that i didnt get the same result  with "The album leaf", "album leaf" and "album leaf, The".
So i think that artistdownloader should internally concatenate the 3 results.
Title: artistArt downloader.
Post by: mobyduck on 2010-01-08 08:37:10
Would it be possible to keep the correct file extension of the downloaded images instead of always using jpg? Opening them with Irfanview I'm often prompted with a dialog asking if I want to rename to gif, png, etc.

Thanks.

Alessandro
Title: artistArt downloader.
Post by: marc2003 on 2010-01-08 09:17:47
"album leaf, The"


you're being deliberately awkward. you should know last.fm always use the full name including any prefixes. not an issue for the developer IMO.
Title: artistArt downloader.
Post by: paradog on 2010-01-09 09:58:21
To mobyduck:
Sorry about that.. I just assume that jpg will work fine with most apps, didn't know Irfanview would throw something out. After all, You shouldn't trust image file's extension, they are too often wrong..

I fixed this bug, please redownload your file..

To carmenm:
I don't think that's necessary.. You should always type in the right artist name, as they are mostly known as..

To garbanzo.bean:
Let me see if I can find space to place dimensions ..I think I will if I do..

Title: artistArt downloader.
Post by: carmenm on 2010-01-09 11:30:19
"album leaf, The"


you're being deliberately awkward. you should know last.fm always use the full name including any prefixes. not an issue for the developer IMO.

No i am not it s a very common way to save it and to be sure your artists are sorted the right way. It s also used for movies for example.
Title: artistArt downloader.
Post by: marc2003 on 2010-01-09 12:25:29
that's just your personal preference. how you categorise your music is irrelevant.

as a last.fm user, if you want to use their services (for which this component is just a simple tool) then you need to think like they do.

http://www.last.fm/music/The+Album+Leaf (http://www.last.fm/music/The+Album+Leaf)
Title: artistArt downloader.
Post by: garbanzo.bean on 2010-01-09 12:32:03
carmenm, just save as "the artist" and use this script to display/sort it as "artist, the"

$if($strcmp($left(%album artist%,4),The ),$right(%artist%,$sub($len(%album artist%),4))', 'The,%album artist%)

credit to whoever figured it out, i just stole it from another thread a while back
Title: artistArt downloader.
Post by: mobyduck on 2010-01-09 14:40:09
Sorry about that.. I just assume that jpg will work fine with most apps, didn't know Irfanview would throw something out. After all, You shouldn't trust image file's extension, they are too often wrong..

I fixed this bug, please redownload your file.
No need to apologise.

But I'm not sure I understand: are you saying it should now save with the correct file extension? Cause I re-downloaded and tried again and I see no difference...

Alessandro
Title: artistArt downloader.
Post by: paradog on 2010-01-09 16:26:31
Well it will save with the extension from Last.fm.
I just tried that with Taylor Swift, and it saved some png files, so I think if you are still getting errors, that would be what I said, the original uploader uploaded the file with the wrong extention.

BTW: I think your software should have the option to turn off throwing errors about wrong image format..I use google's Picasa.

Moderation: Removed unnecessary full quote of the preceding post.
Title: artistArt downloader.
Post by: carmenm on 2010-01-19 18:05:19
Well it will save with the extension from Last.fm.
I just tried that with Taylor Swift, and it saved some png files, so I think if you are still getting errors, that would be what I said, the original uploader uploaded the file with the wrong extention.

BTW: I think your software should have the option to turn off throwing errors about wrong image format..I use google's Picasa.

Moderation: Removed unnecessary full quote of the preceding post.

Hi,

I am thinking about using this software to download pictures for artists. The thing that i need it for 2 different cases.
In one i want one pictures of the artist(best quality possible) named with my choice(which is actually the artist named modified to respect foobar v1.0 ansi conventions, *->x ....)
In the other case i want a picture of this artist (the small one) that i will name with a suffix "_small" and with the same convention as before.

Right now i do that in foobar itself but it freezes foobar sometimes.

Do you think you can add options for me to be able to use your software?

BTW: how do you rename artists ? do you use foobar rules?

THanks
Title: artistArt downloader.
Post by: q-stankovic on 2010-01-19 20:31:54
What you request would break the component.

That will throw image's identity away, may cause problem in the future...

Title: artistArt downloader.
Post by: carmenm on 2010-01-19 21:17:05
you mean renaming the file?
Title: artistArt downloader.
Post by: marc2003 on 2010-01-19 21:48:00
i'm guessing it's to prevent it downloading the same image more than once.

you could work around this by specifying your own target folder named however you like - one folder per artist.
Title: artistArt downloader.
Post by: carmenm on 2010-01-19 22:00:02
i'm guessing it's to prevent it downloading the same image more than once.

you could work around this by specifying your own target folder named however you like - one folder per artist.

Yeah that could work but i prefer to have one lastfm data folder . I am looking at albumartdownloader as command line. works fine except for the wsh call
Title: artistArt downloader.
Post by: marc2003 on 2010-01-19 22:03:01
one lastfm data folder with subfolders. what's the problem?
Title: artistArt downloader.
Post by: carmenm on 2010-01-20 08:20:28
I just dont really like it
Title: artistArt downloader.
Post by: marc2003 on 2010-01-28 16:58:30
just posting to say thanks paradog. your command line tool is great.

and thanks for providing the source. i've compiled myself a version that doesn't use the "original" images but downloads the "extralarge" ones instead. quite a bit of bandwidth/storage to be saved when downloading multiple images per artist. i just need to get my head around the GPL to see what i have to do to comply with it and i'll post my mod if anybody is interested.
Title: artistArt downloader.
Post by: paradog on 2010-02-06 09:25:41
Encouraged by your replies, I decided to write a slightly bigger tool for downloading and browsing artist images..
So with much help from q-stankovic here comes

lastFmArtist
Introduction
This helps to download and manage artist images.

How to Use
1.How to call from commandline.
 
Code: [Select]
lastFmArtist.exe /artist <can be many artists, separated with space,best surrounded with "> /path <path> /num <number of images one page have>

  Example:
 
Code: [Select]
lastFmArtist.exe /artist "paramore" "taylor swift" /num 10 /path d:\dd



2.Search
  Type in artist name in the textbox, set the number of images on the right, and click Search button.

3.Display Mode
  1)All Images: Display local and remote images of the artists, local images are displayed based on this artist's path setting.(Default library path)
  2)Local: Only display local images in one page.

4.Library
  I recommend to put all images in one directory, the library directory.
  You can check all artists' images by clicking "Display All Artists" which will search through your library directory for different artists based on the filenames, then display them grouped by artist name in different tabs.
  .!:Will consume a lot of resources if your collection is HUGE.
  You can specify your library path by clicking "Load Library".

5.Summary
  This will display artist summary when enabled.Double click the textbox to change font.

6.Other
  Double click on tab to close that tab.
  Left click on downloaded image to open it with default image viewer.
  Right click on downloaded image to locate this image.
  Pausing your mouse over some control can give you tool tip.
  Right click on "Download Status" to view about and help window.

Screen shot:
(http://i.imgur.com/JxbUCl.jpg) (http://i.imgur.com/JxbUC.jpg)

Download Link
Lastfmartist (http://artistart.googlecode.com/files/lastFmArtist.exe)

Src
Code: [Select]
svn checkout http://artistart.googlecode.com/svn/lastFmArtist/ lastFmArtist-read-only
Title: artistArt downloader.
Post by: Chaser on 2010-02-21 16:10:11
This is a great tool! How does it behave if it is called with let's say "download 10" images but in that directory 10 images are already present. Does it skip then or download an additional set of 10 images? (Skipping would be preferred by me and it seems to do so..)

edit: I was talking about the simple art.exe
Title: artistArt downloader.
Post by: marc2003 on 2010-02-21 16:52:59
it skips them. you'd see this if you ran it from a proper command prompt - my WSH panel suppresses the command prompt window.
Title: artistArt downloader.
Post by: Chaser on 2010-02-21 18:02:26
Thanks.
Title: artistArt downloader.
Post by: q-stankovic on 2010-02-21 18:35:55
Hello paradog,

i have one suggestion: the images are sorted by "recently popular". Concerning the need to find new images added to lastfm after you have searched last time it would be better to have them sorted by "recently added". So all new pictures would be displayed at beginning.
Title: artistArt downloader.
Post by: Chaser on 2010-02-21 19:14:42
Sometimes one of those two pictures is downloaded:
(http://img717.imageshack.us/img717/1001/fergiefeatludacris32825.th.png) (http://img717.imageshack.us/i/fergiefeatludacris32825.png/)
[img=http://img63.imageshack.us/img63/3452/fergiefeatludacris26044.jpg] (http://img63.imageshack.us/i/fergiefeatludacris26044.jpg/)

It would be nice if those were not downloaded or deleted after downloading. I don't know the insides of this small tool, though I guess a CRC check after downloading would be one of the easiest solutions.

(My songs are properly tagged.)
Title: artistArt downloader.
Post by: servimo on 2010-02-21 20:41:07
I have this tags as %artist%:

Pat Metheny
Pat Metheny Group
Pat Metheny Trio
Pat Metheny with...

and

Miles Davis
Miles Davis Sextet
Miles Davis Septet
Miles Davis Nonet

How to get the same ArtistArt displayed?

I know this is out of topic, but I am looking for somebody that helps me. Don't know much about.
I think that the best solution is to change the %artist% tag to only one tag without the rest, but maybe somebody have a better solution, by doing this changes I loose information.

* Found a solution: I will make foobar2000 look for ArtistArt at %album artist%. Bingo!
Title: artistArt downloader.
Post by: Chaser on 2010-02-22 16:59:42
and thanks for providing the source. i've compiled myself a version that doesn't use the "original" images but downloads the "extralarge" ones instead. quite a bit of bandwidth/storage to be saved when downloading multiple images per artist. i just need to get my head around the GPL to see what i have to do to comply with it and i'll post my mod if anybody is interested.


How about sending paradog the patch so he can apply it to the source? May be implement this as an optional switch "-size s/m/l" where "s" for example stands for small "20kb to 100kb", etc..
I do not know how much flexibility the api of last.fm offers.
Title: artistArt downloader.
Post by: marc2003 on 2010-02-22 17:16:35
at the time i had a very small artist art panel so that's why i modified it.

but all that's gone out the window now i have a much larger display. i now prefer the original images that this tool provides.
Title: artistArt downloader.
Post by: grounder on 2010-03-15 22:04:26
The problem with the symbol & in name artist

Example Above & Beyond
Find only Above

Replace & to and not approached. This not correct Artist name.
Need  to solve this problem.

Good work
Title: artistArt downloader.
Post by: paradog on 2010-03-16 01:20:19
The problem with the symbol & in name artist

Example Above & Beyond
Find only Above

Replace & to and not approached. This not correct Artist name.
Need  to solve this problem.

Good work


Just tested it, The CMD version doesn't have that problem. Maybe you are using the GUI version?

Are you calling like

Code: [Select]
art "above & beyond" f:\dd 1
?

You should always put  quotation marks around the artist name.
Title: artistArt downloader.
Post by: grounder on 2010-03-16 10:47:16
Code: [Select]
art "above & beyond" f:\dd 1

Yes cover download, but
download from artist above rather than above & beyond

http://www.lastfm.ru/music/Above%2B%2526%2BBeyond (http://www.lastfm.ru/music/Above%2B%2526%2BBeyond) (37 covers) need this
http://www.lastfm.ru/music/Above (http://www.lastfm.ru/music/Above) (2 covers) but download this

The problem with all artists whose name is found symbol &.
All name artist cropped up this symbol.

Quote
You should always put quotation marks around the artist name.

of course.


Title: artistArt downloader.
Post by: paradog on 2010-03-17 02:09:47
To grounder:
Still, It's ok with me..
Have you tried using the new version? I've updated it serial times.
Title: artistArt downloader.
Post by: grounder on 2010-03-17 10:22:09
2paradog

I'm update new version 9kb (old my version was 7kb). Now work perfectly.
Many thanks.
Title: artistArt downloader.
Post by: grounder on 2010-03-19 12:32:41
Small feature request
When creating request for nonexistent artist's name in database last.fm.
I get a message with error 400, and need press any button to continue.
Should make key in command string that would allow automatically closed the window with non-existent query.
Title: artistArt downloader.
Post by: jahpal on 2010-03-21 06:13:48
k
Title: artistArt downloader.
Post by: garbanzo.bean on 2011-08-04 02:06:20
Not sure if the author of this little app is still around, but I'm hoping

It has stopped working for me. I get the same error if I use the older version or if I use the newer GUI version.

The request was aborted: The request was canceled.

Any suggestions?



(http://i23.lulzimg.com/i/33903c.png)

Title: artistArt downloader.
Post by: Quitch on 2011-10-02 21:18:17
I've installed foo_run and then setup a command called Artist Art

"C:\Program Files (x86)\foobar2000\art.exe" "%artist%" "%path%" 5

However, when I trigger this command, nothing happens.
Title: artistArt downloader.
Post by: marc2003 on 2011-10-02 21:28:25
this program expects a path to a folder whereas you've supplied the path to a file. try

Code: [Select]
"C:\Program Files '('x86')'\foobar2000\art.exe" "%artist%" "$directory_path(%path%)" 5


also, parentheses are special characters in foobar title formatting so single quotes are needed.
Title: artistArt downloader.
Post by: Quitch on 2011-10-02 22:48:45
this program expects a path to a folder whereas you've supplied the path to a file. try

Code: [Select]
"C:\Program Files '('x86')'\foobar2000\art.exe" "%artist%" "$directory_path(%path%)" 5


also, parentheses are special characters in foobar title formatting so single quotes are needed.


Got it, thanks!
Title: artistArt downloader.
Post by: acmodeu on 2013-10-21 16:49:35
Seems like it stopped working a couple of days ago.
Title: artistArt downloader.
Post by: marc2003 on 2013-10-21 16:58:55
yup, you can thank last.fm for that. http://www.last.fm/group/Last.fm+Web+Servi...21604/_/2216689 (http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/2216689)
Title: artistArt downloader.
Post by: acmodeu on 2013-10-22 09:43:38
Great!