Kodi Community Forum
Recently added is not sorting based on advancedsettings | Frodo [SOLVED] - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Recently added is not sorting based on advancedsettings | Frodo [SOLVED] (/showthread.php?tid=152968)



Recently added is not sorting based on advancedsettings | Frodo [SOLVED] - aiccucs - 2013-01-22

My recently added movies/episodes are not sorting any differently even though I have the <dateadded> setting in my advancedsettings.xml.

I've tried all three settings (0,1 & 2) and the sorting is always the same. Is there something I have to do for this setting to take effect? I have restarted XBMC (obviously) and have ran a library update. I tried this on Frodo RC3 and the latest nightly build (1/21/13) for Windows.

The movies appear to be ordered by the file create date and the episode don't appear to sort in any particular order.

Code:
<advancedsettings>
    <videodatabase>
        <type>mysql</type>
        <host>*</host>
        <port>*</port>
        <user>*</user>
        <pass>*</pass>
    </videodatabase>
    <musicdatabase>
        <type>mysql</type>
        <host>*</host>
        <port>*</port>
        <user>*</user>
        <pass>*</pass>
    </musicdatabase>
    <network>
        <cachemembuffersize>78643200</cachemembuffersize>
    </network>
    <videolibrary>
        <dateadded>2</dateadded>
    </videolibrary>
</advancedsettings>


EDIT: If you change this setting you must re-scan the library/individual files for them to take the new sort order.


RE: Recently added is not sorting based on advancedsettings | Frodo - jmarshall - 2013-01-22

You have to re-scan said files.


RE: Recently added is not sorting based on advancedsettings | Frodo - aiccucs - 2013-01-22

(2013-01-22, 05:35)jmarshall Wrote: You have to re-scan said files.

Thank you. Just to verify, mtime is modified date/time and ctime is create date/time, correct?


RE: Recently added is not sorting based on advancedsettings | Frodo - jmarshall - 2013-01-22

It depends somewhat on platform on what they mean I suspect. In theory it is as you described.


RE: Recently added is not sorting based on advancedsettings | Frodo - aiccucs - 2013-01-22

(2013-01-22, 10:22)jmarshall Wrote: It depends somewhat on platform on what they mean I suspect. In theory it is as you described.

I was going to post another question but I figured out my newest 'recently added' issue. Some file were appearing at the top of my recently added list that shouldn't have been there.

When I looked in Windows these files had an older create date/time and a blank modified date/time. When I look at the attributes in the NFS share (XBMC uses this), the modified dates were in 2038 and some were 2015. However, the create date/time on these files were correct.

It would be nice if XBMC could somehow filter out future dates and automatically use the modified/create date which isn't in the future.

I would think that option 1 would do this as it says that it will use the ctime if the mtime isn't valid.

Code:
0 results in using the current datetime when adding a video;
1 (default) 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 results in using the newer datetime of the file's mtime and ctime