TeslaTags icon indicating copy to clipboard operation
TeslaTags copied to clipboard

Proposal: Idempotency and Undo functionality

Open daiplusplus opened this issue 7 years ago • 3 comments

When destructively modifying tags, store the original values elsewhere so that the original tags can be restored.

daiplusplus avatar Jun 09 '18 00:06 daiplusplus

I've added undo functionality by storing original tag values in a PRIV ID3v2 tag for MP3 files, but I can't see how to do this for FLAC files.

I haven't implement idempotency yet, though.

daiplusplus avatar Jun 11 '18 21:06 daiplusplus

For non-MP3 files, the Undo information could be stored in a text file in the same directory. This could also mean that we can ditch the JSON library dependency too if I use that for MP3 files instead of using a private ID3v2 frame.

daiplusplus avatar Jul 01 '18 10:07 daiplusplus

I've now implemented JSON-file based recovery data saving for non-MP3 files. No progress on idempotency though.

daiplusplus avatar Jul 01 '18 12:07 daiplusplus