Start a new topic
Implemented

Replacing files - but keeping history!

What I want to do, is replacing some lossy files, with new lossless - but I don't want to lose the history of the songs.


1 person likes this idea

Added date isn't touched here at all - that said, statistics will be some kind of wrong after using this function.


For example:

* Starting with an empty database.


* 2016-08-15: Adding 15 MP3 files

--> The filetype statistics shows that I've added these tracks on 2016-08-15.


* 2016-08-18: Replacing these 15 MP3 files by 15 FLAC files

--> The filetype statistics now shows that I've added 15 FLAC files on 2016-08-15 and no MP3 files at all.


Correct would be, if statistics shows 15 added MP3 files on 2016-08-15 and 15 deleted MP3 and 15 added FLAC files on 2016-08-18...


But to get this working, you would need another table in the database to track these values.

@Sven: Correctly observed, this is not possible at the moment since deletions/replacements are not tracked (and it might be a very hard task to do, since it affects more than just this function)

Great! Very big thanks to you!

 

There's one problem: the bitrate is not being updated in the database.

 

Any further information of how you think this should work?

Separated tool, scripts etc?

I was thinking about a separate tool, but a script would be the better way to go I think...

What I would need, is a function to set a new filename and filetype (maybe also a new path).
And it would be great to read the tags from the old files and store them in the new ones.

Sorry, I didn't check the script-engine, so this might already be possible...

 

This is not yet available, but the best way is possibly to do it via a script and automate the conversion of tags.

Should not be neccesary to set a new filetype manually, the function should do that by its new destination file.

Fixed in:

http://files.helium.fm/helium_12.0.14165.0.exe


The following attributes are now updated:

  • Bitrate
  • Sample rate
  • IsVbr
  • Filesize

Can't you just replace the files (with same filename) and then apply the tags form the database to the new files again? And afterwards make the extension to .flac and re-scan the folders

Re-scanning folders will result in the loss of history...

Great! I don't know how many times I had to replace files, loosing history but I had to do it.

A first test version is implemented in:

http://files.helium.fm/helium_12.0.14161.0.exe


Two new scripts are included, one that let you select a source file and a destination file and one that takes the selection of files and iterates the folders to find a matching FLAC file to update the database with.

See the scripts for more details (UpdateFileType.cs, UpdateFileTypeMultiple.cs)


Three new funcctions in the API are implemented, see the following page for more details:

http://support.imploded.com/solution/articles/9000047903-scripting-api

I have updated the script for multiple files so that it is no longer locked to a specific filetype.

Please update your files with the attached files.

json
(588 Bytes)
cs
Great.

 

Login or Signup to post a comment