~unity-lens-videos/unity-lens-video/remote-videos

« back to all changes in this revision

Viewing changes to src/unity-scope-video-remote

  • Committer: Timo Jyrinki
  • Author(s): Michal Hruby
  • Date: 2013-01-22 12:46:16 UTC
  • mfrom: (57.1.1 unity-lens-videos-remote-scope)
  • Revision ID: timo.jyrinki@canonical.com-20130122124616-a9suvnvng0tcdqct
Use https connection when talking to the server

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
CAT_INDEX_MORE = 2
57
57
 
58
58
BUS_NAME = "net.launchpad.scope.RemoteVideos"
59
 
SERVER = "http://videosearch.ubuntu.com/v0"
 
59
SERVER = "https://videosearch.ubuntu.com/v0"
60
60
 
61
61
REFRESH_INTERVAL = 3600         # fetch sources & recommendations once an hour
62
62
RETRY_INTERVAL = 60             # retry sources/recommendations after a minute
90
90
        self.scope.connect("generate-search-key", lambda scope, search: search.props.search_string.strip())
91
91
        self.session = Soup.SessionAsync()
92
92
        self.session.props.user_agent = "Unity Video Lens Remote Scope v0.4"
 
93
        self.session.props.ssl_use_system_ca_file = True
 
94
        self.session.props.ssl_strict = True
93
95
        self.session.add_feature_by_type(SoupGNOME.ProxyResolverGNOME)
94
96
        self.preferences = Unity.PreferencesManager.get_default()
95
97
        self.query_list_of_sources()