* same, only track if requests if they are successful
This commit is contained in:
parent
3f22e8ff07
commit
a55070088a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue