From 3e3f0b9577b5839849c8696ed408593cf4601ddc Mon Sep 17 00:00:00 2001 From: Assaf Morami Date: Mon, 2 Apr 2018 14:34:39 +0300 Subject: [PATCH] Update user-agent The old User-Agent `Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0` is probably blocked by addic7ed --- lib/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/search.js b/lib/search.js index 710f1bc..71bc2df 100644 --- a/lib/search.js +++ b/lib/search.js @@ -4,7 +4,7 @@ var request = require('request-promise-native'), function search (show, season, episode, languages) { var headers = { - 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0' + 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36' }; return request({