From 9895420e2dd293764e06aa422ca6f55864c8f45f Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 26 Nov 2014 16:01:54 +0100 Subject: [PATCH] vimeo: http-rewrite --- lib/svtplay_dl/service/vimeo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/vimeo.py b/lib/svtplay_dl/service/vimeo.py index 9e422b4..e6f2218 100644 --- a/lib/svtplay_dl/service/vimeo.py +++ b/lib/svtplay_dl/service/vimeo.py @@ -6,7 +6,7 @@ import re import copy from svtplay_dl.service import Service, OpenGraphThumbMixin -from svtplay_dl.utils import get_http_data +from svtplay_dl.utils import get_http_data, HTTPError from svtplay_dl.fetcher.http import HTTP from svtplay_dl.log import log @@ -14,7 +14,10 @@ class Vimeo(Service, OpenGraphThumbMixin): supported_domains = ['vimeo.com'] def get(self, options): - match = re.search('data-config-url="([^"]+)" data-fallback-url', self.get_urldata()) + try: + match = re.search('data-config-url="([^"]+)" data-fallback-url', self.get_urldata()) + except HTTPError: + log.error("Can't get the page") if not match: log.error("Can't find video file for: %s", self.url) return