mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Stats are now sent to our server instead of Sonarr's :)
This commit is contained in:
parent
5bf95e0d9e
commit
6d00bd0f7a
3 changed files with 6 additions and 4 deletions
|
@ -25,7 +25,7 @@ module.exports = Marionette.AppRouter.extend({
|
||||||
|
|
||||||
if (window.NzbDrone.Analytics && window.Piwik) {
|
if (window.NzbDrone.Analytics && window.Piwik) {
|
||||||
try {
|
try {
|
||||||
var piwik = window.Piwik.getTracker(window.location.protocol + '//piwik.nzbdrone.com/piwik.php', 1);
|
var piwik = window.Piwik.getTracker(window.location.protocol + '//radarr.video/piwik/piwik.php', 1);
|
||||||
piwik.setReferrerUrl('');
|
piwik.setReferrerUrl('');
|
||||||
piwik.setCustomUrl('http://local' + window.location.pathname);
|
piwik.setCustomUrl('http://local' + window.location.pathname);
|
||||||
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');
|
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');
|
||||||
|
@ -60,7 +60,7 @@ module.exports = Marionette.AppRouter.extend({
|
||||||
window.localStorage.clear();
|
window.localStorage.clear();
|
||||||
Config.setValue("pageSize", pageSize);
|
Config.setValue("pageSize", pageSize);
|
||||||
// Remove above when out of pre-release :)
|
// Remove above when out of pre-release :)
|
||||||
|
|
||||||
this.pendingUpdate = true;
|
this.pendingUpdate = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
if(window.NzbDrone.Analytics) {
|
if(window.NzbDrone.Analytics) {
|
||||||
var d = document;
|
var d = document;
|
||||||
var g = d.createElement('script');
|
var g = d.createElement('script');
|
||||||
|
@ -7,6 +6,6 @@ if(window.NzbDrone.Analytics) {
|
||||||
g.type = 'text/javascript';
|
g.type = 'text/javascript';
|
||||||
g.async = true;
|
g.async = true;
|
||||||
g.defer = true;
|
g.defer = true;
|
||||||
g.src = '//piwik.sonarr.tv/piwik.js';
|
g.src = 'https://radarr.video/piwik/piwik.js';
|
||||||
s.parentNode.insertBefore(g, s);
|
s.parentNode.insertBefore(g, s);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
|
|
||||||
<!-- Windows Phone -->
|
<!-- Windows Phone -->
|
||||||
<meta name="msapplication-navbutton-color" content="#272727"/>
|
<meta name="msapplication-navbutton-color" content="#272727"/>
|
||||||
|
<!-- Piwik -->
|
||||||
|
|
||||||
|
<!-- End Piwik Code -->
|
||||||
|
|
||||||
<!-- Generated by http://realfavicongenerator.net/ -->
|
<!-- Generated by http://realfavicongenerator.net/ -->
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/Content/Images/favicon/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="/Content/Images/favicon/apple-touch-icon.png">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue