summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Voerman <rekordc@gmail.com>2013-12-16 16:35:41 +0100
committerM. Voerman <rekordc@gmail.com>2013-12-16 16:35:41 +0100
commit5594b5c509de25e8cb32f9a9f871eec700c5e945 (patch)
tree03e1d7c76e1a60cf8250662ae48a8587c350bbea
parent12b6486dd1b3903510cff7a4ebd28cd70f559e2a (diff)
downloadvdr-vipclient-5594b5c509de25e8cb32f9a9f871eec700c5e945.tar.gz
vdr-vipclient-5594b5c509de25e8cb32f9a9f871eec700c5e945.tar.bz2
Empty line in /media_listing removed
-rw-r--r--index.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/index.html b/index.html
index 61af09b..077adff 100644
--- a/index.html
+++ b/index.html
@@ -3337,6 +3337,8 @@ try {
xmlDoc=xmlhttp.responseXML;
var x=xmlDoc.getElementsByTagName("item");
nrMedia = x.length - 1;
+ recTitl.length = 0;
+ rec_lst.length = 0;
if (UseNewReclist && recPath == "/recordings.xml") {
for (var i=0;i<x.length;i++)
@@ -3375,7 +3377,8 @@ if (UseNewReclist && recPath == "/recordings.xml") {
} else {
// old recordings list function
-
+// also used for media listing
+
for (var i=0;i<x.length;i++) {
recTitl[i] = (x[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
recTitl[i] = recTitl[i].split("~");
@@ -3398,14 +3401,10 @@ 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;
- //
+ recProt[i] = 1;
}
-// if (recPath == "/recordings.xml" && ShowSubDir) {
if (ShowSubDir) {
MakeRecList2();
} else {