From ef9a4fbaa6fd607127f3e4cac2bc7d0efcb1734a Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 1 Feb 2023 13:15:27 +0200 Subject: [PATCH] cloudtorrents: add fake user-agent to bypass blocking and fix TZ (#13958) --- src/Jackett.Common/Definitions/cloudtorrents.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/cloudtorrents.yml b/src/Jackett.Common/Definitions/cloudtorrents.yml index b07597879..25f1e5140 100644 --- a/src/Jackett.Common/Definitions/cloudtorrents.yml +++ b/src/Jackett.Common/Definitions/cloudtorrents.yml @@ -35,6 +35,10 @@ download: attribute: href search: + headers: + # site blocks automation User-Agents, so slightly alter it here (e.g. Safari/537.37 > Safari/537.36) + User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"] + paths: - path: "{{ if .Keywords }}search?query={{ .Keywords }}{{ else }}latest{{ end }}" @@ -65,7 +69,7 @@ search: attribute: title filters: - name: append - args: " -09:00" # CUS + args: " +00:00" # GMT - name: dateparse args: "02 Jan, 2006 15:04 -07:00" size: