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: CoverDownloader (Read 333740 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

CoverDownloader

Reply #175
I don't know about dealing with the other sources, but Google Image Search shows the picture size directly on the result page.

CoverDownloader

Reply #176
how can I completely uninstall the new version? i.e where are the settings stored?
--alt-presets are there for a reason! These other switches DO NOT work better than it, trust me on this.
LAME + Joint Stereo doesn't destroy 'Stereo'

CoverDownloader

Reply #177
Nice job, I'm using it right now! I love the fact and I can use it to fetch the itunes covers

CoverDownloader

Reply #178
how can I completely uninstall the new version? i.e where are the settings stored?

Code: [Select]
%userprofile%\Local Settings\Application Data\Damage,_Inc

Just delete everything in there.

CoverDownloader

Reply #179
david_dl, thank you for this great tool.
Here I have a request: is it possible to get the picture size (W x H) displayed next to its title?


All the code needed to do it is there, to tell the truth I can't be bothered with this, as the program does everything I need. However the source code is available on the first page in the hope that someone will improve it by adding stuff like this.

CoverDownloader

Reply #180
Can this do batch downloading of all ocvers for a group of files?



CoverDownloader

Reply #183
Is there any way to be able to use last.fm artist images as a source?

Similar to the capability of foo_run to go to the page?
"http:$char(47)$char(47)www.last.fm$char(47)music$char(47)$replace(%album artist%%, ,$char(43))$char(47)$char(43)images"

CoverDownloader

Reply #184
I'd be willing to take a whack at a last.fm scraper but do they have actual album art pages? The foo_run string you gave is for artist images, not album specific images.

CoverDownloader

Reply #185
I was actually interesting specifically in artist images, but album covers would be nice too.

CoverDownloader

Reply #186
I just want to thank you for this great tool david_dl!
I never used a album/cover art plugin before because of all the hassle to download all the covers for all my albums.
Now this weekend I installed your tool in combo with foo_run and all my albums have cover art now!

CoverDownloader

Reply #187
As promised, here are my tips:

Use
"C:\Programme\foobar2000\coverdownloader\albumart.exe" "$ascii($if($meta(album artist),,%artist%))" "$ascii(%album%)" "$replace(%_path%,%_filename_ext%,)cover.jpg"
with foo_run.
It doesn't take the artist if its a VA album. And with $ascii() it can deal with stupid caracters such as äöüß ...

Here's the script to use the german amazon-service together with the "normal" (us) one.
Code: [Select]
namespace CoverSources
import System.Xml
import System.Drawing
import util

class Amazonde:
    static SourceName as string:
        get: return "Amazon-de"
    static SourceVersion as decimal:
        get: return 0.2
    static def GetThumbs(coverart,artist,album):
        x=System.Xml.XmlDocument()
        x.Load("http://xml.amazon.com/onca/xml3?f=xml&t=webservices-20&dev-t=1MV23E34ARMVYMBDZB02&type=lite&page=1&mode=music&locale=de&KeywordSearch="+EncodeUrl(artist+" "+album))
        results=x.GetElementsByTagName("Details")
        coverart.SetCountEstimate(results.Count)
        for node in results:
            thumb=System.Drawing.Bitmap.FromStream(GetPageStream(node["ImageUrlMedium"].InnerText))
            if thumb.Height>10:
                coverart.AddThumb(thumb,node["ProductName"].InnerText,300,300,node["ImageUrlLarge"].InnerText)
        
    static def GetResult(param):
        return param


... david_dl, thanks for adding Google&Itunes! Now its useful for rarer albums too! Once more: Great prog!!!

but what's the browser for - how do i use it?

CoverDownloader

Reply #188
Would it be possible to use www.discogs.com as a source? They have some covers that I haven't seen anywhere else.

CoverDownloader

Reply #189
Two very simple questions that are holding me back.  What do I type to find Various Artists albums in Itunes?  How do I use the browser?

:-D

CoverDownloader

Reply #190
As promised, here are my tips:

Use
"C:\Programme\foobar2000\coverdownloader\albumart.exe" "$ascii($if($meta(album artist),,%artist%))" "$ascii(%album%)" "$replace(%_path%,%_filename_ext%,)cover.jpg"
with foo_run.
It doesn't take the artist if its a VA album. And with $ascii() it can deal with stupid caracters such as äöüß ...
The program should be able to deal with such characters, they work for me, when I search for 'Mötley Crüe' or 'Ágætis Byrjun'
Quote
Here's the script to use the german amazon-service together with the "normal" (us) one.
Code: [Select]
namespace CoverSources
import System.Xml
import System.Drawing
import util

class Amazonde:
    static SourceName as string:
        get: return "Amazon-de"
    static SourceVersion as decimal:
        get: return 0.2
    static def GetThumbs(coverart,artist,album):
        x=System.Xml.XmlDocument()
        x.Load("http://xml.amazon.com/onca/xml3?f=xml&t=webservices-20&dev-t=1MV23E34ARMVYMBDZB02&type=lite&page=1&mode=music&locale=de&KeywordSearch="+EncodeUrl(artist+" "+album))
        results=x.GetElementsByTagName("Details")
        coverart.SetCountEstimate(results.Count)
        for node in results:
            thumb=System.Drawing.Bitmap.FromStream(GetPageStream(node["ImageUrlMedium"].InnerText))
            if thumb.Height>10:
                coverart.AddThumb(thumb,node["ProductName"].InnerText,300,300,node["ImageUrlLarge"].InnerText)
        
    static def GetResult(param):
        return param


... david_dl, thanks for adding Google&Itunes! Now its useful for rarer albums too! Once more: Great prog!!!

but what's the browser for - how do i use it?


Excellent, I didn't realise the German version of amazon would actually have different products for sale.

The browser requires foo_comserver installed, when you have this installed, open the browser and click the refresh button on the toolbar. It will load your media library from foobar2000, and look for the filename you specify under 'Default Art Filename' in settings in the same folder as every album in your library. Albums with this file get a green tick, a red cross means they lack art. You can double click on any album to add it to the queue, and when the browser has finished loading, you can click the little clock button on the toolbar to add all the albums that lack art to the queue in one go.

CoverDownloader

Reply #191
A++ if you have a paypal acct Id gladly donate towards the effort to keep this going.

I do have one question and maybe its something Im overlooking...

Can this be made to function using directory structures? As an example, a small window pane on the left hand side showing the directory structure so that you can click the directory and it will use the directoy name as the info required for the search (i.e. I have Z:/Music/Madonna - Ray of Light), or maybe it can simply scan the FLAC file for the tag information it needs.

Album Cover Art Downloader does this. You select the album, it searches for the art and you click the button to save it to your folder. No typing is needed and this is a HUGE time saver.

I have over 1600+ CD's in my library and I want to use your program to find covers for all them, and having to type each one in and then select the output directory, etc etc, its a long long process.

CoverDownloader

Reply #192
Tirade: You should be able to use $directory(%path%,1) or similar as a parameter in your foo_run string to pass the album's directory name as the field to search by when you launch cover downloader.

CoverDownloader

Reply #193
Two very simple questions that are holding me back.  What do I type to find Various Artists albums in Itunes?  How do I use the browser?

:-D


Just the album name & leave artist blank. My run-code (see above) does this automatically.


@david_dl: Wow, this browser-feature sounds AMAIZING! I'll try it when i'm back from my parents...
for me, coverdownloader produced no results with äöü - but with $ascii() it works fine. Maybe this depends on the language of the OS or other stuff? (mine's german...)

edit: i'm using win2k btw.
... but the thing with displaying (W x H) really would be great, as you don't want to accidentially download 150x150-covers when there are also 500x500ers to display in your 300x300 album art view.

CoverDownloader

Reply #194
Tirade: You should be able to use $directory(%path%,1) or similar as a parameter in your foo_run string to pass the album's directory name as the field to search by when you launch cover downloader.


I use a squeezebox and do not use foobar for playing music.

Is there a way to have the program show a directory tree like other art downloaders?

CoverDownloader

Reply #195
I'd like to request a script to download album art from discogs and from saikosounds for psychedelic album art if its possible, i'd be appreciated.
You're talking to my guy all wrong... It's the wrong tone. Say it again, and i'll stab you in the face with a soldering iron!

CoverDownloader

Reply #196
A couple of people have requested a discogs script, so I thought I'd have a go.

Enjoy.

Code: [Select]
namespace CoverSources
import System
import System.Text
import System.Text.RegularExpressions
import util

class Discogs:
static SourceName as string:
get: return "Discogs"
static SourceVersion as decimal:
get: return 0.1
static def GetThumbs(coverart,artist,album):
query as string = artist + " " + album
query.Replace(' ','+')
obidResults = GetPage(String.Format("http://www.discogs.com/search?type=all&q={0}", EncodeUrl(query)))

//Get obids
obidRegex = Regex("<a href=\"/release/(?<obid>\\d+)\"><span[^>]+>[^-]+- (?:</?em>|(?<name>[^<-]+))+</span>", RegexOptions.Multiline)
obidMatches = obidRegex.Matches(obidResults)
coverart.SetCountEstimate(obidMatches.Count) //Probably more than this, as some releases might have multiple images

for obidMatch as Match in obidMatches:
//Construct the release name by joining up all the captures of the "name" group
releaseNameBuilder = StringBuilder()
for namePart in obidMatch.Groups["name"].Captures:
releaseNameBuilder.Append(namePart)

releaseName = releaseNameBuilder.ToString()

//Get the image results
imageResults = GetPage(String.Format("http://www.discogs.com/viewimages?what=R&obid={0}&showpending=1", obidMatch.Groups["obid"].Value))
imageRegex = Regex("<img src=\"(?<url>http://www\\.discogs\\.com/image/R-\\d+-\\d+.jpe?g)\" width=\"(?<width>\\d+)\" height=\"(?<height>\\d+)\"")
imageMatches = imageRegex.Matches(imageResults)
for imageMatch as Match in imageMatches:
coverart.AddThumb(imageMatch.Groups["url"].Value, releaseName, Int32.Parse(imageMatch.Groups["width"].Value), Int32.Parse(imageMatch.Groups["height"].Value), imageMatch.Groups["url"].Value)

static def GetResult(param):
return param

CoverDownloader

Reply #197
for me, trying to compile the discogs.boo script creates the following errors:

Code: [Select]
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(8,1) - expecting "INDENT", found 'static'.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(9,1) - Unexpected token: get.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(9,4) - expecting "INDENT", found ':'.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(10,7) - Unexpected token: <EOL>.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(11,1) - Unexpected token: get.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(11,4) - expecting "INDENT", found ':'.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(12,7) - Unexpected token: <EOL>.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(13,1) - expecting "INDENT", found 'query'.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(22,38) - Unexpected token: :.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(24,19) - expecting "DEDENT", found '<EOL>'.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(25,1) - expecting "DEDENT", found 'for'.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(25,50) - Unexpected token: :.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(34,40) - Unexpected token: :.
Error: C:\Programme\foobar2000\coverdownloader\scripts\discogs.boo(35,9) - expecting "EOF", found '<EOL>'.
Error: Failed.


CoverDownloader

Reply #199
Do both of you have the latest version?
PS: I haven't tried the script.