diff --git a/src/Jackett.Common/Definitions/trancetraffic.yml b/src/Jackett.Common/Definitions/trancetraffic.yml
index 40055ccca..39a1e8214 100644
--- a/src/Jackett.Common/Definitions/trancetraffic.yml
+++ b/src/Jackett.Common/Definitions/trancetraffic.yml
@@ -16,6 +16,22 @@ caps:
search: [q]
music-search: [q, artist]
+settings:
+ - name: username
+ type: text
+ label: Username
+ - name: password
+ type: password
+ label: Password
+ - name: freeleech
+ type: checkbox
+ label: Filter freeleech only
+ default: false
+ - name: info_tpp
+ type: info
+ label: Results Per Page
+ default: For best results, change the Torrents per page: setting to 100 on your account profile.
+
login:
path: takelogin.php
method: post
@@ -32,6 +48,7 @@ search:
- path: browse.php
inputs:
search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}"
+ $raw: "{{ if .Config.freeleech }}&includeFL=on{{ else }}{{ end }}"
rows:
selector: table.mainouter table > tbody > tr:has(a[href^="details.php?id="])
@@ -47,6 +64,9 @@ search:
details:
selector: a[href^="details.php?id="]
attribute: href
+ filters:
+ - name: replace
+ args: ["&hit=1", ""] # avoid redirect
date:
selector: td:nth-child(6)
# auto adjusted by site account profile
@@ -64,7 +84,9 @@ search:
size:
selector: td:nth-child(7)
downloadvolumefactor:
- text: 1
+ case:
+ "span:contains(\"FREELEECH\")": 0
+ "*": 1
uploadvolumefactor:
text: 1
# engine tbd