From 511afb386202bd5804aa9f8dfb1cc043d3d8832d Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Fri, 22 Jan 2016 04:35:40 +0100 Subject: [PATCH] [vimeo] fix #879 --- src/you_get/extractors/vimeo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/you_get/extractors/vimeo.py b/src/you_get/extractors/vimeo.py index acb0e0df..27c05b48 100644 --- a/src/you_get/extractors/vimeo.py +++ b/src/you_get/extractors/vimeo.py @@ -59,6 +59,9 @@ def vimeo_download(url, output_dir='.', merge=True, info_only=False, **kwargs): vimeo_download_by_channel(url, output_dir, merge, info_only) else: id = r1(r'https?://[\w.]*vimeo.com[/\w]*/(\d+)', url) + if id is None: + video_page = get_content(url, headers=fake_headers) + id = r1(r'"clip_id":(\d+)', video_page) assert id vimeo_download_by_id(id, None, output_dir=output_dir, merge=merge, info_only=info_only, **kwargs)