Help - Search - Members - Calendar
Full Version: [Request] Export Tags To File
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Keikonium
I just recently had a mishap with a few songs and some tags. I had been playing around with some scripts, and I ended up erasing about 20 or so time stamped lyrics tags + all the other stuff dry.gif . This got me thinking...

If I had a plugin that could export all my tags to a file (text file?) for easy backup, this would be preventable! Here is what I propose:

A plugin that lets you export all tags to a text file. It would record the files location on the HDD, followed by all the tags.

This would be great for a basic plugin, and if it took off, it could be more advanced to allow only certain tags to be exported, and only certain tags to be imported back into a file.

Maybe something like this exists already? I'm not sure. But if it does, or anyones willing to make this, that would be great smile.gif. Thank you.
Hakubo
Nice idea. smile.gif I'd use it, too.

But I'd prefer if the backup wasn't stored in single file - instead, for every directory a file was created containing tagging information for the directory's contents (without subfolders). Like cuesheet. (?)
That would mean less problems when moving directories, or even renaming files, provided the entire directory was moved beforehand. Having multiple files also means lesser probability of killing the entire backup with a crash.
odyssey
I would really really really like this one too!!!!!! biggrin.gif tongue.gif
bubbleguuum
Maybe such a plugin could be useful but the best way is to do a regular backup of you collection on a separate HDD.
With that you save your files in case of problem and your tags.

odyssey
QUOTE(bubbleguuum @ Jan 17 2007, 12:36) *

Maybe such a plugin could be useful but the best way is to do a regular backup of you collection on a separate HDD.
With that you save your files in case of problem and your tags.

Who said I wanted to use it as a tag-backup? biggrin.gif Actually I just wanted to save my current tags, roll my entire collection through a silence-padder and re-tag all files, because the tool I use for it strips all tag information too. It would also clean all the tag-fields that foobar are unable to show/edit.
Keikonium
So this does indeed sound like a good plug in smile.gif.

I'd love for one to be created. Even a very basic one that exports whatever the 'standard' tags for files are (ones you get when you rip CD's). Then, if and when it gets more advanced, replygain data, playcounts, lyrics, ratings, last played etc.

I guess it could save the tags in a few different ways. It could exam the filename of the song, and choose the tags that most closely resemble it in the backup file.

There are just a few things I am worried to do with foobar because it might erase tags or something.

(How would I make a 100% backup of foobar anyways? Without this plugin, I mean. I have per user profile enabled).
david_dl
Create a playlist containing your entire library, right click on it and choose Save As... and save it somewhere in .fpl format. If I'm not mistaken, this format stores all tag data etc. To restore, just load the .fpl, select the entire playlist, and choose Tagging->Rewrite file tags to restore the tags.
xtr
I use the "Pref./Display/Title formatting/Copy command" for backing up all tags
by adding all files to a playlist and copying + pasting all to a text editor or Excel (tab-separated).


CODE

// Print column headers
$ifequal(%_playlist_number%,1,
Path$tab()File name$tab()File size$tab()Last modified$tab()Genre$tab()Title$tab()Artists$tab()   )

$substr(%path%,4,$sub($len(%path%),$len(%filename_ext%),1))$tab()
%filename_ext%$tab(),
$substr(%_path%,4,$sub($len(%_path%),$len(%_filename_ext%),1))$tab()
%_filename_ext%$tab())
%_filesize%$tab()
[%lastmodified%]$tab()
[%genre%]$tab()
[%title%]$tab()
[$meta_sep(artist,';')]$tab()

// ...  all tags you want to backup ...

Keikonium
Thats an excelent idea you have there xtr!! Now if only I could seperate it by line breaks ($char(10) doesn't work sad.gif) I'd be set biggrin.gif.

EDIT:

$crlf() works though!

CODE

$crlf()
%path% $crlf()
[Artist: %artist%] $crlf()
[Titlte: %title%] $crlf()
[Album: %album%] $crlf()
[Track Number: %tracknumber%] $crlf()
[Rating: %rating%] $crlf()


And so on as needed smile.gif!

Thanks guys, this is a great help biggrin.gif.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.