Permalink
Browse files

Vimeo: Fix vimeo feed discovery (bug 2009)

  • Loading branch information...
1 parent a10f182 commit befa0708df22c891300baf0c8657e2c1802cd089 @thp thp committed Jun 14, 2015
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gpodder/vimeo.py
View
@@ -41,7 +41,8 @@
import re
-VIMEOCOM_RE = re.compile(r'http://vimeo\.com/(\d+)$', re.IGNORECASE)
+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)
SIGNATURE_RE = re.compile(r'"timestamp":(\d+),"signature":"([^"]+)"')
DATA_CONFIG_RE = re.compile(r'data-config-url="([^"]+)"')
@@ -111,6 +112,10 @@ def get_vimeo_id(url):
if result is not None:
return result.group(1)
+ result = VIMEOCOM_VIDEO_RE.match(url)
+ if result is not None:
+ return result.group(1)
+
return None
def is_video_link(url):

1 comment on commit befa070

ndias commented on befa070 Jun 16, 2015

I tested the last code from git repository, and I continue with the same problem, the feeds from vimeo don't show anything.

Please sign in to comment.