diff options
author | M. Voerman <rekordc@gmail.com> | 2013-12-16 16:07:52 +0100 |
---|---|---|
committer | M. Voerman <rekordc@gmail.com> | 2013-12-16 16:07:52 +0100 |
commit | 12b6486dd1b3903510cff7a4ebd28cd70f559e2a (patch) | |
tree | 99eb1e083af5638fafd5993f44484de5c066a00b /index.html | |
parent | 24598d2d7da9dc832cac2334f820cb783170e45a (diff) | |
download | vdr-vipclient-12b6486dd1b3903510cff7a4ebd28cd70f559e2a.tar.gz vdr-vipclient-12b6486dd1b3903510cff7a4ebd28cd70f559e2a.tar.bz2 |
Hopefully fixed the double bar in the last recordings directory
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 30 |
1 files changed, 13 insertions, 17 deletions
@@ -3361,20 +3361,17 @@ if (UseNewReclist && recPath == "/recordings.xml") { //Get channel number from recordings rec_lst.sort(); - for (var x=0;x<i;x++) { - recTitl[x] = rec_lst[x][0]; - recLink[x] = rec_lst[x][1]; - recDesc[x] = rec_lst[x][2]; - recDura[x] = rec_lst[x][3]; - recStrt[x] = rec_lst[x][4]; - rec_New[x] = rec_lst[x][5]; - recGUID[x] = rec_lst[x][6]; - recChan[x] = rec_lst[x][7]; - recProt[x] = rec_lst[x][8]; + for (var i=0;i<x.length;i++) { + recTitl[i] = rec_lst[i][0]; + recLink[i] = rec_lst[i][1]; + recDesc[i] = rec_lst[i][2]; + recDura[i] = rec_lst[i][3]; + recStrt[i] = rec_lst[i][4]; + rec_New[i] = rec_lst[i][5]; + recGUID[i] = rec_lst[i][6]; + recChan[i] = rec_lst[i][7]; + recProt[i] = rec_lst[i][8]; } - - - } else { // old recordings list function @@ -3401,13 +3398,12 @@ if (UseNewReclist && recPath == "/recordings.xml") { recProt[i] = 0; // No protection for Media Files. } } -} - // try to fix display double entries in the last directory. (Only shown for some time after deleting files, should be fixed now) recTitl[i] = "fake"; recGroup[i] = 0; // +} // if (recPath == "/recordings.xml" && ShowSubDir) { if (ShowSubDir) { @@ -3681,8 +3677,8 @@ function showMediaList() { if (MaxMed < 0 ) { MaxMed = 0; } for(var i=currMed; i<=currMed + MaxMed; i++) { - if (listMed<0) { listMed=nrMedia; } - if (listMed>nrMedia-1) { listMed= -1; } + if (listMed<0) { listMed=nrMedia; } + if (listMed>nrMedia) { listMed= -1; } do { |