INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Understanding MC Library.xml  (Read 860 times)

JRFan

  • Recent member
  • *
  • Posts: 35
Understanding MC Library.xml
« on: March 22, 2013, 12:12:15 pm »

Out of curiosity how do you convert Date time values in the MC Library into readable values?
<Field Name="Date Imported">1344888533</Field> to 2013-02-28 1:22 PM.
I am guessing there is some base date to which you add the number of seconds to reach the correct date & time.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42029
  • Shoes gone again!
Re: Understanding MC Library.xml
« Reply #1 on: March 22, 2013, 12:39:19 pm »

File dates are seconds since 1970.

If the date has a decimal, it's days since 1900.

The decimal format is our newer format and what is used everywhere inside the program.
Logged
Matt Ashland, JRiver Media Center

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Logged
The opinions I express represent my own folly.

JRFan

  • Recent member
  • *
  • Posts: 35
Re: Understanding MC Library.xml
« Reply #3 on: March 28, 2013, 09:57:45 am »

Thank you for the information. I have no real purpose for this other than I wanted to learn how to parse XML, and MC Library.xml seemed like an interesting choice. I can display the XML in a tree view Audio, Video, Image, Data and Unknown. The audio branch expands to show Artists and then to  Albums and then to tracks. You get the idea.

I am in no way saying there is anything in the way bugs, just some observations in the difference between the Library view in JR and the exported XML. I have learned some interesting things like "Album" and "Album Artist", use "Album Artist" unless blank then use "Artist".
I have found I have an album title in mixed case with some of the tracks attached and then the same album in upper case with the rest of the tracks. The case of the "Artists" seem to be ignored in the JR library but are not the same in the XML so you end up with 2 artists different only in case.

Thanks again.
Logged
Pages: [1]   Go Up