Menu

#491 Fix 'Date-Added' puts 1601-01-01 01:00:00 into all nfos

1.0
closed
Rob
None
2024-08-18
2024-08-14
Rickard
No

Tried the feature Fix 'Date-Added' under advanced movie preferences, but it ends up putting <dateadded>1601-01-01 01:00:00</dateadded> into every movie.nfo.
But sorting after Date Added works fine, I can see stuff back at 2019 up to today. So Media Companion has the correct date, shown in Sort Date Added, but fails to put that info in the .nfo.

Discussion

  • Rickard

    Rickard - 2024-08-14

    I can add that the "Rebuild Movie nfo files" also put the wrong date in, it puts the current time into <dateadded></dateadded> instead of the correct added time based on the movie file.

     
  • Rob

    Rob - 2024-08-14

    Will look into this and let you know.

     
  • Rob

    Rob - 2024-08-15

    This is working correctly for me, but it could be an OS issue, as MC gets the Date added from the video files last date written.

    "Rebuild Movie nfo files", doesn't fix the date added, not sure why your getting a time in this.

    Sounds like an OS issue, or permission issue.
    Can you advise the location of extracted Media Companion files please.

     
  • Rickard

    Rickard - 2024-08-15

    I run Windows 10 with my media mounted from a NAS as windows share on z:\ (same config.xml as in my other ticket produce this error to).

    I usually have no problems with date. Windows can see all 3 of creation time, modified time, and access time. And all 3 have valid values. I have ran rsync on the files and it has no problem detecting dates. I have also been coding some own small help script/tools in Java using built in Files.getLastModifiedTime and Files.setLastModifiedTime and they also work on my media files. So hopefully it should not be file access problems.

    What i mean with trying "Rebuild Movie nfo files" was since all movie.nfo got the exact same string <dateadded>1601-01-01 01:00:00</dateadded> i used Notepad++ to find and replace in all files, and set it to search for movie.nfo and the string above and replace with "" (empty string), effectively deleting all <dateadded/> tags. And the ran a Refresh followed by a "Rebuild Movie nfo files". It made MC recreate all those tags in the xml, but it put the current date/time in it instead of the actual date added.

     
  • Rob

    Rob - 2024-08-18

    Found and Fixed. Also because of BasicSave mode selected.

    Fix in place for the next release.

     
  • Rob

    Rob - 2024-08-18
    • status: open --> closed
    • assigned_to: Rob
     

Log in to post a comment.