Announcement

Collapse
No announcement yet.

ml_plfix (a plugin to let you move files, yet preserve playlists).

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Re: gen_plfix (a plugin to let you move files, yet preserve playlists).

    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.

    Comment


    • #3
      Re: Re: gen_plfix (a plugin to let you move files, yet preserve playlists).

      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)


      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

      Comment


      • #4
        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

        Comment


        • #5
          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.

          ::Deviant Me::Last.fm::WhatPulse Stats::Folding @ Home

          Comment


          • #6
            "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

            Playlist | Twitter | Albums

            Comment


            • #7
              Drat - uploaded the wrong file... it should have been ml_plfix; not gen_plfix. The updated link is here:



              (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

              Comment


              • #8
                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.

                Comment


                • #9
                  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...

                  Playlist | Twitter | Albums

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      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.
                      *sigh (still) under construction*

                      Comment


                      • #12
                        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

                        Comment


                        • #13
                          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
                          *sigh (still) under construction*

                          Comment


                          • #14
                            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.

                            ::Deviant Me::Last.fm::WhatPulse Stats::Folding @ Home

                            Comment


                            • #15
                              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.

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎