mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-04 16:35:08 -05:00
* minor refactoring
This commit is contained in:
parent
014c668cdd
commit
a860a6ab5d
@ -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"))) {
|
||||
|
@ -50,7 +50,6 @@ public class ListPanel extends JComponent {
|
||||
|
||||
|
||||
public ListPanel() {
|
||||
|
||||
list.setTitle("Title");
|
||||
|
||||
textField.setFont(new Font(MONOSPACED, PLAIN, 11));
|
||||
|
@ -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));
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user