summaryrefslogtreecommitdiffabout
authorWojciech Polak <polak@gnu.org>2019-08-12 19:31:02 (GMT)
committer Wojciech Polak <polak@gnu.org>2019-08-12 19:31:02 (GMT)
commit25a30112f3f16b0b37b79d7ecca742afa0e95902 (patch) (side-by-side diff)
treed025343a36c15f62701371e8a3864b97b60049d1
parentbcc984212b9f629454358ac6cd86c0b1e45b22f5 (diff)
downloadglifestream-25a30112f3f16b0b37b79d7ecca742afa0e95902.tar.gz
glifestream-25a30112f3f16b0b37b79d7ecca742afa0e95902.tar.bz2
Use https for Vimeo
Diffstat (more/less context) (ignore whitespace changes)
-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:
if '/' in self.service.url:
url = self.service.url.replace('channel/', 'channels/')
url = url.replace('group/', 'groups/')
- return ('http://vimeo.com/%s/videos/rss' % url,)
+ return ('https://vimeo.com/%s/videos/rss' % url,)
else:
- return ('http://vimeo.com/%s/likes/rss' % self.service.url,
- 'http://vimeo.com/%s/videos/rss' % self.service.url)
+ return ('https://vimeo.com/%s/likes/rss' % self.service.url,
+ 'https://vimeo.com/%s/videos/rss' % self.service.url)
def run(self):
if not self.service.link:
- self.service.link = 'http://vimeo.com/%s' % self.service.url
+ self.service.link = 'https://vimeo.com/%s' % self.service.url
if '/' in self.service.url:
self.process = self.process_videos
self.fetch('/api/v2/%s/videos.json' % self.service.url)
@@ -106,7 +106,7 @@ class API:
mblob = media.mrss_init()
mblob[
- 'content'].append([{'url': 'http://vimeo.com/moogaloop.swf?clip_id=%s' % ent['video_id'],
+ 'content'].append([{'url': 'https://vimeo.com/moogaloop.swf?clip_id=%s' % ent['video_id'],
'type': 'application/x-shockwave-flash',
'medium': 'video'}])
e.mblob = media.mrss_gen_json(mblob)
@@ -148,7 +148,7 @@ class API:
mblob = media.mrss_init()
mblob[
- 'content'].append([{'url': 'http://vimeo.com/moogaloop.swf?clip_id=%s' % ent['id'],
+ 'content'].append([{'url': 'https://vimeo.com/moogaloop.swf?clip_id=%s' % ent['id'],
'type': 'application/x-shockwave-flash',
'medium': 'video'}])
e.mblob = media.mrss_gen_json(mblob)

Return to:

Send suggestions and report system problems to the System administrator.