From 50eb61f218ac22a6df9c11923d09e274fe1ae813 Mon Sep 17 00:00:00 2001 From: Tom Briden Date: Thu, 6 Feb 2014 17:52:32 +0000 Subject: Fix parsing title from filename in parseOfflineIDSearch --- src/github/daneren2005/dsub/util/Util.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index 28a8c138..06c6a49d 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -482,6 +482,7 @@ public final class Util { if(entry.getArtist() != null) { String title = file.getName(); + title = title.replace(".complete", "").replace(".partial", ""); int index = title.lastIndexOf("."); title = index == -1 ? title : title.substring(0, index); title = title.substring(title.indexOf('-') + 1); -- cgit v1.2.3