Advertisement
Guest User

Untitled

a guest
Mar 13th, 2013
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.85 KB | None | 0 0
  1. @@ -41,7 +41,7 @@
  2.  from ACEStream.Core.Ads.Manager import AdManager
  3.  from ACEStream.Core.TS.Service import TSService
  4.  from ACEStream.Core.Utilities.mp4metadata import clear_mp4_metadata_tags_from_file
  5. -from ACEStream.Core.Statistics.GoogleAnalytics import GoogleAnalytics
  6. +#from ACEStream.Core.Statistics.GoogleAnalytics import GoogleAnalytics
  7.  from ACEStream.Core.Statistics.TNS import TNS, TNSNotAllowedException
  8.  from ACEStream.Core.Statistics.Settings import RemoteStatisticsSettings
  9.  from ACEStream.Core.Statistics.TrafficStatistics import TrafficStatistics
  10. @@ -230,7 +230,7 @@
  11.          ACEStream.Core.DirectDownload.Downloader.DEBUG = debug_level == -1 or debug_level & 2 != 0
  12.          ACEStream.Core.DirectDownload.Storage.DEBUG = debug_level == -1 or debug_level & 2 != 0
  13.          ACEStream.Core.DirectDownload.VODTransporter.DEBUG = debug_level == -1 or debug_level & 2 != 0
  14. -        ACEStream.Core.Statistics.GoogleAnalytics.DEBUG = debug_level == -1 or debug_level & 2 != 0
  15. +#        ACEStream.Core.Statistics.GoogleAnalytics.DEBUG = debug_level == -1 or debug_level & 2 != 0
  16.          ACEStream.Core.TorrentDef.DEBUG = False
  17.          ACEStream.Core.TS.domutils.DEBUG = False
  18.          ACEStream.Core.Utilities.mp4metadata.DEBUG = debug_level == -1 or debug_level & 2 != 0
  19. @@ -346,8 +346,8 @@
  20.          except:
  21.              log_exc()
  22.  
  23. -        ga = lambda : GoogleAnalytics.send_event('client', 'startup', VERSION)
  24. -        self.run_delayed(ga)
  25. +        #ga = lambda : GoogleAnalytics.send_event('client', 'startup', VERSION)
  26. +        #self.run_delayed(ga)
  27.          self.tsservice = TSService(self)
  28.          self.run_delayed(self.check_auth_level, 0.1)
  29.          self.cookie_file = os.path.join(self.state_dir, 'cookies.pickle')
  30. @@ -368,7 +368,7 @@
  31.          if TS_ENV_PLATFORM == 'dune':
  32.              default_enabled = False
  33.          else:
  34. -            default_enabled = True
  35. +            default_enabled = False
  36.          preload_ads_enabled = self.get_preload_ads_enabled(default_enabled)
  37.          if DEBUG:
  38.              log('baseapp::init: preload_ads_enabled', preload_ads_enabled)
  39. @@ -965,8 +965,8 @@
  40.          finally:
  41.              self.dlinfo_lock.release()
  42.  
  43. -        func = lambda : GoogleAnalytics.send_event('client', 'play', VERSION)
  44. -        self.run_delayed(func)
  45. +        #func = lambda : GoogleAnalytics.send_event('client', 'play', VERSION)
  46. +        #self.run_delayed(func)
  47.          return newd
  48.  
  49.      def start_ad_downloads_when_main_started(self, maind, ads):
  50. @@ -1240,8 +1240,8 @@
  51.          finally:
  52.              self.dlinfo_lock.release()
  53.  
  54. -        func = lambda : GoogleAnalytics.send_event('client', 'play', VERSION)
  55. -        self.run_delayed(func)
  56. +        #func = lambda : GoogleAnalytics.send_event('client', 'play', VERSION)
  57. +        #self.run_delayed(func)
  58.          return newd
  59.  
  60.      def get_encrypted_file_metainfo(self, path):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement