mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-21 23:38:50 -05:00
Better differentiate between TheMovieDB and TheMovieDB::TV
This commit is contained in:
parent
404ea2714a
commit
f912e6b8c3
@ -68,7 +68,7 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public TypedCache<SearchResult> getPersistentSelectionMemory() {
|
public TypedCache<SearchResult> getPersistentSelectionMemory() {
|
||||||
return Cache.getCache("selection_" + provider.getName(), CacheType.Persistent).cast(SearchResult.class);
|
return Cache.getCache("series_selection_" + provider.getName(), CacheType.Persistent).cast(SearchResult.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -165,7 +165,7 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
|
|||||||
synchronized (inputMemory) {
|
synchronized (inputMemory) {
|
||||||
List<String> input = inputMemory.get(suggestion);
|
List<String> input = inputMemory.get(suggestion);
|
||||||
if (input == null || suggestion == null || suggestion.isEmpty()) {
|
if (input == null || suggestion == null || suggestion.isEmpty()) {
|
||||||
input = showMultiValueInputDialog(getQueryInputMessage("Please identify the following files:", "Enter series name:", files), suggestion, provider.getName(), parent);
|
input = showMultiValueInputDialog(getQueryInputMessage("Please identify the following files:", "Enter series name:", files), suggestion, provider.getIdentifier(), parent);
|
||||||
inputMemory.put(suggestion, input);
|
inputMemory.put(suggestion, input);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ class EpisodeListMatcher implements AutoCompleteMatcher {
|
|||||||
|
|
||||||
// multiple results have been found, user must select one
|
// multiple results have been found, user must select one
|
||||||
SelectDialog<SearchResult> selectDialog = new SelectDialog<SearchResult>(parent, options, thumbnail, true, false, header.getText().isEmpty() ? null : header);
|
SelectDialog<SearchResult> selectDialog = new SelectDialog<SearchResult>(parent, options, thumbnail, true, false, header.getText().isEmpty() ? null : header);
|
||||||
selectDialog.setTitle(provider.getName());
|
selectDialog.setTitle(provider.getIdentifier());
|
||||||
selectDialog.getMessageLabel().setText("<html>Select best match for \"<b>" + escapeHTML(query) + "</b>\":</html>");
|
selectDialog.getMessageLabel().setText("<html>Select best match for \"<b>" + escapeHTML(query) + "</b>\":</html>");
|
||||||
selectDialog.getCancelAction().putValue(Action.NAME, "Skip");
|
selectDialog.getCancelAction().putValue(Action.NAME, "Skip");
|
||||||
selectDialog.pack();
|
selectDialog.pack();
|
||||||
|
@ -218,7 +218,7 @@ public class PresetEditor extends JDialog {
|
|||||||
|
|
||||||
if (value instanceof Datasource) {
|
if (value instanceof Datasource) {
|
||||||
Datasource provider = (Datasource) value;
|
Datasource provider = (Datasource) value;
|
||||||
label.setText(provider.getName());
|
label.setText(provider.getIdentifier());
|
||||||
label.setIcon(provider.getIcon());
|
label.setIcon(provider.getIcon());
|
||||||
label.setToolTipText(String.format("%s Mode: %s", Mode.getMode(provider), provider.getName()));
|
label.setToolTipText(String.format("%s Mode: %s", Mode.getMode(provider), provider.getName()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user