Sorting file lists….
Home › Forums › Feature Suggestions › Sorting file lists….
- This topic is empty.
-
AuthorPosts
-
September 18, 2010 at 1:09 pm #23131argentoParticipant
One thing I would like to have is the ability to sort the directories. The main one I am looking for is sort by date (added/modified/whatever) so that any recently added media will be at the top, or any folders with recently added media will be at the top. Kind of a cheap (but effective) version of XBMC’s “recently added”.
I did find this topic, but it is from quite awhile back with no relevant responses.
Is this something that could be implemented without a lot of trouble?
Thanks for any considerations.
September 18, 2010 at 7:49 pm #27221WaterBurnDotDotDotParticipantI would also like to see this implemented.
December 5, 2010 at 8:14 pm #27222AnonymousInactiveI’d like this feature also, particularly by date so I know what movies I’ve added recently.
December 6, 2010 at 10:31 pm #27223cadbuscaParticipantI’d like to do this too. Files have a field defined for time that I think could do this but I don’t know enough C to use it.
The file definition is :
typedef struct
{
u64 length; // file length
time_t mtime; // file modified time
int type; // TYPE_FILE, TYPE_FOLDER, TYPE_PLAYLIST, TYPE_SEARCH
char filename[MAXPATHLEN + 1]; // full filename
char displayname[MAXJOLIET + 1]; // name for browser display
char image[MAXJOLIET + 1];
int icon; // icon to display
} BROWSERENTRY;and the browser entries are loaded with:
snprintf(browserList[browser.numEntries+i].filename, MAXJOLIET, “%s”, filename);
browserList[browser.numEntries+i].length = filestat.st_size;
browserList[browser.numEntries+i].mtime = filestat.st_mtime;which I assumed indicated that filestat.st_mtime was an integer, but when I try and use it the error message says that bit is type_t so I do not know how to use that value. Searching code and the web have given me no leads.
Can anyone help?December 9, 2010 at 2:32 am #27224cadbuscaParticipantOK. Solved. I’ve been able to patch mine to add a sort on date option.
December 10, 2010 at 9:49 pm #27225AnonymousInactiveis this patch included in your enhancement pack?
-
AuthorPosts
- You must be logged in to reply to this topic.
