2013-03-02, 05:33
(2013-03-02, 01:10)Cocotus Wrote:(2013-03-01, 21:20)Suprnaut Wrote:(2013-03-01, 19:43)Cocotus Wrote: For sorting I used the DateAdded value of each movie in Ember - this value represents the date when you added the movie to the database. This means if you deleted or rebuild your Ember database, the datestamps will be resetted. I had this problem before: I deleted my complete Ember database, then scanned my movie collection again and then and all dates were the same - thats why it seems that the sort function don't work, because all dates are the same.
To avoid that, we could save the DateAdded value to the nfo of each movie so even when you rebuild your Ember database it will have/use the old values.
Ok, I used a powershell script to change all the modified dates of the folders to set it to the oldest file inside the directory. This fixed the date issue with Ember. So now when I import and filter based on date it is correct. That doesn't translate to the website.
Is there an automated way to add the date to the nfos?
Also I tried removing the 20 newest movies from the folder prior to running ember. I then ran a movie export to html. Then I added the 20 movies back into the folder, rescanned with Ember, and re-exported. That didn't work either. It still showed a random order when I click on Newest Files.
I think you misunderstood - With DateAdded I didn't mean the date of file/folder attributes of the movies, but the internal database field in Ember which is named "DateAdded". This date is set once you import the movie the first time in the database of Ember. The problem is that this date is NOT safed in NFO of movie like other values. So whenever you delete and readd the movie to the databas, this date will be set to current time - which is not what we want I guess. I think I will add ability to Ember to save this field to nfo and if you rebuild your database it will consider the saved value from nfo.
(2013-03-01, 04:01)Randall Lind Wrote: Trakt.TV is cool do you plan to add TV Shows also?
Will look into it - so maybe in 1.3.11 let's see
I see what u are saying, but that is why I tried to manually remove the 20 newest movies then add them later and it still didn't work. I noticed that the generated HTML saves the path and file name as variables. Would it be possible to use those variables to get the timestamp of the movie and sort based on that?