From b833f0e759aca6c90c177cb9811fed60e7105a55 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 18 May 2014 10:02:35 +0000 Subject: [PATCH] * ignore TryUploadSubtitles results (cause loads of clients submit the wrong imdb ids so we at least force new uploads with FileBot which is more likely to be correct) --- .../ui/subtitle/SubtitleUploadDialog.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/source/net/filebot/ui/subtitle/SubtitleUploadDialog.java b/source/net/filebot/ui/subtitle/SubtitleUploadDialog.java index 4b5cc782..9eb9bbb7 100644 --- a/source/net/filebot/ui/subtitle/SubtitleUploadDialog.java +++ b/source/net/filebot/ui/subtitle/SubtitleUploadDialog.java @@ -49,7 +49,6 @@ import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.TableCellEditor; import javax.swing.table.TableCellRenderer; -import net.miginfocom.swing.MigLayout; import net.filebot.Analytics; import net.filebot.Language; import net.filebot.ResourceManager; @@ -66,6 +65,7 @@ import net.filebot.web.SearchResult; import net.filebot.web.TheTVDBClient.SeriesInfo; import net.filebot.web.TheTVDBSearchResult; import net.filebot.web.VideoHashSubtitleService.CheckResult; +import net.miginfocom.swing.MigLayout; public class SubtitleUploadDialog extends JDialog { @@ -658,16 +658,13 @@ public class SubtitleUploadDialog extends JDialog { mapping.setState(SubtitleMapping.Status.Checking); checkResult = database.checkSubtitle(mapping.getVideo(), mapping.getSubtitle()); - Analytics.trackEvent(database.getName(), "CheckSubtitle", null, checkResult.exists ? 1 : 0); - // accept identity hint from search result - mapping.setIdentity(checkResult.identity); - - if (checkResult.exists) { - mapping.setLanguage(Language.getLanguage(checkResult.language)); // trust language hint only if upload not required - mapping.setState(SubtitleMapping.Status.AlreadyExists); - return checkResult; - } + // if (checkResult.exists) { + // mapping.setIdentity(checkResult.identity); + // mapping.setLanguage(Language.getLanguage(checkResult.language)); // trust language hint only if upload not required + // mapping.setState(SubtitleMapping.Status.AlreadyExists); + // return checkResult; + // } } if (mapping.getLanguage() == null) {