Author Topic: modify "added" statistics by hand?  (Read 1922 times)

mb_3000

  • Newbie
  • *
  • Posts: 5
    • View Profile
modify "added" statistics by hand?
« on: July 16, 2014, 22:47:15 »
Hi there.
is there a way to manually modify the statistics of a song?
I created my database in GMB a few months ago but most of my music it's been a part of my collection for years. is there a way to manually modify the "added" value of these files?
thanks!

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: modify "added" statistics by hand?
« Reply #1 on: July 28, 2014, 21:44:32 »
(Sorry for not replying sooner)
Not currently. I plan to add a statistics tab to the song(s) properties dialogs

In the meantime, you can do it with this small script : https://gist.github.com/squentin/1e2679c7d8ad22408084 and this command :
Code: [Select]
find /PATH/TO/MUSIC/ -iname \*.mp3 -exec perl setfield.pl "{}" added 1000000000 \;replace the path, the 1000000000 by the value given by this command :
Code: [Select]
date +"%s" -d "28 July 2010" and if you have files other than mp3 you need to replace \*.mp3 and run it for each extension.

It might be a bit hard if you are not familiar with the command-line, let me know if you need any help with it.

EDIT: you must run the command while gmb is running, it communicates with it via dbus

mb_3000

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: modify "added" statistics by hand?
« Reply #2 on: July 28, 2014, 21:47:14 »
wow thanks!
I'll try later today and let you know.
thank you very much :)