Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 10bb39763788f7ff8e1bf597b8ac6b0c7fb277da 1 parent e091d34
Patrick Atoon authored March 24, 2012
3  src/main/java/net/pms/dlna/PlaylistFolder.java
@@ -122,7 +122,8 @@ public synchronized void resolve() {
122 122
 							} else {
123 123
 								title = line;
124 124
 							}
125  
-						} else if (!line.startsWith("#")) {
  125
+						} else if (!line.startsWith("#") && !line.matches("^\\s*$")) {
  126
+							// Non-comment and non-empty line contains the filename
126 127
 							fileName = line;
127 128
 							Entry entry = new Entry();
128 129
 							entry.fileName = fileName;

0 notes on commit 10bb397

Please sign in to comment.
Something went wrong with that request. Please try again.