Make xspf import less picky

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
Andrew DeMaria
2017-01-21 13:49:40 -07:00
parent cf849ee948
commit c37f25c2ba
@@ -461,8 +461,7 @@ public class PlaylistService {
for (Object obj : tracks) {
Element track = (Element) obj;
String location = track.getChildText("location", ns);
if (location != null && location.startsWith("file://")) {
location = location.replaceFirst("file://", "");
if (location != null) {
MediaFile file = getMediaFile(location);
if (file != null) {
ok.add(file);