Go Back   Winamp & SHOUTcast Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 22nd January 2005, 17:48   #1
eqreed
Junior Member
 
Join Date: Jan 2005
Posts: 8
Send a message via Yahoo to eqreed
ml_plfix (a plugin to let you move files, yet preserve playlists).

I want to organize the files in my disk; however, I’ve been hesitant to do so because that would break my playlists. So I wrote this tool.

This plugin will “fix” your playlists after you move files or rename files. It will also find (and optionally delete) identical files.

It works by making 64-bit “signatures” of the files in your playlist and media library. When you run the plugin, it will recheck your playlist to see if any files are missing, and replace it with a file in the media library with the same signature. Just make sure to add all the new files in the media library, and that you run this plugin before you start moving the files around (so it can generate signatures of the files in your playlists).

Usage:

Put it in the plugins directory, run WinAmp, bring up the media library, and click on the “gen_plfix (playlist fixer)” (in the left pane with the playlists.)

Click on the Hand Fix, and let it run. This will generate signatures for ALL the files in your media directory and playlists. It’ll take a while the first time, but it saves the results to make subsequent scans much faster. You normally will want to do this just before you start moving files around.

Now that it’s set up, move or rename your files. Then get those moved/renamed files into the media library. (I use options->Preferences, and select the Media Library, Watch Folders tab, and rescan my music directories.)

Then I run a “Hand Fix” as it will not change your playlists, which will generate a “report” of missing files, and their candidate replacement(s) files. Right click on the items to fix them in the playlist.

“Auto Fix” is the same as “Hand Fix”, except it will automatically fix missing files with one and only one candidate. (If multiple candidates are found, you still have to pick it by hand.)

“Find Duplicates” will scan your media library for duplicate files, and allow you to delete them if you wish (right click on the files)

Limitations:

The playlists are found by reading the m3u files in the plugins/ml directory, NOT by reading the playlists from within Winamp.

I have not figured out how to convert the m3u file name to the playlist name (if anyone knows, please let me know)

There is a small chance two different files will have the same sig (although it’s small)

This is Alpha code
Although I don’t know of any bugs, I would be careful and try it out first on a small scale before doing any major changes to your library.

I have a list of features to add, and I’ll post them in a while. But I always appreciate feedback from others.

You can download it here (right click “Save Target As...”)

- Reed


[Edit --> DJ Egg]
Fixed url
eqreed is offline   Reply With Quote
Old 22nd January 2005, 18:56   #2
billyvnilly
Forum King, M.D.
 
billyvnilly's Avatar
 
Join Date: Mar 2004
Location: Detroit burbs
Posts: 3,379
Send a message via ICQ to billyvnilly Send a message via AIM to billyvnilly
Re: gen_plfix (a plugin to let you move files, yet preserve playlists).

Quote:
Originally posted by eqreed
Limitations:

The playlists are found by reading the m3u files in the plugins/ml directory, NOT by reading the playlists from within Winamp.
so will you not be including winamp\winamp.m3u ? or even scan drives for .m3u files.


what do these signatures include? im only asking because of the possible duplicates. certainly there is some way to distinguish 2 files.
billyvnilly is offline   Reply With Quote
Old 22nd January 2005, 22:56   #3
eqreed
Junior Member
 
Join Date: Jan 2005
Posts: 8
Send a message via Yahoo to eqreed
Re: Re: gen_plfix (a plugin to let you move files, yet preserve playlists).

Quote:
Originally posted by billyvnilly
so will you not be including winamp\winamp.m3u ? or even scan drives for .m3u files.
Ideally, it'd be nice to be able to specify the m3u files/directores to read, (or possibly even support other kinds of playlists). I chose the plugins/ml because that's where the "normal" winamp media library playlists are stored. (This program is still in it's infancy)


Quote:
what do these signatures include? im only asking because of the possible duplicates. certainly there is some way to distinguish 2 files.
The signature is a 64 bit hash (I use a Fowler/Noll/Vo hash - it's like a CRC or checksum). If you have multiple candidates (whether it's a false match, or just two copies of the same file), you'll have to pick one. Yes, you can have a false match, but it's unlikely. If you are worried about false positives, just do a "Hand Fix" and it won't change anything without you selecting it.

- Reed
eqreed is offline   Reply With Quote
Old 23rd January 2005, 01:59   #4
electricmime
Major Dude
 
Join Date: Mar 2004
Posts: 991
will this preserve media library settings(ratings/playcount)

or will it not update ml at all?

There is no reset button on life... but the graphics kick ass
electricmime is offline   Reply With Quote
Old 23rd January 2005, 02:08   #5
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,235
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
Isn't there already a "delete duplicate entries" option? But good work on the fixing part (maybe). I havn't tired it yet, but I will soon and will leave some feedback.
dlinkwit27 is offline   Reply With Quote
Old 23rd January 2005, 02:32   #6
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,784
"delete duplicate entries" is only available via:
playlist window > rem button > remove
and is actually a feature added by Jump to File Extra plugin.


"Put it in the plugins directory, run WinAmp, bring up the media library, and click on the “gen_plfix (playlist fixer)” (in the left pane with the playlists.)"

Hmm. Do we need any special files for this plugin?
(eg. some new version of msvcp7x/msvcr7x.dll or Net Framework)
I can't even get it to appear under Prefs > Plugins > General Purpose, let alone find/use any "playlist fixer" menu in ml.

Can't wait to try it out though. Sounds pretty good to me
DJ Egg is offline   Reply With Quote
Old 23rd January 2005, 04:23   #7
eqreed
Junior Member
 
Join Date: Jan 2005
Posts: 8
Send a message via Yahoo to eqreed
Drat - uploaded the wrong file... it should have been ml_plfix; not gen_plfix. The updated link is here:

http://members.cox.net/eqreed/ml_plfix.zip

(and the old gen_plfix will be no longer available). Let me know what you think, as I'm likely to direct my efforts towards what people want. The first thing on my list is to get some naming consistancy

- Reed
eqreed is offline   Reply With Quote
Old 23rd January 2005, 04:24   #8
eqreed
Junior Member
 
Join Date: Jan 2005
Posts: 8
Send a message via Yahoo to eqreed
Quote:
Originally posted by electricmime
will this preserve media library settings(ratings/playcount)

or will it not update ml at all?
It does not update the ml at all - just reads it to get a file list.
eqreed is offline   Reply With Quote
Old 23rd January 2005, 11:42   #9
DJ Egg
Techorator
Winamp & SHOUTcast Team
 
Join Date: Jun 2000
Posts: 35,784
Ah, ml_plfix, not gen_plfix . . . I should've worked that one out myself.

Cheers. Got it working now.
(I now see "gen_plfix playlist fixer" at the bottom of the ml left pane)
Maybe it should say "ml_plfix (playlist fixer)"?
Or just "Playlist Fixer" maybe?

Testing it at the moment (scanning playlist 1/15)
Playlist 1 has 12000 entries, so this might take some time.
be back soon...


btw, I've fixed the download url in the 1st post.


[edit]
Ok, the first scan took ages, but as you said, subsequent scans are very quick.
On initial tests, this plugin seems to be working...
DJ Egg is offline   Reply With Quote
Old 23rd January 2005, 23:26   #10
brotherS
Member
 
Join Date: Sep 2003
Posts: 56
Great idea! I'll sure test it when it's a beta!

A maybe slightly off-topic question: What is the best program for finding dupes on my HD, even when one is 128k and 5:42 and the dupe is 192k and 5:41? I now use Mp3Find but the handling is not the best
brotherS is offline   Reply With Quote
Old 25th January 2005, 18:04   #11
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Quote:
Originally posted by DJ Egg
Ah, ml_plfix, not gen_plfix . . . I should've worked that one out myself.
I did (proud)
i din't have time to fully test it, but i like someone's working on the fix playlist thing
When it only works for ML playlists it will be of no use for me tho.
jojo 544 is offline   Reply With Quote
Old 25th January 2005, 22:02   #12
eqreed
Junior Member
 
Join Date: Jan 2005
Posts: 8
Send a message via Yahoo to eqreed
Quote:
Originally posted by jojo 544 When it only works for ML playlists it will be of no use for me tho.
What do you use for playlists? I want to see if I can accomodate other kinds of playlists, but I need to know what they are.

I am currently adding the ability let you specify a list of (m3u) playlists, or directories containing playlists.

- Reed
eqreed is offline   Reply With Quote
Old 25th January 2005, 23:23   #13
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Quote:
Originally posted by eqreed
I am currently adding the ability let you specify a list of (m3u) playlists, or directories containing playlists.
That would do just it
jojo 544 is offline   Reply With Quote
Old 27th January 2005, 02:13   #14
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,235
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
it didn't work....I had the Killers albums on my desktop. I added the files to my playlist, saved it as "recent" then renamed the 11 songs (added some track numbers). Added the re-named files to the ML, ran the handfix, and it found that the old files were missing, but couldn't find the new files to replace them.
dlinkwit27 is offline   Reply With Quote
Old 28th January 2005, 15:12   #15
eqreed
Junior Member
 
Join Date: Jan 2005
Posts: 8
Send a message via Yahoo to eqreed
Quote:
Originally posted by dlinkwit27
it didn't work....I had the Killers albums on my desktop. I added the files to my playlist, saved it as "recent" then renamed the 11 songs (added some track numbers). Added the re-named files to the ML, ran the handfix, and it found that the old files were missing, but couldn't find the new files to replace them.
Did you run "handfix" first (after you added the files to your playlist and/or media library, but before you moved them?)

The only downside of this application is it needs to generate the signatures of this file first.

Also, I don't quite understand what you mean by "saved it as 'recent'" You mean you made a playlist with a name of "recent" or something else?

Thanks for letting me know about this. I'd like to figure out what happened.
eqreed is offline   Reply With Quote
Old 28th January 2005, 17:11   #16
dlinkwit27
has no CT
(Forum King)
 
dlinkwit27's Avatar
 
Join Date: Sep 2000
Posts: 13,235
Send a message via ICQ to dlinkwit27 Send a message via AIM to dlinkwit27 Send a message via Yahoo to dlinkwit27
I ran "handfix" before and after I added the files. And the playlist was called "recent"
dlinkwit27 is offline   Reply With Quote
Old 1st April 2005, 21:53   #17
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Quote:
Originally posted by eqreed
I am currently adding the ability let you specify a list of (m3u) playlists, or directories containing playlists.
Any progress on this project?
jojo 544 is offline   Reply With Quote
Old 25th June 2005, 10:45   #18
Pyrallax
Junior Member
 
Join Date: Dec 2003
Posts: 2
Any news on this project? This would be a great help to many people! I like to reorganize my music folders a lot, and have a great many playlists, and thousdands of songs. I normally keep my playlist .m3u files in my documents folder, but will place them in my plugins/ml directory if that's what it takes. And I don't care if the file hashing takes a whole week--that would still be faster than trying to update all broken playlists manually.

I'm surprised there isn't a tool on the net already to fix broken .m3u playlists. Is it really that hard? I think a lot of people would find such a tool to be critical to their music management.
Pyrallax is offline   Reply With Quote
Old 21st September 2005, 21:55   #19
Sebast1an__
Junior Member
 
Join Date: Feb 2004
Posts: 18
Send a message via Yahoo to Sebast1an__
I think I posted a request/question for something like that ages ago. Finally there's a solution.
Sebast1an__ is offline   Reply With Quote
Old 21st September 2005, 22:08   #20
TCPost
Junior Member
 
Join Date: May 2004
Posts: 16
Quote:
Originally posted by Pyrallax
Any news on this project? This would be a great help to many people! I like to reorganize my music folders a lot, and have a great many playlists, and thousdands of songs. I normally keep my playlist .m3u files in my documents folder, but will place them in my plugins/ml directory if that's what it takes. And I don't care if the file hashing takes a whole week--that would still be faster than trying to update all broken playlists manually.
My sentiments exactly, but now Joonas has added it to his fantastic 'Dynamic Library' plugin I am able to reorganise my files at will without any fear that it will break my valuable playlist entries.
TCPost is offline   Reply With Quote
Old 21st June 2006, 21:02   #21
sneachta
Junior Member
 
Join Date: Jun 2006
Posts: 4
This sounds great.Does it still work?
sneachta is offline   Reply With Quote
Old 22nd June 2006, 11:20   #22
TazDevil
Senior Member
 
TazDevil's Avatar
 
Join Date: Nov 2003
Location: Cyprus
Posts: 359
name suggestion: Broken Playlist Fixer

sounds good, i'll give it a try when it can handle non-ml playlists

NEW Multiple Output Plugin v1.5 | Download | outputs data to one or more audio/file output devices
Crystal Classic Skins v1.1 | Download | transparency effects for classic skins
TazDevil is offline   Reply With Quote
Old 22nd June 2006, 18:20   #23
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
i'm afraid this is a dead project
The author didn't post any updates or comments since januari 2005 !

*sigh (still) under construction*
jojo 544 is offline   Reply With Quote
Old 25th June 2006, 04:08   #24
gflores
Junior Member
 
Join Date: Nov 2003
Posts: 27
Quote:
Originally posted by jojo 544
i'm afraid this is a dead project
The author didn't post any updates or comments since januari 2005 !
Noooo. I just found this plugin and I would LOVE this feature. Anyone up to the task? I'll give Dynamic Library a shot, since I heard it has the ability to do that too, but it has a lot of stuff I don't really want... I'm so excited! w00t!

Edit: Wait, is this still working on Winamp 5.23?
gflores is offline   Reply With Quote
Old 25th June 2006, 09:33   #25
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Quote:
Originally posted by gflores
Edit: Wait, is this still working on Winamp 5.23? [/B]
I never tried,
In DL some things are broken since 5.2
I'm using WA 5.13 and DL to fix the playlists (and other stuff)
DL can only fix playlist entries of files that were moved, if they are renamed you get the option to find the files back browsing manualy tho.
It's the best i could find for now. If anyone knows of another more advanced playlist fixer i would also love to know about.

edit: i still can't believe no one ever finished a plugin like that, i knew a few projects, but none of them were ever finished, or doing what they should properly.

*sigh (still) under construction*
jojo 544 is offline   Reply With Quote
Old 25th June 2006, 13:43   #26
sneachta
Junior Member
 
Join Date: Jun 2006
Posts: 4
If anyone is up to the job please do it!!
sneachta is offline   Reply With Quote
Old 8th August 2006, 12:52   #27
Duck11
Junior Member
 
Join Date: Aug 2005
Posts: 5
Find and kill dupe files and folders by Dupe Checker PRO
Duck11 is offline   Reply With Quote
Old 25th March 2007, 10:42   #28
valius
Junior Member
 
Join Date: Mar 2007
Posts: 3
You can download it URL submitted by user

?? So where is the actual url?
Its just text and no link.
Or is it just for me?
valius is offline   Reply With Quote
Old 25th March 2007, 11:05   #29
DrO
 
Join Date: Sep 2003
Posts: 27,873
the link is http://members.cox.net/eqreed/ml_plfix.zip (the user submitted thing is due to the forums recently introduced spam protection - quote the post and you'll see the url as well)

-daz
DrO is offline   Reply With Quote
Old 1st April 2007, 00:38   #30
gflores
Junior Member
 
Join Date: Nov 2003
Posts: 27
Thanks, it's working great!
gflores is offline   Reply With Quote
Old 1st April 2007, 09:04   #31
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Quote:
Originally posted by gflores
Thanks, it's working great!
Yes but it only finds and kills dupe files ?
I'm still looking for a playlist fixer...

Anyone?

*sigh (still) under construction*
jojo 544 is offline   Reply With Quote
Old 1st April 2007, 15:48   #32
gflores
Junior Member
 
Join Date: Nov 2003
Posts: 27
It's fixing the playlists for me. Did you read the instructions?
gflores is offline   Reply With Quote
Old 1st April 2007, 22:14   #33
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Quote:
Originally posted by gflores
It's fixing the playlists for me. Did you read the instructions?
Wait a minute.. i think we're not talking about the same thing anymore here. It gets kind of confusing now there are 3 different plugins already mentioned in this topic.

My last post refered to the dupechecker. (1)
Dynamic Library (2) DOES fix playlist for me as well indeed.
An as for the third (3), the plugin this topic is actualy about...
I-m re-testing it right now, but as i can see by the timestamps on this threat, it's no longer developed/suported

EDIT: Finished re-testing.. for me sometimes it works, sometimes not. seems to depend on the new location of the moved / renamed files. So it's buggy at least and only works for ML playlists, so no good to me. I'll stick to DL to do the job

*sigh (still) under construction*

Last edited by jojo 544; 1st April 2007 at 23:14.
jojo 544 is offline   Reply With Quote
Old 19th December 2007, 03:54   #34
blackgunnaz
Junior Member
 
Join Date: Mar 2005
Posts: 20
I can't get the ml_plfix plugin, because the link says url submitted by user. I was wonderin if i could get the link to the plugin
blackgunnaz is offline   Reply With Quote
Old 19th December 2007, 04:18   #35
blackgunnaz
Junior Member
 
Join Date: Mar 2005
Posts: 20
nvm, i got it. had to quote u to get it
blackgunnaz is offline   Reply With Quote
Old 10th January 2008, 20:22   #36
w3stfa11
Junior Member
 
Join Date: Jun 2007
Posts: 16
i don't think it works anymore
w3stfa11 is offline   Reply With Quote
Old 20th March 2008, 19:40   #37
firewyre
Junior Member
 
Join Date: Mar 2008
Posts: 12
I wrote a java app called listFix() that may help some of you out. It fixes broken M3U playlists and does some other cool stuff as well - check it out at http://listfix.sourceforge.net.
firewyre is offline   Reply With Quote
Old 20th March 2008, 23:18   #38
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
Well finaly after some years someone comes up with a seems to be usable tool. Huh, worth the wait

I had to shut it down with taskmanager few times at first but now it seems to work. Duno what went wrong, i'll do some serious testing tomorow (it's getting late here). i think it's still in dev. so i'm already looking out for further development. I have some ideas for more advanced features.
This is realy cool stuff !

(still can't believe anyone came up with something like this earlier)

*sigh (still) under construction*
jojo 544 is offline   Reply With Quote
Old 20th March 2008, 23:34   #39
firewyre
Junior Member
 
Join Date: Mar 2008
Posts: 12
listFix()

Funny thing is that I've had a workable version of this app since about 2002, just never managed to post it anywhere until now. I'm glad some people out there haven't switched to that piece of trash known as iTunes and still rock M3Us in

Please post any ideas you have feature-wise on the project's sourceforge forums. You can post bug reports there too. I'm very interested to hear what you find out about having to kill it a few times the first time you ran it, I haven't run into that one yet.
firewyre is offline   Reply With Quote
Old 22nd March 2008, 20:24   #40
jojo 544
Major Dude
 
jojo 544's Avatar
 
Join Date: Nov 2003
Location: Nowhere near the apeland
Posts: 623
'k.

posted all on sourceforge

*sigh (still) under construction*
jojo 544 is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump