Skip to content

Commit

Permalink
internal path for playlist items #510
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Nov 19, 2020
1 parent 838d3e9 commit b3fdf2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Controller/CategoryController.php
Expand Up @@ -496,9 +496,11 @@ private function StreamParser($fileId)
$path = $line;
} elseif (substr($line, 0, 3) === '../') {
// relative one level up => remove the parent folder of the playlist file
$line = substr($line, 3);
$path = $playlistFilePath;
array_pop($path);
do {
$line = substr($line, 3);
array_pop($path);
} while (substr($line, 0, 3) === '../');

array_push($path, $line);
$path = implode('/', $path);
Expand Down

0 comments on commit b3fdf2e

Please sign in to comment.