Permalink
Browse files

Vimeo: Allow both http and https URLs (bug 2019)

  • Loading branch information...
1 parent cc6ea46 commit 6456002308f8603cd9b3cb8935c9b05ebfd6ec53 @thp thp committed Jul 8, 2015
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gpodder/vimeo.py
@@ -41,9 +41,9 @@
import re
-VIMEOCOM_RE = re.compile(r'http://vimeo\.com/(channels/[^/]+|\d+)$', re.IGNORECASE)
-VIMEOCOM_VIDEO_RE = re.compile(r'https://vimeo.com/channels/(?:[^/])+/(\d+)$', re.IGNORECASE)
-MOOGALOOP_RE = re.compile(r'http://vimeo\.com/moogaloop\.swf\?clip_id=(\d+)$', re.IGNORECASE)
+VIMEOCOM_RE = re.compile(r'http[s]?://vimeo\.com/(channels/[^/]+|\d+)$', re.IGNORECASE)
+VIMEOCOM_VIDEO_RE = re.compile(r'http[s]?://vimeo.com/channels/(?:[^/])+/(\d+)$', re.IGNORECASE)
+MOOGALOOP_RE = re.compile(r'http[s]?://vimeo\.com/moogaloop\.swf\?clip_id=(\d+)$', re.IGNORECASE)
SIGNATURE_RE = re.compile(r'"timestamp":(\d+),"signature":"([^"]+)"')
DATA_CONFIG_RE = re.compile(r'data-config-url="([^"]+)"')

0 comments on commit 6456002

Please sign in to comment.