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

Loading…
Cancel
Save