Skip to content

Commit

Permalink
Merge pull request #510
Browse files Browse the repository at this point in the history
* consider audioplayers path from configManager when obtaining path for…

* cleanup

* add config path to playlist item only when required

* add external storage support
  • Loading branch information
zimj0 authored Nov 17, 2020
1 parent 9593353 commit 40a219d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Controller/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,9 @@ private function StreamParser($fileId)
}
} else {
// get the path of the playlist file as reference
$playlistFilePath = explode('/', $streamfile[0]->getInternalPath());
$playlistFilePath = explode('/', ltrim($streamfile[0]->getPath(), '/'));
// remove leading username
array_shift($playlistFilePath);
// remove leading "files/"
array_shift($playlistFilePath);
// remove the filename itself
Expand Down

0 comments on commit 40a219d

Please sign in to comment.