HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: wcs13 on 2017-12-05 00:15:42

Title: Mass-editing .fpl files
Post by: wcs13 on 2017-12-05 00:15:42
Hi everybody,

Due to a change in my music library root folder, I'd like to mass-edit all my playlists (excluding autoplaylists of course).

Basically I'd have to replace all the "X:\AUDIO\" with only "X:\", in all my playlists.

Can this be achieved, and if yes, how please ?

Thank you.
Title: Re: Mass-editing .fpl files
Post by: Daeron on 2017-12-05 02:37:45
Foo_playlist_revive (https://hydrogenaud.io/index.php/topic,73910.0.html) or you can export your playlists to a plaintext format (maybe m3u), do a basic replace on all the paths then reimport the modified playlists back to foobar.
Title: Re: Mass-editing .fpl files
Post by: wcs13 on 2017-12-05 03:52:59
Awesome ! Thanks Daeron, I'll give the reviver a try. ;)
Title: Re: Mass-editing .fpl files
Post by: wcs13 on 2017-12-06 01:55:53
It works. Well, sort of. It retrieves a small part of the stuff (generally less than half), and only one playlist at a time, which is quite tedious when you have dozens of them.
Most of all, it doesn't seem very effective. Lots of files where basically only the path changed (e.g. X:\ instead of X:\AUDIO) weren't retrieved, even though their main tags (artist, title, album, etc.) were unchanged.
Well, nevermind. Good enough for now. :) Most of my playlists are autoplaylists anyway, and the rest I'll be able to correct manually I guess.
Title: Re: Mass-editing .fpl files
Post by: tblob on 2017-12-06 04:37:11
Under Advanced/Tools/Playlist Revive  there is an option "compare track title in reviving" that might help.
Title: Re: Mass-editing .fpl files
Post by: kode54 on 2017-12-07 02:37:27
It's all in your Media Library, right? It doesn't have any idea where else to source the tracks from when looking for the new locations.
Title: Re: Mass-editing .fpl files
Post by: EpicForever on 2017-12-07 11:16:57
Best way would be to save everything to .m3u file, open each in Notepad, hit Ctrl+H, put X:\AUDIO into top line and then X:\ into bottom one and then hit "Replace all". Then simply hit Ctrl+S and load such file in foobar. Foobar would only need to load extended metadata info from files (which may take some time) and then you only need to close it to have all .fpl files saved in config folder. No plugins involved.