diff --git a/source/net/sourceforge/filebot/ui/panel/list/FileListTransferablePolicy.java b/source/net/sourceforge/filebot/ui/panel/list/FileListTransferablePolicy.java index f2e7aee4..9d29af08 100644 --- a/source/net/sourceforge/filebot/ui/panel/list/FileListTransferablePolicy.java +++ b/source/net/sourceforge/filebot/ui/panel/list/FileListTransferablePolicy.java @@ -44,6 +44,9 @@ class FileListTransferablePolicy extends FileTransferablePolicy { // set title based on parent folder of first file list.setTitle(FileUtilities.getFolderName(files.get(0).getParentFile())); + // clear selection + list.getListComponent().clearSelection(); + if (containsOnly(files, FOLDERS)) { loadFolders(files); } else if (containsOnly(files, MediaTypes.getFilter("application/torrent"))) { diff --git a/source/net/sourceforge/filebot/ui/panel/list/ListPanel.java b/source/net/sourceforge/filebot/ui/panel/list/ListPanel.java index a9e60de2..deaf8133 100644 --- a/source/net/sourceforge/filebot/ui/panel/list/ListPanel.java +++ b/source/net/sourceforge/filebot/ui/panel/list/ListPanel.java @@ -50,7 +50,6 @@ public class ListPanel extends JComponent { public ListPanel() { - list.setTitle("Title"); textField.setFont(new Font(MONOSPACED, PLAIN, 11)); diff --git a/source/net/sourceforge/filebot/web/AnidbClient.java b/source/net/sourceforge/filebot/web/AnidbClient.java index e3f8708e..688ebb08 100644 --- a/source/net/sourceforge/filebot/web/AnidbClient.java +++ b/source/net/sourceforge/filebot/web/AnidbClient.java @@ -123,7 +123,7 @@ public class AnidbClient implements EpisodeListProvider { // allow only normal and recap episodes if (flags == null || flags.equals("2")) { String number = getTextContent("epno", node); - String title = selectString(".//title[@lang='en']", node); + String title = selectString("./titles/title[@lang='en']", node); // no seasons for anime episodes.add(new Episode(animeTitle, null, number, title)); diff --git a/source/net/sourceforge/tuned/StringUtilities.java b/source/net/sourceforge/tuned/StringUtilities.java index 0988c884..2a0a809c 100644 --- a/source/net/sourceforge/tuned/StringUtilities.java +++ b/source/net/sourceforge/tuned/StringUtilities.java @@ -22,14 +22,14 @@ public final class StringUtilities { } - public static String join(Iterable values, CharSequence separator) { + public static String join(Iterable values, CharSequence delimiter) { StringBuilder sb = new StringBuilder(); for (Iterator iterator = values.iterator(); iterator.hasNext();) { sb.append(iterator.next()); if (iterator.hasNext()) { - sb.append(separator); + sb.append(delimiter); } }