From 4de668e80eabe7dce02728730ecda2066f0645c9 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 26 Mar 2013 11:22:44 +0100 Subject: [PATCH] [allocine] user agent android --- modules/allocine/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/allocine/browser.py b/modules/allocine/browser.py index abae4a42..ec024ed6 100644 --- a/modules/allocine/browser.py +++ b/modules/allocine/browser.py @@ -32,7 +32,7 @@ class AllocineBrowser(BaseBrowser): DOMAIN = 'api.allocine.fr' PROTOCOL = 'http' ENCODING = 'utf-8' - USER_AGENT = BaseBrowser.USER_AGENTS['wget'] + USER_AGENT = BaseBrowser.USER_AGENTS['android'] def iter_movies(self, pattern): res = self.readurl('http://api.allocine.fr/rest/v3/search?partner=YW5kcm9pZC12M3M&filter=movie&q=%s&format=json' % pattern.encode('utf-8'))