xbmc/xbmc — pull request #1034 by Montellese (2012-06-01 11:36:31+00:00)
Title: dateadded: add < dateadded > to < videolibrary > in as.xml

There have been some (persistent) requests to get the old behaviour of "Sort by Date Added" back so I added a < dateadded > tag to < videolibrary > in advancedsettings.xml which can take the following values:

0 results in using the current datetime when adding a video. This is equivalent to the behaviour before introducing the dateadded feature.
1 results in prefering to use the files mtime (if it's valid) and only using the file's ctime if the mtime isn't valid.
2 (default) results in using the newer datetime of the file's mtime and ctime.