From 4d21e2062b041f48f1fe58ee0f6cb00cf8196d7f Mon Sep 17 00:00:00 2001 From: Boris Date: Sat, 18 Sep 2021 14:08:44 +0200 Subject: [PATCH] [FIX] swarm_files.php display --- www/boris/swarm_files.php | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/www/boris/swarm_files.php b/www/boris/swarm_files.php index ec36f62..c6b2af2 100644 --- a/www/boris/swarm_files.php +++ b/www/boris/swarm_files.php @@ -26,13 +26,21 @@ foreach ($swarm as $peer) { $peerName = file_get_contents('swarm/' . $peer . '/G1SSB/_g1.astroport_title'); - echo '

'. $peerName . ' ['. substr($peer, 0, 5) . '…' . substr($peer, -4) . ']

'; + echo ' +

+ '. trim($peerName) . ' ['. substr($peer, 0, 5) . '…' . substr($peer, -4) . '] +

+ '; $files = scandir('swarm/' . $peer . '/astroport/kodi/vstream'); foreach ($files as $f) { - echo '

' . getCollectionType($f) . '

'; + echo ' +

+ ' . getCollectionType($f) . ' +

+ '; $collection = file_get_contents('swarm/' . $peer . '/astroport/kodi/vstream/' . $f); $collection = trim($collection); @@ -48,23 +56,26 @@ foreach ($swarm as $peer) { list($a, $b, $c, $videoName, $e, $g, $h, $m, $videoURI) = explode(";", $v); - $videoURL = 'https://'. HOST. $videoURI; + $videoURL = /* 'http://'. HOST. */ $videoURI; $mimeType = guessTypeFromFilename($videoURL); if ($mimeType == 'video/mp4') { - echo '
  • '; echo ' - ' . $videoName . '
    - ('. $mimeType . ')
    + +
  • + ' . $videoName . '
    + ('. $mimeType . ')
    - '; - - echo '
  • '; + + + '; } } + + echo ''; } }