mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Allow anonymous OSDB login
This commit is contained in:
parent
815e2fee10
commit
9c83a56d9a
@ -196,11 +196,6 @@ abstract class SubtitleDropTarget extends JButton {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (getSubtitleService().isAnonymous() && !isAppStore()) {
|
||||
log.info(String.format("%s: Please enter your login details.", getSubtitleService().getName()));
|
||||
return false;
|
||||
}
|
||||
|
||||
List<File> files = listFiles(selection, VIDEO_FILES, HUMAN_NAME_ORDER);
|
||||
|
||||
if (files.size() > 0) {
|
||||
|
@ -32,7 +32,6 @@ import javax.swing.JPanel;
|
||||
import javax.swing.JPasswordField;
|
||||
import javax.swing.JRootPane;
|
||||
import javax.swing.JTextField;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.border.TitledBorder;
|
||||
|
||||
import com.google.common.eventbus.Subscribe;
|
||||
@ -149,15 +148,6 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
|
||||
protected SubtitleRequestProcessor createRequestProcessor() {
|
||||
SubtitleProvider provider = searchTextField.getSelectButton().getSelectedValue();
|
||||
|
||||
if (provider instanceof OpenSubtitlesClient && ((OpenSubtitlesClient) provider).isAnonymous() && !isAppStore()) {
|
||||
log.info(String.format("%s: Please enter your login details first.", ((OpenSubtitlesClient) provider).getName()));
|
||||
|
||||
// automatically open login dialog
|
||||
SwingUtilities.invokeLater(() -> setUserAction.actionPerformed(new ActionEvent(searchTextField, 0, "login")));
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
// parse query
|
||||
String query = searchTextField.getText();
|
||||
int season = seasonFilter.match(query);
|
||||
|
Loading…
x
Reference in New Issue
Block a user