Skip to content

Commit

Permalink
Fixed album parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalpuffke committed Jun 5, 2020
1 parent c5146db commit d4cecd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/de/mineclashtv/utils/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ public Parser() {
public String getTag(String tag) {
// Create shell object if it doesn't exist
if(shell == null) shell = new Shell();
String result = shell.exec("cmus-remote -Q | grep '" + tag + "'");
String remote = shell.exec("cmus-remote -Q | grep '" + tag + "'");
String[] split = remote.split(System.lineSeparator());

return result.substring(tag.length() + 1).replace(System.lineSeparator(), "");
return split[0].substring(tag.length() + 1).replace(System.lineSeparator(), "");
}

}

0 comments on commit d4cecd7

Please sign in to comment.