Sorting file lists….

Home Forums Feature Suggestions Sorting file lists….

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23131
    argento
    Participant

    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.

    #27221
    WaterBurnDotDotDot
    Participant

    I would also like to see this implemented.

    #27222
    Anonymous
    Inactive

    I’d like this feature also, particularly by date so I know what movies I’ve added recently.

    #27223
    cadbusca
    Participant

    I’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?

    #27224
    cadbusca
    Participant

    OK. Solved. I’ve been able to patch mine to add a sort on date option.

    #27225
    Anonymous
    Inactive

    is this patch included in your enhancement pack?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Login

Lost Password