1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

vimeo: http-rewrite

This commit is contained in:
Johan Andersson 2014-11-26 16:01:54 +01:00
parent b09629fcc8
commit 9895420e2d

View File

@ -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