cloudtorrents: add fake user-agent to bypass blocking and fix TZ (#13958)

This commit is contained in:
Bogdan 2023-02-01 13:15:27 +02:00 committed by GitHub
parent aad95a64ae
commit ef9a4fbaa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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: