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: I need to update path names for files in foobar2000's playlists (Read 14161 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

I need to update path names for files in foobar2000's playlists

I changed my drive lay out to simplify finding things but now I need to change the files names from "G:\" to "H:\".  I added mass tagger and from what I can see it doesn't do that it only works on meta data.  Ideally a find and replace utility would be perfect.

I need to update path names for files in foobar2000's playlists

Reply #1
The drive letter is not part of a file's name. So you want to copy over the files from your G drive to H, while maintaining the folder structure and names? You can just use Windows Explorer to do so. Or you could use the file operations to move your files with something like $substr(%path%,4,255) to keep the folder structure intact.
It's only audiophile if it's inconvenient.

I need to update path names for files in foobar2000's playlists

Reply #2
Excuse me I meant path.  I need to edit the path name in Foobar playlists.

I need to update path names for files in foobar2000's playlists

Reply #3
... Or you could use the file operations to move your files with something like $substr(%path%,4,255) to keep the folder structure intact.


This is a bit off-topic now it seems, but that title formatting string results in filenames such as filename.mp3.mp3.


I used $directory_path(%path%)\%filename% to move my music collection from one drive to another, but of course what one uses will rely upon the location and structure of their collection.

I need to update path names for files in foobar2000's playlists

Reply #4
I've moved the data now I need to change the path names in the play list to show the change.

I need to update path names for files in foobar2000's playlists

Reply #5
foo_revive

I need to update path names for files in foobar2000's playlists

Reply #6
The .fpl format is a binary format tied to the library and track info caching features of foobar2000, and is not intended to be editable, in order to avoid startup & shutdown delays.

Nevertheless, here's what I would do:
  • Open file with freeware hex editor XVI32
  • Ctrl-R [replace]
  • Under 'Find', select 'Text string'
  • Enter file://G:
  • Under 'Replace with', select 'Text string'
  • Enter file://H:
  • Click 'Replace all' button
  • F12 [or File > Save As] and pick a new name for the playlist, in case something went wrong.

I haven't confirmed this actually works though.

I need to update path names for files in foobar2000's playlists

Reply #7
There is no need to worry about the playlist if u would have done the transfer of your files through file operations. So i suggest copy back all your files again to G:\ as they were previously and then use file operation's move to move all the files to the drive H:\.


 

I need to update path names for files in foobar2000's playlists

Reply #8
I changed my drive lay out to simplify finding things but now I need to change the files names from "G:\" to "H:\".


Just to ask: It isn't so that you need help to remap the drive letter assigned to a given drive?

I need to update path names for files in foobar2000's playlists

Reply #9
There is no need to worry about the playlist if u would have done the transfer of your files through file operations. So i suggest copy back all your files again to G:\ as they were previously and then use file operation's move to move all the files to the drive H:\.


That's not really an option 1) it doesn't move the folders that I know of, 2) it doesn't move the album art and 3) it took almost 8 hours to get them to H:.  It's all my Rock.  There's 1.78TB of music with 223,248 files in 12,680 folders and sub-folders.

I need to update path names for files in foobar2000's playlists

Reply #10
I changed my drive lay out to simplify finding things but now I need to change the files names from "G:\" to "H:\".


Just to ask: It isn't so that you need help to remap the drive letter assigned to a given drive?


No I know how to do that about 4 different ways.  Computer Management, edit the registry well only two but you get the idea. 

I need to update path names for files in foobar2000's playlists

Reply #11
2) it doesn't move the album art

it does, just check "move entire source folder content" in the files operation setup window

I need to update path names for files in foobar2000's playlists

Reply #12
I wouldn't _move_ a collection to a different drive. I would _copy_ and then use a comparing utility to remove only bit-identicals. So: fb2k --> file operations as others have described (with the copy entire source folder -- or afterwards use a backup-new utility copying only files that are missing from target).

For those copy new / delete identical procedures, I use XXCOPY. Freeware command-line. E.g. XXCOPY g:\ h:\ /E/H/R/RS/BS/CDM will remove from G everything that has a bit-identical copy (and on the very same location) in H, including hidden and system files.

I need to update path names for files in foobar2000's playlists

Reply #13
I thought I had eliminated all the files that were to long but I hadn't so XXCopy wouldn't more them.  It was easier to C&P with Windows Explorer and find the problems files that way.

I need to update path names for files in foobar2000's playlists

Reply #14
I have no experience with Playlist Revive, but maybe it'll help.

Last time I had this problem I saved the playlist as m3u and replaced all instances of one drive letter with the other, then loaded it back into foobar. No need for a hex editor.

Re-copying files should be a last resort solution.

Re: I need to update path names for files in foobar2000's playlists

Reply #15
I had to work over all my playlists - thankfully I only have 63 of the things - Windows insisted on changing the drive with my music on it from G: to H: on every boot for some reason.  There were some arcane solutions suggested and a freeware program that claimed to override Win but I decided to just let it be H:

What I did with the playlists is save all as M3U, then load them all in Notepad ++, then edit them all at once, then save them all at once - very handy program, this - then load them all at once in FB2K.  It's still chugging away at a couple of them after 20 minutes but mostly done.  Playlist Revive sadly couldn't bring them back from the dead.  Once I figured out the process it was really quick and easy.

Re: I need to update path names for files in foobar2000's playlists

Reply #16
I had the same problem where I had to move the files from one drive to another so the drive letter and path changed. Initially I had tried to 'Save Playlist' using the default file type ".fpl" . When I edited ".fpl" with notepad in windows they would break. However using the tips here in this thread I was able to easily recover playlists where the file path had changed using the following steps :
  • Foobar - Selected a playlist, and choose save playlist from the dropdown
  • Foobar - When the save playlist window pops up change the 'save as type' from .fpl to .m3U
  • Notepad ++ - Edit the file path in one or many playlists
  • Foobar - Load playlist from the dropdown menu
Thanks to all the original comments they helped a lot !!

Re: I need to update path names for files in foobar2000's playlists

Reply #17
I ran into the same problem. I copied my music and my foobar installation to another computer with a different file structure, while changing my foobar from static to a portable installation. Everything worked fine, except the playlist handling.  I have aprox. 2000 playlists and cannot revieve all of them one by one with "playlist revive", or use the workaround with exporting the  *.flp to *.m3u - it's simply much too time comsuming.
So I am searching for some kind of batchprocessing tool that exchanges _all_  paths within *.flp-files (eg "c://users/Max/music" to "d://djcoll". Does anyone have a tip for me?

Re: I need to update path names for files in foobar2000's playlists

Reply #18
I have the same problem as many above. Here is my process. Please offer suggestions to make this easier.....

1. I use an old phone at work to play my playlists using Foobar2000.
2. I use my desktop at home to add/delete/modify my .m3u8 Autoplaylists and My Music Collection.
3. I remove the microSD card from the phone and connect it to my desktop. Editing my playlists and My Music Collection with the microSD card in the phone is just painfully slow.
4. I actively maintain My Music Collection on my desktop and periodically copy any new material to the microSD card. I have the same My Music Collection on the microSD card.
5. Using My Music Collection on the micorSD card as my library, I modify/edit/create my Autoplaylist files (m3u8) within Foobar200 on my desktop.
6. So now my Autoplaylist files (m3u8) on the microSD card list the files as E:\My Music Collection\song.mp3.
7. When I place the microSD card back into the phone, the path of the My Music Collection\song.mp3 changes.
8. My Autoplaylist files will not play on my phone because the song.mp3 file location is different.
9. I must edit my Autoplaylist files and remove the file path (E:\My Music Collection). That means editing ALL of the Autoplaylist files the same way.

Is there an easier/better way to do this?

Re: I need to update path names for files in foobar2000's playlists

Reply #19
I've created a script for this type of scenario, when you move a music library from one root folder path/drive to another, but all your playlists still refer to music files in the old music library root location.

I regularly use this script to convert playlists which I create with Foobar on my Windows machine, where my music is stored on "Z:\Music Library" to playlists that can be played on my Ubuntu MPD server, where the music is stored under "/datastore/Music Library/". It will go through all playlists you have within a given folder and make copies of them (with the music library root path changed correctly) into another output folder.

Feel free to try to use it if you like, hope it helps! See setup and use instructions here:
https://github.com/nwrobel/mlYou#playlist-root-path-fixing

Re: I need to update path names for files in foobar2000's playlists

Reply #20
@nwrobel
Thanks for sharing this. This is exactly what I needed the last days but now I changed all the path entries with a text editor manually.
Only a gui for noobs is missing  :)