* same, only track if requests if they are successful

This commit is contained in:
Reinhard Pointner 2011-11-06 05:08:07 +00:00
parent 3f22e8ff07
commit a55070088a
2 changed files with 4 additions and 2 deletions

View File

@ -163,7 +163,7 @@ public class SubtitlePanel extends AbstractSearchPanel<SubtitleProvider, Subtitl
packages.add(new SubtitlePackage(request.getProvider(), subtitle));
}
Analytics.trackEvent("GUI", "LookupSubtitleByName", request.getLanguageName(), 1);
Analytics.trackEvent("GUI", "LookupSubtitleByName", request.getLanguageName());
return packages;
}

View File

@ -617,8 +617,10 @@ class VideoHashSubtitleDownloadDialog extends JDialog {
setState(StateValue.STARTED);
try {
ByteBuffer data = subtitle.fetch();
Analytics.trackEvent(service.getName(), "DownloadSubtitle", subtitle.getLanguageName(), 1);
return subtitle.fetch();
return data;
} catch (Exception e) {
// remember exception
error = e;