IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> DisCoverArt: Batch import album cover art based on artist and title, DisCoverArt: new tool to auto import cover art based on artist + title
XploRR
post Mar 7 2013, 16:13
Post #1


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



DisCoverArt 2.6.0.1 (Freeware tool used in conjunction with mp3tag)
Get albumart/coverart for music based on artist and title or album
You can download it here: http://bit.ly/1Q3dq9R

This software is distributed as freeware. If you keep using this software, send me an appreciation or feedback e-mail for my programming effort and sharing this tool for free.
Or even better, buy me a coffee here.

Disclaimer:

This software and the accompanying files are supplied "as is", without any express or implied warranty.
In no event shall the author be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages from the use of this software.
By using this software you agree with these conditions.


Introduction:

DisCoverArt is a command line tool to download albumart (coverart) for mp3 music files based on artist and title or album.
The target audience are people who have organized their music collection in a single track artist+title way iso based on albums or album directories.
This tool can be used stand-alone, but it was aimed to be used in conjunction with the great software called mp3tag (http://www.mp3tag.de/).
But feel free to write your own batch script for downloading your albumart using DisCoverArt.
Below you will find the description for using DisCoverArt together with mp3tag to auto batch find and import albumart based on artist and title.
It was tested with mp3tag 2.54 but may work with earlier and later versions of mp3tag as well.


Installation:

Unzip DisCoverArt.exe and custommsgbox.dll from DisCoverArt.zip to a permanent directory (f.i. %programfiles%\Mp3tag).
Register custommsgbox.dll (created by westconn1):
open a command prompt (cmd.exe) and type:
> cd C:\Program Files\Mp3tag (directory where you unzipped custommsgbox.dll)
> regsvr32 custommsgbox.dll (a dialogbox will appear showing successful registration of the dll)



Description:

Usage: discoverart <artist> <title> <site> <quote> <short> <width> <height> <type> <num> <auto>
<artist> : name of the artist to search
<title> : songtitle to search
<site> : site to search, specify 'all' for all sites, -site to exclude a site
<quote> : 0=no quotes, 1=quote artist and title for literal search (this may reduce the number of results)
<short> : 0=full title, 1=title part before - sign (for example titles from soundtracks who consist of 2 parts give better and uniform results)
<width> : width of the image, 0=all size, 1=medium size (approx. 350 to 900 pixels)
<height> : height of the image, 0=rectangle+square, 1=square
<type> : type of the image: jpg, gif, bmp, png, svg
<num> : maximum number of images to download (1-20) (actual images downloaded may be less)
<auto> : 0=manual single select image, 1=autosave all images


Examples:

Auto-download 1 jpg image with size 500x500 from the site amazon.com based on artist=Keane and title=Everybody's Changing (no quotes).
The image will be named: "Keane - Everybody's Changing.jpg":
> discoverart "Keane" "Everybody's Changing" amazon.com 0 0 500 500 jpg 1 1

Auto-download 10 jpg images with size 300x300 from all sites, based on artist="Coldplay" and title="Viva La Vida" (note the quotes).
The images will be named: "Coldplay - Viva La Vida.jpg", "Coldplay - Viva La Vida1.jpg", "Coldplay - Viva La Vida2.jpg",...:
> discoverart "Coldplay" "Viva La Vida" all 1 0 300 300 jpg 10 1

Manually select 1 jpg image with size 500x500 out of max. 5 suggestions from the site amazon.com based on artist=Keane and title=Everybody's Changing (no quotes).
The image will be named: "Keane - Everybody's Changing.jpg".
You will be presented with max. 5 images. You can select "Yes", this will keep the selected image; "No", this will continue to the next image; "Cancel", this will abort the search.
> discoverart "Keane" "Everybody's Changing" amazon.com 0 0 500 500 jpg 5 0

Auto-download 1 jpg image with size 500x500 from all sites except discomusic.com (because they have a watermark over the images), based on artist=Keane and title=Everybody's Changing (no quotes).
The image will be named: "Keane - Everybody's Changing.jpg":
> discoverart "Keane" "Everybody's Changing" -discomusic.com 0 0 500 500 jpg 1 1


Usage in conjunction with mp3tag (http://www.mp3tag.de/):

DisCoverArt was designed to be used in conjunction with a software called mp3tag (http://www.mp3tag.de/).
It has been tested that searching 300x300 images gives the best results. (500x500 is also an option, but gives less results).
Here are the possible suggestions to use DisCoverArt together with mp3tag.

Precondition: It is needed that at least the tags called "Artist" and "Title" are available in the mp3 files.
If not, you can easily derive these tags from the filename using mp3tag.
If the filename has the form "Artist - Title.mp3", select in the menu "Convert/Filename Tag" and use as the format string: %artist% - %title%.

Before using DisCoverArt, you should first make 3 definitions in mp3tag. One for auto-batch search and 2 for manual search. If you don't want to make these definitions manually, there is a configuration file for mp3tag available in DisCoverArt.zip called Mp3tagSettings.zip that you can unzip to %appdata%\mp3tag. Warning: these settings will overwrite your previous settings in mp3tag.
Here is the manual method:

Create a tool for the batch search 300x300:
In the menu, select "Tools/Options/Tools" and click on the button "New" (button with yellow star).
Name: "DisCoverArt Google 300x300 Artist+Title NoQuotes"
Path: select the path where you unzipped DisCoverArt.exe (f.i. C:\Program Files\Mp3tag) and select DisCoverArt.exe
Parameter: "%artist%" "%title%" -discomusic.com 0 1 300 300 jpg 1 1
Select the checkbox "For all selected files" and click "Ok".

Create another tool for the manual single search 300x300:
In the menu, select "Tools/Options/Tools" and click on the button "New" (button with yellow star).
Name: "DisCoverArt Google 300x300 Artist+Title NoQuotes Manual"
Path: select the path where you unzipped DisCoverArt.exe (f.i. C:\Program Files\Mp3tag) and select DisCoverArt.exe
Parameter: "%artist%" "%title%" -discomusic.com 0 1 300 300 jpg 20 0
Do not Select the checkbox "For all selected files" and click "Ok".

Create another tool for the manual single search 500x500:
In the menu, select "Tools/Options/Tools" and click on the button "New" (button with yellow star).
Name: "DisCoverArt Google 500x500 Artist+Title NoQuotes Manual"
Path: select the path where you unzipped DisCoverArt.exe (f.i. C:\Program Files\Mp3tag) and select DisCoverArt.exe
Parameter: "%artist%" "%title%" -discomusic.com 0 1 500 500 jpg 20 0
Do not Select the checkbox "For all selected files" and click "Ok".

Optionally you can also create 2 extra definitions for 2 extra manual searches.

Create another tool for the manual single search Medium Size + Square images:
In the menu, select "Tools/Options/Tools" and click on the button "New" (button with yellow star).
Name: "DisCoverArt Google Medium+Square Artist+Title Manual"
Path: select the path where you unzipped DisCoverArt.exe (f.i. C:\Program Files\Mp3tag) and select DisCoverArt.exe
Parameter: "%artist%" "%title%" -discomusic.com 0 1 1 1 jpg 20 0
Do not Select the checkbox "For all selected files" and click "Ok".

Create another tool for the manual single search Medium Size images:
In the menu, select "Tools/Options/Tools" and click on the button "New" (button with yellow star).
Name: "DisCoverArt Google Medium Artist+Title Manual"
Path: select the path where you unzipped DisCoverArt.exe (f.i. C:\Program Files\Mp3tag) and select DisCoverArt.exe
Parameter: "%artist%" "%title%" -discomusic.com 0 1 1 0 jpg 20 0
Do not Select the checkbox "For all selected files" and click "Ok".

Now you should also create 2 new actions in mp3tag: one to save coverart (and optionally another to delete coverart).

Create action to Save Coverart.
In the menu, select "Actions/Actions" and click on the button "New" (button with yellow star).
Name of action group: "Save Coverart", and click "Ok".
click on the button "New" (button with yellow star).
Select Action Type: "Import Cover From File"
Format string for image filename: %artist% - %title%.jpg
Import cover as: Front Cover.
Check: "Delete existing cover art" and click "Ok".

Create action to Delete Coverart.
In the menu, select "Actions/Actions" and click on the button "New" (button with yellow star).
Name of action group: "Delete Coverart", and click "Ok".
click on the button "New" (button with yellow star).
Select Action Type: "Remove fields"
Fields to remove: PICTURE

Now you can start importing coverart using mp3tag and DisCoverArt.
Important: existing coverart may be overwritten in the directory where the music file is located and also in the music file itself!

First load the directory where your mp3 files are located: In the menu, select "File/Change Directory" and select your mp3 directory.
It is handy to add a field "Cover" in the view to show and sort which mp3 files already have albumart/coverart.
To do that, right-click on the header of the table and select "Customize columns..." and check the label called "Cover" and click "Ok".
Now sort on that column "Cover". Those who already have coverart should show a 1, the others are empty.
Now multiple-select the "empty cover" music files (using shift or control key and mouse).
It is recommended to select a maximum of 300 mp3 files at once, otherwise your computer may slow down or results may be skipped, since queries are almost done simultaneously.
Now right-click on the selected mp3 files and select "Tools/DisCoverArt Google 300x300 Artist+Title NoQuotes"
Now you should see a number of black console windows popping up, one for each music file, doing a query using DisCoverArt.
Wait until all the console windows are closed.
Now DisCoverArt has created .jpg files with the name "Artist - Title.jpg" (note that existing jpg's with that name will be overwritten!).
Now you should batch import those .jpg files into the music files (keep the same music files select in mp3tag): from the menu select "Actions/Save Coverart"

Now you can walk over the music files in mp3tag and see/evaluate the imported coverart.

Sometimes it may occur that no coverart was found or that the imported jpg was not good.
In this case you can manually select an image to import as coverart.
Select only one mp3 file, right-click and select "Tools/DisCoverArt Google 300x300 Artist+Title NoQuotes Manual".
Now you can visually select the image you prefer: select "Yes", this will keep the selected image; "No", this will continue to the next image; "Cancel", this will abort the search.
After you selected an image, it is only downloaded to a file called "Artist - Title.jpg" (note that an existing jpg with that name may be overwritten!).
Now you should import this jpg file into the music file: while the mp3 file is still selected, from the menu select "Actions/Save Coverart".
If this method does not succeed, try a 500x500 search: "Tools/DisCoverArt Google 500x500 Artist+Title NoQuotes Manual".
If this method does not succeed, try a Medium+Square search: "Tools/DisCoverArt Google Medium+Square Artist+Title Manual".
If this method does not succeed, try a Medium search: "Tools/DisCoverArt Google Medium Artist+Title Manual".
You can always remove the saved coverart via: "Actions/Remove Coverart" one by one or in group. This will leave your mp3 files untouched!

Using this method you can easily and fast batch import albumart/coverart for your complete music mp3 library.
Have fun!

This post has been edited by XploRR: May 22 2017, 08:44
Go to the top of the page
 
+Quote Post
ryerman
post Mar 8 2013, 05:52
Post #2


Member


Group: Full Members
Posts: 242
Joined: 16-August 09
From: Canada
Member No.: 10731
Mp3tag Version: 2.85



QUOTE (XploRR @ Mar 7 2013, 10:13) *
DisCoverArt 2.3.0.2 (Freeware tool used in conjunction with mp3tag)
Get albumart/coverart for music based on artist and title or album
You can download it here: http://www.vanbarel.com/tools/

Sounds like a great idea.

AVG Anti-Virus Free (2013) identifies a Trojan Horse in that download.


--------------------
Windows 10 Home, 64 bit
Go to the top of the page
 
+Quote Post
poster
post Mar 8 2013, 07:29
Post #3


Member


Group: Full Members
Posts: 1432
Joined: 22-March 09
Member No.: 9241
Mp3tag Version: 2.85



ZITAT(ryerman @ Mar 8 2013, 05:52) *
AVG Anti-Virus Free (2013) identifies a Trojan Horse in that download.

Scanning on Virustotal gives a positive result of 10 Antivirus-Scanners of 45 total scanners for Malware.

This post has been edited by poster: Mar 8 2013, 07:29
Go to the top of the page
 
+Quote Post
XploRR
post Mar 8 2013, 12:54
Post #4


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



QUOTE (poster @ Mar 8 2013, 07:29) *
Scanning on Virustotal gives a positive result of 10 Antivirus-Scanners of 45 total scanners for Malware.


I am totally unaware of a trojan in my executable. Could you please tell me what kind of trojan is there (name)? My tool is a vbscript compiled with ScriptCryptor, so there are no strange steps involved. Is it in de exe or in the dll? Maybe it is a false positive. I use Avast and I don't get any trojan warning. I would like to learn why there is a trojan warning.
Go to the top of the page
 
+Quote Post
poster
post Mar 8 2013, 13:35
Post #5


Member


Group: Full Members
Posts: 1432
Joined: 22-March 09
Member No.: 9241
Mp3tag Version: 2.85



ZITAT(XploRR @ Mar 8 2013, 12:54) *
I am totally unaware of a trojan in my executable. Could you please tell me what kind of trojan is there (name)? My tool is a vbscript compiled with ScriptCryptor, so there are no strange steps involved. Is it in de exe or in the dll? Maybe it is a false positive. I use Avast and I don't get any trojan warning. I would like to learn why there is a trojan warning.

I did not open the ZIP-File and made virustotal check the whole archive. There were different kinds of malware listed.
Compiled srcipts are often regarded as malware by virus-software.

You can test it yourself and upload your files here:
Virustotal
Go to the top of the page
 
+Quote Post
XploRR
post Mar 8 2013, 13:45
Post #6


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



QUOTE (poster @ Mar 8 2013, 13:35) *
I did not open the ZIP-File and made virustotal check the whole archive. There were different kinds of malware listed.
Compiled srcipts are often regarded as malware by virus-software.

You can test it yourself and upload your files here:
Virustotal


Ok, I will investigate deeper.
Go to the top of the page
 
+Quote Post
XploRR
post Mar 8 2013, 16:31
Post #7


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



New version of DisCoverArt 2.3.0.3 released.
Download from: http://bit.ly/1Q3dq9R

Changes:
<width> : width of the image, 0=all size, 1=medium size (approx. 350 to 900 pixels)
<height> : height of the image, 0=rectangle+square, 1=square

This allows more combinations like:

Exact size: ex. w=300,h=300 or w=300,h=350 etc.
All sizes: w=0,h=0
All sizes, square: w=0,h=1
Medium sizes: w=1,h=0
Medium, Square: w=1,h=1

Tested with mp3tag 2.54

This post has been edited by XploRR: Jan 12 2016, 21:43
Go to the top of the page
 
+Quote Post
XploRR
post Mar 8 2013, 20:34
Post #8


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



QUOTE (poster @ Mar 8 2013, 13:35) *
I did not open the ZIP-File and made virustotal check the whole archive. There were different kinds of malware listed.
Compiled srcipts are often regarded as malware by virus-software.

You can test it yourself and upload your files here:
Virustotal


I solved the problem. A new version of DisCoverArt is available (see above version 2.3.0.3). If you scan it with Virustotal there are 0 trojans or malwares found.
Although I stay convinced that it was a false positive, since I read that also VB6 was tagged as a virus/trojan by f.i. Trend Micro. http://community.trendmicro.com/t5/Home-an...tive/td-p/95268
I got the same trojan detected called TROJ_GEN.F47V1210. I guess since VB6 and VBScript share some common parts, Trend Micro may have tagged it as a malware.
But anyway, as I said. This problem is now solved. DisCoverArt.zip and .exe is completely "clean".
Go to the top of the page
 
+Quote Post
XploRR
post Mar 28 2013, 16:32
Post #9


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



I have added 2 manual methods of searching: mediumsize+square jpg's and mediumsize jpg's.
I have also added a configuration file for mp3tag for those who don't want to configure mp3tag manually for use with DisCoverArt. The configuration file is now included in the download of DisCoverArt.zip. Warning: existing configuration settings of mp2tag will be overwritten.
You will find it here: http://bit.ly/1Q3dq9R

This post has been edited by XploRR: Jan 12 2016, 21:43
Go to the top of the page
 
+Quote Post
DJ ektorBarajas
post May 24 2013, 22:48
Post #10


Member


Group: Full Members
Posts: 9
Joined: 24-November 09
Member No.: 11369
Mp3tag Version: 2.45



XploRR thanks for such a wonderful and very useful script !!

I have a large amount of electronic music collection, most of the mp3s without cover art, but I'm using the script and it's a charm ! works great.

Best regards
Go to the top of the page
 
+Quote Post
XploRR
post Jun 12 2013, 16:45
Post #11


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



QUOTE (DJ ektorBarajas @ May 24 2013, 22:48) *
XploRR thanks for such a wonderful and very useful script !!

I have a large amount of electronic music collection, most of the mp3s without cover art, but I'm using the script and it's a charm ! works great.

Best regards


You're welcome!
Go to the top of the page
 
+Quote Post
wbtcpip
post Jun 28 2013, 12:28
Post #12


Member


Group: Members
Posts: 4
Joined: 28-June 13
Member No.: 18085
Mp3tag Version: 2.56



I only miss one feature that i hope it's easy for you to add it. I need the capability to set the path where to save the downloaded image. A command line option like <savepath> would be perfect. I hope you can add this feature as soon as possible
Go to the top of the page
 
+Quote Post
wbtcpip
post Nov 28 2013, 12:42
Post #13


Member


Group: Members
Posts: 4
Joined: 28-June 13
Member No.: 18085
Mp3tag Version: 2.56



Unfortunately a few days this tool does not download anything .... we can hope in a fix coming soon?
Go to the top of the page
 
+Quote Post
XploRR
post Nov 28 2013, 15:33
Post #14


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



QUOTE (wbtcpip @ Nov 28 2013, 12:42) *
Unfortunately a few days this tool does not download anything .... we can hope in a fix coming soon?


I am investigating the problem.
Probably Google has changed the html return code.
Hope to fix it soon.
Go to the top of the page
 
+Quote Post
XploRR
post Dec 10 2013, 14:03
Post #15


Member


Group: Full Members
Posts: 21
Joined: 7-March 13
Member No.: 17662
Mp3tag Version: 2.54



The problem is fixed in version 2.4.0.1, however...
The previous version 2.3.0.2 stopped working because Google changed the format of the returned html code. Had to find a new method for retrieving the Google searchresults.
This new method also implies that Google no longer accepts multiple automated batch queries from within mp3tag (or others).
DisCoverArt will still work the first x automated queries, but your ip-address will be temporarily blocked by Google if you do continue after x+1 automated queries. You can however continue to use DisCoverArt for single albumart/coverart queries within mp3tag as long as Google detects that a human, not a program or bot, performs the queries.
You can download version 2.4.0.1 at http://bit.ly/1Q3dq9R under tools. A special thanks to Jerzy Siwinski for his scripting/testing support!

This post has been edited by XploRR: Jan 12 2016, 21:44
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2017 - 15:26