diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java index f9fa8b3..cad3048 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java @@ -73,7 +73,7 @@ public class SongLoaderRunnable implements Runnable { name = Paths.get(songUrl.toURI().getPath()).getFileName().toString(); } else { bytes = Files.readAllBytes(songPath); - name = fileName; + name = !isFolder ? fileName : songPath.getFileName().toString(); } } catch (Exception e) { exception = new SongLoaderException(Component.text(e.getMessage()));