try+1
authorNiki Roo <niki@nikiroo.be>
Fri, 10 Aug 2018 17:43:40 +0000 (19:43 +0200)
committerNiki Roo <niki@nikiroo.be>
Fri, 10 Aug 2018 17:43:40 +0000 (19:43 +0200)
src/be/nikiroo/fanfix/supported/InfoReader.java

index 369b32454ac95c2433122c9d9dcd422bcfb7157f..f589e6f30787e8fe6c8e4841e4cf0f94e3b36724 100644 (file)
@@ -108,7 +108,7 @@ public class InfoReader {
                int pos = name.lastIndexOf(".");
                if (cover == null && pos > 0) {
                        name = name.substring(0, pos);
-                       basefile = new File(basefile.getParent(), basefile.getName());
+                       basefile = new File(basefile.getParent(), name);
 
 System.out.println(">>> " + basefile);
                        cover = BasicSupportHelper.getImage(null, sourceInfoFile,