From 919a6c06600caf32acfc0b17b4df09ffad1dff00 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 27 Oct 2011 05:54:49 +0000 Subject: [PATCH] * track method of looking up subtitles (search by name VS lookup by hash) --- .../net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java | 2 ++ source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java b/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java index 0307efc7..85195eaf 100644 --- a/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java +++ b/source/net/sourceforge/filebot/ui/subtitle/SubtitleDropTarget.java @@ -32,6 +32,7 @@ import javax.swing.JDialog; import javax.swing.JFileChooser; import javax.swing.filechooser.FileNameExtensionFilter; +import net.sourceforge.filebot.Analytics; import net.sourceforge.filebot.ResourceManager; import net.sourceforge.filebot.web.VideoHashSubtitleService; @@ -114,6 +115,7 @@ abstract class SubtitleDropTarget extends JButton { dialog.setVisible(true); // now it's up to the user + Analytics.trackEvent("GUI", "LookupSubtitleByHash", getQueryLanguage(), videoFiles.size()); return true; } diff --git a/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java b/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java index 4ef07f5c..abc2e563 100644 --- a/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java +++ b/source/net/sourceforge/filebot/ui/subtitle/SubtitlePanel.java @@ -21,6 +21,7 @@ import java.util.Locale; import javax.swing.Icon; import javax.swing.JComboBox; +import net.sourceforge.filebot.Analytics; import net.sourceforge.filebot.Settings; import net.sourceforge.filebot.WebServices; import net.sourceforge.filebot.ui.AbstractSearchPanel; @@ -217,6 +218,7 @@ public class SubtitlePanel extends AbstractSearchPanel