Cheeky request: recordings in folder count

RatherLargeZ

New Member
I've just noticed that in the 'Browse Media Files' section the folders listed don't have a count of the number of recordings in them. When you press the 'media' button on the Humax remote the list of folders displayed also contains the number of recordings in them.

Is there any chance that this feature can be added to the custom firmware? I love using this box for it's stability, extra HD channels and the brilliant custom firmware investment many people have made.
 
In HDR-FOXland, the count is not the number of recordings, it's the number of unwatched recordings. In the HDR-FOX WebIF, displaying the same in the media browser is a user option in Settings – you might find the same in the Foxsat WebIF:

1727338385033.png
 
The Humax Foxsat is something of a relic these days and, I suspect, user numbers are pretty low. There's not much activity re. the custom firmware, except for the much appreciated Default Authority and Channel Icon updates provided by @David500. Unfortunately, I have little time for enhancing the Web Interface at the moment. Although your request is not unreasonable, I can't justify the time to make changes like that for individual users. I'll do you a deal though - if enough people "like" your first post in this thread, I'll interpret that as a sign that plenty of people want this change and I'll see if I can find some time to look at it.
 
The Humax Foxsat is something of a relic these days and, I suspect, user numbers are pretty low. There's not much activity re. the custom firmware, except for the much appreciated Default Authority and Channel Icon updates provided by @David500. Unfortunately, I have little time for enhancing the Web Interface at the moment. Although your request is not unreasonable, I can't justify the time to make changes like that for individual users. I'll do you a deal though - if enough people "like" your first post in this thread, I'll interpret that as a sign that plenty of people want this change and I'll see if I can find some time to look at it.
That's very generous of you. Let's see what happens.
 
Just out of interest I did a quick compare between the two environments and find most of it appears to be there already (although I was unaware the Foxsat used the .series file in apparently the same way as the T2 does to record the watched/total items info.).
Here is the Foxsat code (cgi-bin/browse/browse.js):
Code:
function set_folder_new(folder, cnt)
{
        folder = folder.replace(/ /g, '');
        folder = folder.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g, '\\$1');
        //console.log("Folder: (%s) = (%s)", folder, cnt);
        $('#img' + folder).attr('src', '/img/Folder_New.png');
}
and here is the T2 code:
Code:
function set_folder_new(folder, cnt)
{
        //console.log("Folder: (%s) = (%s)", folder, cnt);
        left = cnt > 99 ? 11 : (cnt > 9 ? 14 : 17);
        $('#img' + folderID(folder))     
            .attr('src', '/img/Folder_New.png')
            .next('span.foldernum')
            .css('left', left + 'px')
            .text(cnt)
            .show();
}
In the former, the cnt count parameter goes unused.
Here is the CSS from the T2:
Code:
span.foldernum
{
        display: none;
        position: absolute;
        left: 14px;
        top: 9px;
        color: white;
        height: 15px;
        line-height: 16px;
        background-color: #cc0000;
        background: linear-gradient(#ff0000, #cc0000) repeat scroll 0 0 #eeeeee;
        font-size: 10px;
        border: 1px solid #660000;
        padding: 0 2px 0 2px;
        border-radius: 1em 1em 1em 1em;
        -moz-border-radius: 1em;
        -webkit-border-radius: 1em;
        border-top-right-radius: 1em;
        border-top-left-radius: 1em;
        border-bottom-right-radius: 1em;
        border-bottom-left-radius: 1em;
}
and here is where I think the new span element needs to go in the Foxsat's HTML (cgi-bin/browse.jim):
Code:
        puts "<div class=\"va\">"
        puts "<img class=\"va\" id=\"img$tbfile\"
            src=\"/images/711_1_09_Media_Folder.png\" alt=\"\">"
+       puts "<span class=foldernum></span>"
        puts "<a class=\"dbf\"
            href=\"/cgi-bin/browse.jim?dir=[cgi_quote_url $file]\"
            file=\"[cgi_quote_url $file]\">"
        puts "$bfile</a><span class=\"filesize\" id=\"$tbfile\"></span>"
Adding the stuff for making it optional is another level of "to-do" and probably not worth it.
 
Just out of interest I did a quick compare between the two environments
Thanks for this. Will save me a chunk of time if I come to look at it. It's been a good few years since I did anything with the WebIf, and I was wondering how long it would take my ageing brain to remember how it all hangs together. Let's see how the voting goes.
 
Back
Top