aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorTom Briden <tom@decompile.me.uk>2014-02-06 17:52:32 +0000
committerTom Briden <tom@decompile.me.uk>2014-02-06 17:53:43 +0000
commit50eb61f218ac22a6df9c11923d09e274fe1ae813 (patch)
tree0003f6cdaa25de2de17c71b6ac1f658da2ea992b /src/github/daneren2005
parent7dcbd97e56f8abfd1cd1f6f6d9790f1996b41cc3 (diff)
downloaddsub-50eb61f218ac22a6df9c11923d09e274fe1ae813.tar.gz
dsub-50eb61f218ac22a6df9c11923d09e274fe1ae813.tar.bz2
dsub-50eb61f218ac22a6df9c11923d09e274fe1ae813.zip
Fix parsing title from filename in parseOfflineIDSearch
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/util/Util.java1
1 files changed, 1 insertions, 0 deletions
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);