Make xspf import less picky

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent cf849ee948
commit c37f25c2ba
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 3
      libresonic-main/src/main/java/org/libresonic/player/service/PlaylistService.java

@ -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);

Loading…
Cancel
Save