diff --git a/definitions/v11/rousi-pro.yml b/definitions/v11/rousi-pro.yml
new file mode 100644
index 000000000..aa573e30c
--- /dev/null
+++ b/definitions/v11/rousi-pro.yml
@@ -0,0 +1,144 @@
+---
+id: rousi-pro
+name: Rousi.pro
+description: "Rousi.pro is a CHINESE Private Torrent Tracker for MOVIES / TV / GENERAL"
+language: zh-CN
+type: private
+encoding: UTF-8
+links:
+ - https://rousi.pro/
+
+caps:
+ categorymappings:
+ - {id: movie, cat: Movies, desc: "电影"}
+ - {id: tv, cat: TV, desc: "电视剧"}
+ - {id: documentary, cat: TV/Documentary, desc: "纪录片"}
+ - {id: animation, cat: TV/Anime, desc: "动漫"}
+ - {id: music, cat: Audio, desc: "音乐"}
+ - {id: variety, cat: TV, desc: "综艺"}
+ - {id: sports, cat: TV/Sport, desc: "体育"}
+ - {id: software, cat: PC, desc: "软件"}
+ - {id: ebook, cat: Books, desc: "电子书"}
+ - {id: 9kg, cat: XXX, desc: "9KG"}
+ - {id: other, cat: Other, desc: "其它"}
+
+ modes:
+ search: [q]
+ tv-search: [q, season, ep]
+ movie-search: [q]
+ music-search: [q]
+ book-search: [q]
+
+settings:
+ - name: apikey
+ type: text
+ label: API key
+ - name: info_apikey
+ type: info
+ label: About your API key
+ default: "
- Login to this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Fetch/XHR button (Chrome Browser) or XHR button (FireFox)
- Perform any search on the web site
- Click on the first search?query= entry
- Select the Headers tab on the Right panel
- Find 'cookie:' in the Request Headers section
- Select and Copy the API key from the Authorization string (everything after 'Authorization: Bearer ') and Paste here.
"
+ - name: passkey
+ type: text
+ label: Passkey
+ - name: info_passkey
+ type: info
+ label: About your Passkey
+ default: "You can find the Passkey on your Passkey settings page."
+ - name: sort
+ type: select
+ label: Sort requested from site
+ default: created_at
+ options:
+ created_at: created
+ size: size
+ - name: type
+ type: select
+ label: Order requested from site
+ default: DESC
+ options:
+ DESC: desc
+ ASC: asc
+ - name: info_activity
+ type: info
+ label: Account Inactivity
+ default: "Account retention rules (Inactive Accounts):- Not logged in for more than 30 days: Send email reminders
- Not logged in for more than 60 days: 5000 Mana points are deducted daily
- After the mana value is deducted to 0: the account is banned
- If the user expects to be unable to log in for a period of time, they can pay in advance 150,000 mana to protect account for 60 days
"
+
+login:
+ path: api/torrent/latest
+ method: get
+
+search:
+ paths:
+ - path: api/torrent/search
+ response:
+ type: json
+
+ headers:
+ Authorization: ["Bearer {{ .Config.apikey }}"]
+
+ inputs:
+ query: "{{ .Keywords }}"
+ # "" both, title title, subtitle desc
+ search_field: title
+ sort: "{{ .Config.sort }}+{{ .Config.type }}"
+
+ keywordsfilters:
+ - name: re_replace
+ args: ["[\\.\\s]", "%"]
+
+ rows:
+ selector: torrents
+ count:
+ selector: total
+
+ fields:
+ _id:
+ selector: uuid
+ title:
+ selector: title
+ category:
+ selector: type
+ details:
+ text: "{{ .Config.sitelink }}torrent/{{ .Result._id }}"
+ download:
+ text: "{{ .Config.sitelink }}api/torrent/{{ .Result._id }}/download/{{ .Config.passkey }}"
+ infohash:
+ selector: info_hash
+ poster:
+ selector: poster
+ imdbid:
+ selector: attributes.imdb_id
+ tmdbid:
+ selector: attributes.tmdb_id
+ doubanid:
+ selector: attributes.douban_id
+ description:
+ selector: subtitle
+ seeders:
+ selector: seeders
+ leechers:
+ selector: leechers
+ grabs:
+ selector: downloads
+ date:
+ # "created_at": "2021-10-18T00:34:50.000000Z" is returned by Newtonsoft.Json.Linq as 18/10/2021 00:34:50
+ selector: created_at
+ filters:
+ - name: append
+ args: " +00:00" # GMT
+ - name: dateparse
+ args: "MM/dd/yyyy HH:mm:ss zzz"
+ size:
+ selector: size
+ genre:
+ selector: genre
+ downloadvolumefactor:
+ selector: promotion.down_multiplier
+ uploadvolumefactor:
+ selector: promotion.up_multiplier
+ minimumratio:
+ text: 1.0
+ minimumseedtime:
+ # 1 day (as seconds = 24 x 60 x 60)
+ text: 86400
+# json api
diff --git a/definitions/v11/tmghub.yml b/definitions/v11/tmghub.yml
index cabae7f46..44b0d97bf 100644
--- a/definitions/v11/tmghub.yml
+++ b/definitions/v11/tmghub.yml
@@ -115,7 +115,7 @@ download:
comment: "{{ .Config.thankyou }}"
confirm: Confirm
selectors:
- - selector: td a[href^="download.php"]
+ - selector: a[href*="download.php?id="]
attribute: href
search:
@@ -154,7 +154,7 @@ search:
selector: td.torrent-first a
attribute: href
download:
- selector: td.download > a
+ selector: td.torrent-first a
attribute: href
poster:
selector: td.torrent-first a