Make xspf import less picky
Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
@@ -461,8 +461,7 @@ public class PlaylistService {
|
|||||||
for (Object obj : tracks) {
|
for (Object obj : tracks) {
|
||||||
Element track = (Element) obj;
|
Element track = (Element) obj;
|
||||||
String location = track.getChildText("location", ns);
|
String location = track.getChildText("location", ns);
|
||||||
if (location != null && location.startsWith("file://")) {
|
if (location != null) {
|
||||||
location = location.replaceFirst("file://", "");
|
|
||||||
MediaFile file = getMediaFile(location);
|
MediaFile file = getMediaFile(location);
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
ok.add(file);
|
ok.add(file);
|
||||||
|
|||||||
Reference in New Issue
Block a user