summaryrefslogtreecommitdiff
path: root/nonprism/openshot
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2019-03-20 23:34:12 -0300
committerFreemor <freemor@freemor.ca>2019-03-20 23:34:12 -0300
commit18cd7ebfd6586253f2e7c0b264950f643c24e0d4 (patch)
tree0035b637801460564e2f091e2d2bb9ed82e8cd03 /nonprism/openshot
parenta38eb294ff7649ef77468ff1f566b6607a72d12b (diff)
downloadabslibre-18cd7ebfd6586253f2e7c0b264950f643c24e0d4.tar.gz
abslibre-18cd7ebfd6586253f2e7c0b264950f643c24e0d4.tar.bz2
abslibre-18cd7ebfd6586253f2e7c0b264950f643c24e0d4.zip
Ooops push neuter_tracking patch for [nonprism/openshot] that somehow got missed on the rebuild push
Diffstat (limited to 'nonprism/openshot')
-rw-r--r--nonprism/openshot/neuter_tracking.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/nonprism/openshot/neuter_tracking.patch b/nonprism/openshot/neuter_tracking.patch
new file mode 100644
index 000000000..27c455f6c
--- /dev/null
+++ b/nonprism/openshot/neuter_tracking.patch
@@ -0,0 +1,30 @@
+--- a/src/classes/metrics.py 2018-09-22 18:49:41.000000000 -0300
++++ b/src/classes/metrics.py 2019-02-08 08:53:21.561261422 -0400
+@@ -152,10 +152,10 @@
+ url_params = urllib.parse.urlencode(params)
+ url = "http://www.google-analytics.com/collect?%s" % url_params
+
+- # Send metric HTTP data
++ # Don't Send metric HTTP data
+ try:
+- r = requests.get(url, headers={"user-agent": user_agent}, verify=False)
+- log.info("Track metric: [%s] %s | (%s bytes)" % (r.status_code, r.url, len(r.content)))
++ # r = requests.get(url, headers={"user-agent": user_agent}, verify=False)
++ log.info("Track disabled - nonprism!")
+
+ except Exception as Ex:
+ log.error("Failed to Track metric: %s" % (Ex))
+@@ -172,10 +172,10 @@
+ "unique_install_id": s.get("unique_install_id" )})
+ url = "http://www.openshot.org/exception/json/"
+
+- # Send exception HTTP data
++ # Don't Send exception HTTP data
+ try:
+- r = requests.post(url, data=data, headers={"user-agent": user_agent, "content-type": "application/x-www-form-urlencoded"}, verify=False)
+- log.info("Track exception: [%s] %s | %s" % (r.status_code, r.url, r.text))
++ # r = requests.post(url, data=data, headers={"user-agent": user_agent, "content-type": "application/x-www-form-urlencoded"}, verify=False)
++ log.info("Tracking disabled - nonprism!")
+
+ except Exception as Ex:
+ log.error("Failed to Track exception: %s" % (Ex))