Jump to content

Slightly Off-Topic: Script to correct date in MetaData


Netbug

Recommended Posts

I've posted a few times about incorrect data stored in the metadata of much of my collection. A large portion is showing added in 2014 and 2015.

 

I've been going through them one-by-one through the MB3 web interface, but it is tedious as hell.

 

I was wondering if anyone knew how to, and would be willing to (or to point me in the right direction to learn how to), create a simple script to read the information contained the in the metadata and replace the date line.

 

The pseudo-code would be

 

open metadata file

if <Added>26/10/2014 12:00:00 AM</Added> is greater than 2013

  then replace with

  <Added>01/01/2013 12:00:00 AM</Added>

  save

  check the next file

else

  check the next file

 

I have no idea how to code. Anybody willing to give this a shot?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...