Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for not creating entries for empty lines in .m3u files.

  • Loading branch information...
commit 10bb39763788f7ff8e1bf597b8ac6b0c7fb277da 1 parent e091d34
Patrick Atoon Raptor399 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/main/java/net/pms/dlna/PlaylistFolder.java
3  src/main/java/net/pms/dlna/PlaylistFolder.java
View
@@ -122,7 +122,8 @@ public synchronized void resolve() {
} else {
title = line;
}
- } else if (!line.startsWith("#")) {
+ } else if (!line.startsWith("#") && !line.matches("^\\s*$")) {
+ // Non-comment and non-empty line contains the filename
fileName = line;
Entry entry = new Entry();
entry.fileName = fileName;
Please sign in to comment.
Something went wrong with that request. Please try again.