aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2019-08-12 21:31:02 +0200
committerWojciech Polak <polak@gnu.org>2019-08-12 21:31:02 +0200
commit25a30112f3f16b0b37b79d7ecca742afa0e95902 (patch)
treed025343a36c15f62701371e8a3864b97b60049d1
parentbcc984212b9f629454358ac6cd86c0b1e45b22f5 (diff)
downloadglifestream-25a30112f3f16b0b37b79d7ecca742afa0e95902.tar.gz
glifestream-25a30112f3f16b0b37b79d7ecca742afa0e95902.tar.bz2
Use https for Vimeo
-rw-r--r--glifestream/apis/vimeo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/glifestream/apis/vimeo.py b/glifestream/apis/vimeo.py
index 6da0b11..83af4ff 100644
--- a/glifestream/apis/vimeo.py
+++ b/glifestream/apis/vimeo.py
@@ -35,14 +35,14 @@ class API:
35 if '/' in self.service.url: 35 if '/' in self.service.url:
36 url = self.service.url.replace('channel/', 'channels/') 36 url = self.service.url.replace('channel/', 'channels/')
37 url = url.replace('group/', 'groups/') 37 url = url.replace('group/', 'groups/')
38 return ('http://vimeo.com/%s/videos/rss' % url,) 38 return ('https://vimeo.com/%s/videos/rss' % url,)
39 else: 39 else:
40 return ('http://vimeo.com/%s/likes/rss' % self.service.url, 40 return ('https://vimeo.com/%s/likes/rss' % self.service.url,
41 'http://vimeo.com/%s/videos/rss' % self.service.url) 41 'https://vimeo.com/%s/videos/rss' % self.service.url)
42 42
43 def run(self): 43 def run(self):
44 if not self.service.link: 44 if not self.service.link:
45 self.service.link = 'http://vimeo.com/%s' % self.service.url 45 self.service.link = 'https://vimeo.com/%s' % self.service.url
46 if '/' in self.service.url: 46 if '/' in self.service.url:
47 self.process = self.process_videos 47 self.process = self.process_videos
48 self.fetch('/api/v2/%s/videos.json' % self.service.url) 48 self.fetch('/api/v2/%s/videos.json' % self.service.url)
@@ -106,7 +106,7 @@ class API:
106 106
107 mblob = media.mrss_init() 107 mblob = media.mrss_init()
108 mblob[ 108 mblob[
109 'content'].append([{'url': 'http://vimeo.com/moogaloop.swf?clip_id=%s' % ent['video_id'], 109 'content'].append([{'url': 'https://vimeo.com/moogaloop.swf?clip_id=%s' % ent['video_id'],
110 'type': 'application/x-shockwave-flash', 110 'type': 'application/x-shockwave-flash',
111 'medium': 'video'}]) 111 'medium': 'video'}])
112 e.mblob = media.mrss_gen_json(mblob) 112 e.mblob = media.mrss_gen_json(mblob)
@@ -148,7 +148,7 @@ class API:
148 148
149 mblob = media.mrss_init() 149 mblob = media.mrss_init()
150 mblob[ 150 mblob[
151 'content'].append([{'url': 'http://vimeo.com/moogaloop.swf?clip_id=%s' % ent['id'], 151 'content'].append([{'url': 'https://vimeo.com/moogaloop.swf?clip_id=%s' % ent['id'],
152 'type': 'application/x-shockwave-flash', 152 'type': 'application/x-shockwave-flash',
153 'medium': 'video'}]) 153 'medium': 'video'}])
154 e.mblob = media.mrss_gen_json(mblob) 154 e.mblob = media.mrss_gen_json(mblob)

Return to:

Send suggestions and report system problems to the System administrator.