Skip to content

Commit

Permalink
Vimeo: Fix vimeo feed discovery (bug 2009)
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Jun 14, 2015
1 parent a10f182 commit befa070
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gpodder/vimeo.py
Expand Up @@ -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="([^"]+)"')
Expand Down Expand Up @@ -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):
Expand Down

1 comment on commit befa070

@ndias
Copy link
Contributor

@ndias ndias commented on befa070 Jun 16, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.