My Humax Forum » Freeview HD » HDR FOX T2

How to sort randomly recorded programs (eg series

(1 post)
  1. User has not uploaded an avatar

    fjk3489tb

    new member
    Joined: Mar '11
    Posts: 2

    offline

    I tend to just record series and watch as a box set, sometimes the order of the recording vs part no get mixed up, lost and duplicated (eg if I see a few missing I'll start another series record then have duplicates which I delete but there not in the correct order).

    I've hacked the webif to add an option to touch a recording to make it the last in the series.

    Eg if I have a 4 part series ordered as:

    2 1 4 3

    'touch'ing 2 then 3 then 4 fixes this, ie:

    2 1 4 3 => 1 4 3 2 => 1 4 2 3 => 1 2 3 4

    Here's the code:

    /mnt/hd2/mod/webif/html/browse/touch.jim
    ========================================
    #!/mod/bin/jimsh

    package require cgi
    source /mod/webif/lib/setup

    httpheader

    set file [cgi_get file]

    if {[file exists $file]} {
    set file [string trimright $file ".ts"]
    puts [exec /mod/bin/busybox/touch "$file.ts" "$file.nts" "$file.hmt" "$file.thm"]
    }

    /mnt/hd2/mod/webif/html/browse/sript.js
    =======================================
    In menuclick function (~ line 414) add:

    case 'touch':
    $.get('/browse/touch.jim?file=' + file, function() {
    window.location.reload(true);});
    break;

    to the switch statement.

    /mnt/hd2/mod/webif/html/browse/assets.jim
    =========================================
    Add:
    <li class=touch>Touch

    to the optmenu & ooptmenu:

    <ul id=optmenu class=contextMenu style="width: 160px">
    & <ul id=ooptmenu class=contextMenu style="width: 160px">

    I inserted between the rename & download, ie:

    <li class="separator rename">Rename
    <li class="touch">Touch
    <li class="download">Download

    All done...

    | Sun 25 Mar 2018 15:08:37 #1 |

RSS feed for this topic

Reply

You must log in to post.