From: Nicolas LÅ“uillet Date: Fri, 8 Apr 2016 09:18:44 +0000 (+0200) Subject: Merge pull request #1804 from wallabag/j0k3r-patch-1 X-Git-Tag: 2.0.1~20 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=77b9db87b84e20a6042444e3b18665bc66d4f1f2;hp=6a986910b6d69e8420e8cbf78b3d3c2cf55ac9f0;p=github%2Fwallabag%2Fwallabag.git Merge pull request #1804 from wallabag/j0k3r-patch-1 Force user-agent for iansommerville.com --- diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 677c33da..a36f3392 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml @@ -39,7 +39,22 @@ services: wallabag_core.graby: class: Graby\Graby arguments: - - { error_message: "wallabag can't retrieve contents for this article. Please report this issue to us." } + - + error_message: "wallabag can't retrieve contents for this article. Please report this issue to us." + http_client: + user_agents: + 'lifehacker.com': 'PHP/5.2' + 'gawker.com': 'PHP/5.2' + 'deadspin.com': 'PHP/5.2' + 'kotaku.com': 'PHP/5.2' + 'jezebel.com': 'PHP/5.2' + 'io9.com': 'PHP/5.2' + 'jalopnik.com': 'PHP/5.2' + 'gizmodo.com': 'PHP/5.2' + '.wikipedia.org': 'Mozilla/5.2' + '.fok.nl': 'Googlebot/2.1' + 'getpocket.com': 'PHP/5.2' + 'iansommerville.com': 'PHP/5.2' calls: - [ setLogger, [ "@logger" ] ] tags: