summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-27 15:02:57 +0100
committerAlib <aliboba@free.fr>2010-03-27 15:02:57 +0100
commite50ad82caf7e51e7cffc15be6883c38ce2d27957 (patch)
tree644870c8d2d5dbcaa95d1e4da70c16ee5f03f194
parent329416407e61afda86e14f28e518894472ffc5b6 (diff)
parent1c756d4357f3be6ff8dd97f7a74e2c04f99726a6 (diff)
downloadistreamdev-e50ad82caf7e51e7cffc15be6883c38ce2d27957.tar.gz
istreamdev-e50ad82caf7e51e7cffc15be6883c38ce2d27957.tar.bz2
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
-rwxr-xr-xbin/files.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/bin/files.php b/bin/files.php
index 123644e..6060fa9 100755
--- a/bin/files.php
+++ b/bin/files.php
@@ -206,18 +206,23 @@ function filesgetlisting($dir)
list($newentry['trackname'], $newentry['length']) = mediagetmusicinfo($dir ."/" .$value);
$newentry['number'] = $number;
$number++;
+ $filelisting[] = $newentry;
+ break;
case 'video':
+ $filelisting[] = $newentry;
+ break;
case 'folder':
+ $newentry['path'] = $newentry['path'] .'/';
+ // Skip emtpy dirs
+ if (glob(quotemeta($newentry['path']) .'*'))
+ $folderlisting[] = $newentry;
+ break;
case 'rec':
- if ($type == 'folder')
- {
- $newentry['path'] = $newentry['path'] .'/';
-
- if (glob(quotemeta($newentry['path']) .'*'))
- $folderlisting[] = $newentry;
- }
- else
- $filelisting[] = $newentry;
+ $date = preg_replace('/-/', '/', substr($value, 0, 10));
+ $time = preg_replace('/\./', 'h', substr($value, 11, 5));
+ $recnice = $date .' at ' .$time;
+ //$newentry['name'] = $recnice;
+ $folderlisting[] = $newentry;
break;
default:
}