vimeo: Cleanup, use HD when available

Remove commented failed attempts

Check the JSON data for hd file

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
François Revol 2012-09-12 00:17:42 +02:00 committed by Romain Bignon
commit 6c92d3265a
2 changed files with 7 additions and 40 deletions

View file

@ -33,10 +33,6 @@ __all__ = ['VimeoBrowser']
class VimeoBrowser(BaseBrowser):
DOMAIN = 'vimeo.com'
ENCODING = None
# USER_AGENT = BaseBrowser.USER_AGENTS['wget']
# TODO: determine this dynamically, like:
# wget -d 127.0.0.1 -O /dev/null 2>&1 | grep '^User-Agent:'
#USER_AGENT = 'Wget/1.14 (linux-gnu)'
PAGES = {r'http://[w\.]*vimeo\.com/(?P<id>\d+).*': VideoPage,
}