|
@@ -8,7 +8,11 @@ if(isset($_GET["bkend"])){
|
|
|
foreach ($intdirs as &$intdir) {
|
|
|
preg_match('/storage\/([^\/]*)/', $intdir, $out_playlist);
|
|
|
$tmp = [];
|
|
|
- $tmp["name"] = "Internal - ".hex2bin($out_playlist[1]);
|
|
|
+ if(ctype_xdigit($out_playlist[1])){
|
|
|
+ $tmp["name"] = "Internal - ".hex2bin($out_playlist[1]);
|
|
|
+ }else{
|
|
|
+ $tmp["name"] = "Internal - ".$out_playlist[1];
|
|
|
+ }
|
|
|
$tmp["dir"] = "../../../Video/".$intdir."/";
|
|
|
$tmp["drive"] = "internal";
|
|
|
$tmp["playlist"] = $out_playlist[1];
|
|
@@ -24,7 +28,11 @@ if(isset($_GET["bkend"])){
|
|
|
preg_match('/\/media\/([^\/]*)\//', $extdir, $out_storage);
|
|
|
preg_match('/Video\/([^\/]*)/', $extdir, $out_playlist);
|
|
|
$tmp = [];
|
|
|
- $tmp["name"] = $out_storage[1]." - ".hex2bin($out_playlist[1]);
|
|
|
+ if(ctype_xdigit($out_playlist[1])){
|
|
|
+ $tmp["name"] = $out_storage[1]." - ".hex2bin($out_playlist[1]);
|
|
|
+ }else{
|
|
|
+ $tmp["name"] = $out_storage[1]." - ".$out_playlist[1];
|
|
|
+ }
|
|
|
$tmp["dir"] = $extdir."/";
|
|
|
$tmp["drive"] = $out_storage[1];
|
|
|
$tmp["playlist"] = $out_playlist[1];
|