[weboob] [PATCH 1/2] vimeo: Remove logging to vimeo as it is not required

François Revol revol at free.fr
Wed Sep 12 12:44:49 CEST 2012


It seems the POST request to /log/client is not necessary,
so no need to tell vimeo about ourselves.

Signed-off-by: François Revol <revol at free.fr>
---
 modules/vimeo/pages.py |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/vimeo/pages.py b/modules/vimeo/pages.py
index 56a92b6..efd4724 100644
--- a/modules/vimeo/pages.py
+++ b/modules/vimeo/pages.py
@@ -86,9 +86,6 @@ class VideoPage(BasePage):
         if 'hd' in data['video']['files']['h264']:
             quality = 'hd'
 
-        # log ourself to the site to validate the signature
-        log_data = self.browser.openurl('http://%s/log/client' % ("player.vimeo.com"), 'request_signature=%s&video=true&h264=probably&vp8=probably&vp6=probably&flash=null&touch=false&screen_width=1920&screen_height=1080' % (data['request']['signature']))
-        
         v.url = unicode("http://player.vimeo.com/play_redirect?quality=%s&codecs=h264&clip_id=%d&time=%s&sig=%s&type=html5_desktop_local" % (quality, int(v.id), data['request']['timestamp'] , data['request']['signature']))
 
         # attempt to determine the redirected URL to pass it instead
-- 
1.7.10.4




More information about the weboob mailing list