<!-- --><!-- --><style type="text/css">@import url(http://www.blogger.com/static/v1/v-css/navbar/697174003-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=7256432&amp;blogName=The+Frustrated+Programmer&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLACK&amp;layoutType=CLASSIC&amp;homepageUrl=http%3A%2F%2Ffrustratedprogrammer.blogspot.com%2F&amp;blogLocale=en_US&amp;searchRoot=http%3A%2F%2Ffrustratedprogrammer.blogspot.com%2Fsearch" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" title="Blogger Navigation and Search"></iframe> <div></div>
115 comments | Tuesday, December 26, 2006

UPDATE: Added more diagnostics to the code. If you were having issues, run it again and post the output to in a comment.
UPDATE2: Changed the second regular expression to be a little more loose. Hopefully this will resolve some of the problems.
UPDATE3: Blogger was removing some code that it thought was HTML causing an endless loop in the script. If you tried the script and it was just hanging, try it again.
UPDATE4: Fixed two things: One - Napster 4 changed its image naming conventions (Thanks Don). Two - This program never handled multi-byte characters well. Its somewhat hacked to fix this.

So, Napster isn't so good at album art for some reason -- no trace of it anywhere in my library. Funny thing is, Napster has its own stash of all the covers in C:\Documents and Settings\All Users\Application Data\Napster\image. Unfortunately its stored by some crazy obfuscated name like 12303503.jpg. Good news is that the Napster database, db30.bin, has the nessesary glue to piece things together. I hacked together some Perl to find my missing artwork and copy it to the album's directory as folder.jpg. This lets Windows Media Player tag the wma's correctly so they even transfer to my Zen with artwork.

Its a little ugly as you can see. I had to resort to some nasty regular expressions to track everything down without learning the entire file layout format. Please steal, improve, maintain, hack this as you see fit.


#!/usr/bin/perl
# This program will scan your music directory for missing album art (library). Then it will scan the napster
# database file (db) for a matching album. Then it will look up the missing image for that album in napsters
# own image archive (imgdir).
#
# Hopefully someone will come along and improve this, maybe make a plugin to WMP and improve the searching.
#

use File::Copy;

my $debug = 0;
my %hash = ();

$db = 'C:\Documents and Settings\All Users\Application Data\Napster\bin\db30.bin';
$imgdir = 'C:\Documents and Settings\All Users\Application Data\Napster\image';
#Your Napster library directory
$library = 'C:\Documents and Settings\CHANGEME\My Documents\My Music';
#Your Napster Username
$username = 'CHANGEME';


print "Fixing Napster Album Art v1.3\n";

# Find the albums with missing art
print "Searching for missing album art:\n";
opendir(LIB, $library) or die "Can't open $library: $!";
while( defined ($artist = readdir LIB) ) {
next if $artist =~ /^\.\.?$/; # skip . and ..


opendir( ART, "$library/$artist" );
while( defined ($album = readdir ART) ) {
next if $album =~ /^\.\.?$/; # skip . and ..
if ( -d "$library/$artist/$album" ) {
if( ! -f "$library/$artist/$album/folder.jpg" ) {
#get the first song in the album
opendir( ALB, "$library/$artist/$album" );
while( defined ($song = readdir ALB) ) {
next if $song =~ /desktop.ini/;

$songReg=$song;
$songReg=~s/[\x7f-\xff]/../g;
$songReg=~s/\W/./g;
if( -f "$library/$artist/$album/$song" ) {
$hash{$songReg}{'missing'} = 'true';
$hash{$songReg}{'album'} = $album;
$hash{$songReg}{'artist'} = $artist;
print " - Missing album art for $artist - $album\n";

last;
}
}
closedir(ALB);
}
}
}
closedir(ART);
}
closedir(LIB);
$size = keys( %hash );
print "Missing album art for $size albums\n";
if( $size == 0 ) {
exit 0;
}

# Find a song in that album
print "\nSearching for missing albums in napster database\n";
open(DB, $db) or die "Can't open $db: $!";
while(<DB>) {
while(m/\000$username\000(\w+)\0001\0000\0001\000\w+\000([^\000]+)\000([^\000]+)\000/g) {
$songID = $1;
$songName = $2;
$songFileName = $3;
#Normalize non-printable characters to periods
$songReg=$2;
$songReg=~s/\W/./g;

if( exists $hash{$songReg} ) {
print " - Found missing albums $hash{$songReg}{'album'} - first songID: $songID\n";
$hash{$songReg}{'ID'} = $songID;
}
}
}
close(DB);


# Find the album ID of that song
print "\nSearching for albumID and artwork in napster directories\n";
open(DB, $db);
while(<DB>) {
while(m/\000$username\000(\d+)\000(\d{5,20})\000(\d{5,20})\000([^\000]+)\000/g) {
my $songID = $1;
my $artistID = $2;
my $albumID = $3;
my $songShortName = $4;

for my $song ( keys %hash ) {
if( $hash{$song}{'missing'} eq 'true' && $hash{$song}{'ID'} eq $songID ) {
$dir = "$library/$hash{$song}{'artist'}/$hash{$song}{'album'}";
$img = "$imgdir"."/"."$albumID".".jpg";
print " - Found albumID for $dir: $albumID\n";

if( -f $img ) {
print " - Found artwork for album: $img\n";
#Finally copy the image for that album to its new home
copy( $img, "$dir/folder.jpg");
$hash{$song}{'missing'} = 'false';

} else {
print " - Error missing album image for $hash{$song}{'album'}: $albumID\n";
print " - img is: $img\n";
}
}
}
}
}
close(DB);


Steps to use this program:
1-Download and install perl from http://www.perl.com
2-Save that script to a file something like fixNapsterArt.pl
3-Edit fixNapsterArt.pl changing the CHANGEME lines to the appropriate values
4-Run fixNapsterArt.pl

115 Comments:

Anonymous Anonymous said...

Having trouble getting it to work. i installed perl and edited the location of my music but when I run the script the DOS screen shows up black and nothing happens. Am I doing something wrong?

12/28/2006 11:09 AM

 
Blogger Paul said...

Did you edit your username too?

I'll add a little bit more diagnostics tonight. Check back tomorrow.

12/28/2006 12:29 PM

 
Anonymous Anonymous said...

I edited the user name and the music path then I paste the script into a notepad file and named it napsterfix.pl. When I run it the command prompt pops up with a black screen and does nothing.

12/28/2006 7:04 PM

 
Blogger Paul said...

OK - Try again, I added a lot more debugging information to the script. Then just paste the output in a comment if you have trouble.

12/29/2006 8:53 AM

 
Blogger Paul said...

Also - If your running it by double clicking or using the Run menu, don't do that since you'll loose the output. Instead bring up a command prompt, cd to the directory where your script is, the run the script.

12/29/2006 10:43 AM

 
Anonymous Anonymous said...

Ok I got it running and it says it's searching for album art in napster database but it's not finding anythig even though the art is there.

12/29/2006 8:42 PM

 
Anonymous Anonymous said...

By the way I think this is a great script that will help a lot of people. Soon as I get it to work I will spread the word. I did it by clicking on it first then I used the command prompt. COuld that cause a problem?

Happy New Year

12/29/2006 9:23 PM

 
Anonymous Anonymous said...

- Missing album art for Nelly Furtado - Loose [US version]
- Missing album art for Perfect - Riddim Driven_ Sidewalk University
- Missing album art for Sean Paul feat Keyshia Cole - Step Up Soundtrack
- Missing album art for Sizzla - Riddim Driven_ Sidewalk University
- Missing album art for Snow Patrol - Eyes Open
- Missing album art for Tanto Metro - Riddim Driven_ Sidewalk University
- Missing album art for The Fray - How To Save A Life
- Missing album art for The Pussycat Dolls - PCD
- Missing album art for Tony Matterhorn - Riddim Driven_ Sidewalk University
- Missing album art for Version - Riddim Driven_ Sidewalk University
- Missing album art for Vybz Kartel - Riddim Driven_ Sidewalk University
- Missing album art for Ward 21 - Riddim Driven_ Sidewalk University
Missing album art for 33 albums

Searching for missing albums in napster database

12/29/2006 9:30 PM

 
Blogger Paul said...

Well, It looks like it can't find the album information in your napster database. If you want to send me a copy of your database and the exact output logs, I'll take a look.

To send the output logs, run 'script.pl > output.log'. Then email me output.log with your database (db30.bin). My email address is in my profile.

12/29/2006 10:58 PM

 
Blogger Paul said...

Good news is it's at least working for one person :)

http://www.epizenter.net/e107_plugins/forum/forum_viewtopic.php?67571.last

12/29/2006 11:01 PM

 
Anonymous Anonymous said...

Email sent

12/29/2006 11:50 PM

 
Blogger Deihmos said...

This works perfectly and now all my downloaded tracks from napster have album art in WMP. Good work...

12/30/2006 6:41 PM

 
Anonymous Anonymous said...

This worked great for me thanks a bunch, very cool

1/08/2007 5:46 PM

 
Anonymous Anonymous said...

This thing just won't recognize that all of my new Napster music needs to get their Album Arts fixed.

1/15/2007 11:17 PM

 
Anonymous Anonymous said...

I figured out your program is deciding everything by a Artist/Album/Song structure, but my Napster does not use that.

1/15/2007 11:25 PM

 
Anonymous Anonymous said...

You will need to have your music organized in folders. You can change the options in Napster. Also it does nto work well for the windows media player plug in so I suggest you use the stand alone.

2/13/2007 10:00 PM

 
Anonymous Anonymous said...

Works great for me.

2/13/2007 10:00 PM

 
Blogger Brad said...

This post has been removed by the author.

3/31/2007 10:50 AM

 
Blogger Brad said...

It says "Missing album art for 0 albums" even though I still have no album art.

3/31/2007 11:10 AM

 
Anonymous Anonymous said...

yeah! works perfect with napster germany!
Tahnk you soo much!

4/22/2007 10:20 AM

 
Blogger Mary JO said...

No luck here, it gets to the line "Searching for missing albums in napster database" and then stops. I do have my music organized by Artist - Album - Song so don't think that's the problem.

8/28/2007 2:40 AM

 
Anonymous <a href="http://paydayadvisors.org">PaydayLoans</a> said...

dXgGju You have a talant! Write more!

10/30/2007 12:42 PM

 
Anonymous <a href="http://tes.uab.es/MISS/portal_memberdata/portraits/twkgxziok">Auto insurance company</a> said...

n8C54S Hello all!

10/30/2007 10:32 PM

 
Anonymous <a href="http://hydrocodone.99k.org/index.php">Hydrocodone</a> said...

GavmgK The best blog you have!

11/02/2007 3:40 AM

 
Anonymous <a href="http://users2.titanichost.com/buyviagra/367.html">get set motor loans</a> said...

d6bRpw Wonderful blog.

11/02/2007 1:20 PM

 
Anonymous <a href="http://free.7host07.com/nmcfgy/414.html">alumni holidays tours</a> said...

Wonderful blog.

11/02/2007 2:14 PM

 
Anonymous <a href="http://fioricet.clanteam.com/?pharma=571">purchase fioricet purchase fioricet</a> said...

Wonderful blog.

11/02/2007 3:01 PM

 
Anonymous <a href="http://celebrex.zxq.net/?pharma=452">celebrex and uses</a> said...

Good job!

11/02/2007 3:55 PM

 
Anonymous <a href="http://m1.aol.com/BrettHead14/21.html">tsp loan military</a> said...

Good job!

11/02/2007 4:58 PM

 
Anonymous <a href="http://users2.titanichost.com/buyviagra/index2.html">cheap phentermine at our canadian pharma</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

11/03/2007 6:31 AM

 
Anonymous <a href="http://xanax.newsit.es/anabolix-xanax.html">anabolix xanax</a> said...

Thanks to author.

11/03/2007 11:09 AM

 
Anonymous <a href="http://xanax.newsit.es/blood-pressure-medicine-xanax.html">blood pressure medicine xanax</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

11/03/2007 12:11 PM

 
Anonymous <a href="http://xanax.newsit.es/can-xanax-cause-hair-loss.html">can xanax cause hair loss</a> said...

Please write anything else!

11/03/2007 1:15 PM

 
Anonymous <a href="http://phentermine.whdot.com/index18.html">phentermine no rx</a> said...

Wonderful blog.

11/03/2007 2:03 PM

 
Anonymous <a href="users2.titanichost.com/amalopra">JohnBraun</a> said...

4ipU8n write more, thanks.

11/04/2007 9:32 AM

 
Anonymous <a href="http://users2.titanichost.com/popebatret/index22.html">comix virtual sex</a> said...

Good job!

11/04/2007 10:53 PM

 
Anonymous <a href="http://users2.titanichost.com/inoryum/index13.html">drunk sex videos</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

11/04/2007 11:27 PM

 
Anonymous <a href="http://users2.titanichost.com/hviler/index20.html">animals sex movis</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

11/05/2007 1:17 AM

 
Anonymous <a href="http://users2.titanichost.com/ansfur/index33.html">latin vids sex</a> said...

Good job!

11/05/2007 1:52 AM

 
Anonymous <a href="http://users2.titanichost.com/olds77/index2.html">fuckin anal whores</a> said...

Thanks to author.

11/05/2007 2:27 AM

 
Anonymous <a href="http://users2.titanichost.com/shingro/index19.html">self-made sex sites</a> said...

Magnific!

11/05/2007 2:55 AM

 
Anonymous <a href="http://users2.titanichost.com/scersi/index35.html">education on sex</a> said...

Wonderful blog.

11/05/2007 3:26 AM

 
Anonymous <a href="http://users2.titanichost.com/t1fielde/index8.html">pa sex offenders</a> said...

Nice Article.

11/05/2007 3:56 AM

 
Anonymous <a href="http://users2.titanichost.com/adjutes/index4.html">bbc documentary sex</a> said...

Thanks to author.

11/05/2007 4:34 AM

 
Anonymous <a href="http://users2.titanichost.com/adjutes/index17.html">beastilty sex stories</a> said...

Nice Article.

11/05/2007 5:17 AM

 
Anonymous <a href="http://users2.titanichost.com/shiconta/index2.html">cyber chat sex</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

11/05/2007 5:54 AM

 
Anonymous <a href="http://users2.titanichost.com/gnites3/index34.html">hot exotic sex</a> said...

Hello all!

11/05/2007 6:26 AM

 
Anonymous <a href="http://users2.titanichost.com/marymeno/index21.html">random facts sex</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

11/05/2007 6:57 AM

 
Anonymous <a href="http://users2.titanichost.com/vadhoms/index32.html">man sex pet</a> said...

C++ should have been called B

11/05/2007 7:32 AM

 
Anonymous <a href="http://users2.titanichost.com/etooking/index28.html">night sex vision</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

11/05/2007 8:11 AM

 
Anonymous <a href="http://users2.titanichost.com/swiseny/index31.html">disney sex story</a> said...

Save the whales, collect the whole set

11/05/2007 8:40 AM

 
Anonymous <a href="http://users2.titanichost.com/Lostsoldier3/index31.html">free long porn</a> said...

A flashlight is a case for holding dead batteries.

11/05/2007 9:08 AM

 
Anonymous <a href="http://users2.titanichost.com/pyzoid/index31.html">boob cum sex</a> said...

Suicidal twin kills sister by mistake!

11/05/2007 9:40 AM

 
Anonymous <a href="http://users2.titanichost.com/pyzoid/index21.html">bonded forced sex</a> said...

Clap on! , Clap off! clap@#&$NO CARRIER

11/05/2007 10:13 AM

 
Anonymous <a href="http://users2.titanichost.com/selli83/index14.html">adult sex rentals</a> said...

The gene pool could use a little chlorine.

11/05/2007 10:47 AM

 
Anonymous <a href="http://users2.titanichost.com/numdaso/index6.html">japaneese teens sex</a> said...

Calvin, we will not have an anatomically correct snowman!

11/05/2007 11:19 AM

 
Anonymous <a href="http://users2.TitanicHost.com/porada/gg-hydrocodone-syrup.html">gg hydrocodone syrup</a> said...

Thanks to author.

11/05/2007 11:50 AM

 
Anonymous <a href="http://cialis.whdot.com/index15.html">generic generic cialis pills cod</a> said...

Please write anything else!

11/05/2007 12:23 PM

 
Anonymous <a href="http://frwebgate.access.gpo.gov/cgi-bin/leaving.cgi?to=freewebtown.com/phentermine1">phenterm</a> said...

Change is inevitable, except from a vending machine.

11/05/2007 12:56 PM

 
Anonymous <a href="http://users2.titanichost.com/numdaso/index28.html">iv leage sex</a> said...

The gene pool could use a little chlorine.

11/05/2007 1:38 PM

 
Anonymous <a href="http://users2.titanichost.com/febisko/index7.html">best sex styles</a> said...

All generalizations are false, including this one.

11/05/2007 2:17 PM

 
Anonymous <a href="http://users2.titanichost.com/topletrufus/index18.html">girls masterbation sex</a> said...

Hello all!

11/05/2007 2:54 PM

 
Anonymous <a href="http://users2.titanichost.com/yetzeit/index22.html">asian schoolgirls sex</a> said...

Thanks to author.

11/05/2007 3:28 PM

 
Anonymous <a href="http://users2.titanichost.com/brittanyrogers/57-0411.html">all holes sex</a> said...

What is a free gift ? Aren't all gifts free?

11/05/2007 4:01 PM

 
Anonymous <a href="http://users2.titanichost.com/glicia80/index34.html">sex brunette amateur</a> said...

Beam me aboard, Scotty..... Sure. Will a 2x10 do?

11/05/2007 4:28 PM

 
Anonymous <a href="http://users2.titanichost.com/reekello/index32.html">denise derringer sex</a> said...

What is a free gift ? Aren't all gifts free?

11/05/2007 4:54 PM

 
Anonymous <a href="http://users2.titanichost.com/tortene/index24.html">onyx sex game</a> said...

A flashlight is a case for holding dead batteries.

11/05/2007 5:24 PM

 
Anonymous <a href="http://users2.TitanicHost.com/parana/cocaine-before-and-after-pictures.html">cocaine before</a> said...

A lot of people mistake a short memory for a clear conscience.

11/05/2007 5:53 PM

 
Anonymous name said...

I don't suffer from insanity. I enjoy every minute of it.

11/05/2007 6:27 PM

 
Anonymous <a href="http://users2.titanichost.com/cuhozhilov/index.html">download porn clips</a> said...

What is a free gift ? Aren't all gifts free?

11/05/2007 7:01 PM

 
Anonymous <a href="http://users2.titanichost.com/robertf/index11.html">psp xxx porn</a> said...

Clap on! , Clap off! clap@#&$NO CARRIER

11/05/2007 7:36 PM

 
Anonymous <a href="http://users2.titanichost.com/maxeevich/index31.html">amatar porn movies</a> said...

Friends help you move. Real friends help you move bodies

11/05/2007 8:11 PM

 
Anonymous <a href="http://users2.titanichost.com/dityroe/index12.html">letha weapons sex</a> said...

What is a free gift ? Aren't all gifts free?

11/05/2007 8:42 PM

 
Anonymous <a href="http://users2.titanichost.com/liperwo/index26.html">bachalorette party sex</a> said...

Calvin, we will not have an anatomically correct snowman!

11/05/2007 9:14 PM

 
Anonymous <a href="http://users2.titanichost.com/dasistorama/index17.html">garandma porn</a> said...

Hello all!

11/05/2007 9:47 PM

 
Anonymous <a href="http://users2.titanichost.com/rego07/index9.html">chlid porn</a> said...

When there's a will, I want to be in it.

11/05/2007 10:29 PM

 
Anonymous <a href="http://users2.titanichost.com/artinko/index17.html">hailey paige porn pics</a> said...

The gene pool could use a little chlorine.

11/05/2007 11:11 PM

 
Anonymous <a href="http://users2.titanichost.com/lindafmosley/index5.html">chick getting anal</a> said...

Thanks to author.

11/05/2007 11:44 PM

 
Anonymous <a href="http://users2.titanichost.com/tereritoa1/index27.html">fursuit sex galleries</a> said...

Good job!

11/06/2007 12:25 AM

 
Anonymous <a href="http://users2.titanichost.com/eynol/index32.html">porn torrent</a> said...

Give me ambiguity or give me something else.

11/06/2007 12:59 AM

 
Anonymous <a href="http://users2.titanichost.com/dentouj/index22.html">hardcore tranny sex</a> said...

Hello all!

11/06/2007 1:32 AM

 
Anonymous <a href="http://users2.TitanicHost.com/staer/imitrex-united-healthcare.html">imitrex united healthca</a> said...

I don't suffer from insanity. I enjoy every minute of it.

11/06/2007 2:12 AM

 
Anonymous <a href="http://users2.titanichost.com/bybonte/index24.html">celebs sex machine</a> said...

Suicidal twin kills sister by mistake!

11/06/2007 2:54 AM

 
Anonymous <a href="http://users2.titanichost.com/unareq/index11.html">pokemon jesse sex</a> said...

Ever notice how fast Windows runs? Neither did I.

11/06/2007 3:40 AM

 
Anonymous <a href="http://users2.titanichost.com/mezers/index12.html">butt teen sex</a> said...

Thanks to author.

11/06/2007 4:26 AM

 
Anonymous <a href="http://users2.titanichost.com/deswef/index15.html">ceaser sex machine</a> said...

Ever notice how fast Windows runs? Neither did I.

11/06/2007 5:09 AM

 
Anonymous <a href="http://users2.titanichost.com/tedethe/index21.html">free instructional sex</a> said...

What is a free gift ? Aren't all gifts free?

11/06/2007 5:50 AM

 
Anonymous <a href="http://users2.titanichost.com/simpleplayer/index11.html">i want to be a porn star</a> said...

When there's a will, I want to be in it.

11/06/2007 6:38 AM

 
Anonymous <a href="http://users2.titanichost.com/sobermi/index23.html">interracial flash sex</a> said...

Oops. My brain just hit a bad sector.

11/06/2007 7:32 AM

 
Anonymous <a href="http://users2.titanichost.com/clydej/index28.html">watch porn on san andreas</a> said...

Suicidal twin kills sister by mistake!

11/06/2007 8:22 AM

 
Anonymous <a href="http://users2.titanichost.com/xcalomi/index3.html">juicey sex stories</a> said...

Give me ambiguity or give me something else.

11/06/2007 9:03 AM

 
Anonymous <a href="http://users2.titanichost.com/ramisew/index19.html">premier fois sex</a> said...

All generalizations are false, including this one.

11/06/2007 9:42 AM

 
Anonymous <a href="http://users2.titanichost.com/hegory/index18.html">biker porn links</a> said...

All generalizations are false, including this one.

11/06/2007 10:20 AM

 
Anonymous <a href="http://users2.titanichost.com/sidspros/index27.html">kerala sex picture</a> said...

All generalizations are false, including this one.

11/06/2007 10:56 AM

 
Anonymous <a href="http://users2.titanichost.com/whitedenster/index33.html">brenda bella porn</a> said...

The gene pool could use a little chlorine.

11/06/2007 11:34 AM

 
Anonymous <a href="http://users2.titanichost.com/MarcellaDurant/index32.html">pruritis anal severe night</a> said...

Friends help you move. Real friends help you move bodies

11/06/2007 12:17 PM

 
Anonymous <a href="http://users2.titanichost.com/cationie1/index8.html">passions sex toys</a> said...

What is a free gift ? Aren't all gifts free?

11/06/2007 12:58 PM

 
Anonymous <a href="http://phentermine.43i.net/519-061107.html">get phentermine without a prescription from can</a> said...

Beam me aboard, Scotty..... Sure. Will a 2x10 do?

11/06/2007 1:42 PM

 
Anonymous <a href="http://phentermine.43i.net/931-061107.html">phentermine with next day shipping and online c</a> said...

When there's a will, I want to be in it.

11/06/2007 2:32 PM

 
Anonymous <a href="http://phentermine.43i.org/207-061107.html">buy phentermine no prescription purephentermine</a> said...

I don't suffer from insanity. I enjoy every minute of it.

11/06/2007 3:19 PM

 
Anonymous <a href="http://users2.titanichost.com/nimytre/index16.html">index sex jpg</a> said...

Give me ambiguity or give me something else.

11/06/2007 3:56 PM

 
Anonymous Don said...

Works on Vista with Napster 4 with the following:
the db is C:\ProgramData\Napster\bin\db30.bin

the imgdir is
C:\ProgramData\Napter\bin\image

the library is something like
C:\Users\_NAME_\Music

AND
the image file names don't seem to contain "_big" (i.e. in the last while loop (on line 88) change "_big.jpg" to just ".jpg"
)

11/27/2007 10:00 PM

 
Anonymous Anonymous said...

Thanks DOn.

12/02/2007 12:16 AM

 
Anonymous queencityrunner said...

Installed Perl and edited the script file for my music location and my username. When I run the script, I get this error message:
Bad name after queencityrunner' at D:\NJ_Docs\Perl\fixNapsterArt.pl line 19.

Line 19 (counting blanks) is the line in which my username (queencityrunner) is defined. This is the code just before and after that line. Any suggestions? Thanks so much.

#Your Napster library directory
$library = 'D:\NJ_Docs\My Music_Napster\';
#Your Napster Username
$username = 'queencityrunner';

print "Fixing Napster Album Art v1.3\n";

12/30/2007 11:03 PM

 
Anonymous queencityrunner said...

Disregard previous comment. Just changed the way I saved and renamed the script file, and it worked fine. Thanks!

12/30/2007 11:16 PM

 
Anonymous Anonymous said...

Hi, thank you for the program. I works fine. The only problem is that it copies the little cover art (100*100) and not the "_big" one (150*150). Do you think is possible to fix this? Thank you!! Chris

1/12/2008 7:07 PM

 
Anonymous Rob Taylor said...

Works great. Thanks alot.

2/17/2008 10:34 AM

 
Anonymous Gunn said...

Cool, Worked Great Thanks a Lot

3/27/2008 10:20 AM

 
Anonymous Anonymous said...

Cut-n-Pasted script ad added all the carriage returns that would not copy so it would 'look' just a posted. Followed all the helpful instructions above and wallah!!

Works like a charm. THank You so muc. A real time saver.

5/16/2008 9:11 AM

 
Anonymous Sevorek said...

Works great! thanks!

5/17/2008 10:54 AM

 
Anonymous Anonymous said...

Wonderful, works like a charm. Thank you very much. But is it possible to change the jpg from 100x100 to the big 150x150 ones? would be even better. Thanks in advance ;)

7/19/2008 3:36 PM

 
Anonymous NCG said...

I changed my Napster username - and subsequently neither my new or old username would work with the script. Setting my username to * in the script (to match anything) seemed to fix it again.

9/21/2008 5:57 AM

 
Anonymous NCG said...

Oh yeah, and to get it to use the higher quality "big" artwork, near the end of the file change

$img = "$imgdir"."/"."$albumID".".jpg";

to

$img = "$imgdir"."/"."$albumID"."_big.jpg";

9/21/2008 6:04 AM

 
OpenID JayShoe said...

Do you know what type of database the db30.bin file for napster is? I'd like to browse around in it, or convert it to another database to browse it with.

2/14/2009 10:16 AM

 
Anonymous Anonymous said...

I am very new to anything scripting-wise....
However, I got the script to work with the help of a friend, and then it told me that it had only 5 albums with the artwork missing (which were albums that I had ripped that I didn't really care about.)

Some albums did show up in Windows Media Player, but the rest are still "paste album art here." What should I do? When I "apply Media information changes" it doesn't work either. help?

6/10/2009 6:26 PM

 

Post a Comment

<< Home