Ultimate Gamer Club: update definition

This commit is contained in:
kaso17
2018-02-28 18:31:45 +01:00
parent 461fdc43e9
commit 395ac68c32

View File

@@ -1,4 +1,8 @@
--- # UGC uses the Luminance code, which is based on gazelle
# ajax.php API additionally needs the auth=$authkey argument
# Because the API is e.g. missing banner images we use screen scraping instead of the generic gazelle based approach
---
site: ultimategamerclub site: ultimategamerclub
name: Ultimate Gamer Club name: Ultimate Gamer Club
description: "Ultimate Gamer (UGC) is a Private Torrent Tracker for GAMES" description: "Ultimate Gamer (UGC) is a Private Torrent Tracker for GAMES"
@@ -56,71 +60,84 @@
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep]
movie-search: [q]
login: login:
path: account-login.php path: login
method: post method: form
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
cinfo: "2550|1350|24|-60"
keeploggedin: 1
error: error:
- selector: div.errFrame - selector: form#loginform > span.warning
test: test:
path: torrents-search.php path: torrents.php
selector: a.username
search: search:
paths: paths:
- path: torrents-search.php - path: torrents.php
keywordsfilters:
- name: re_replace
args: ["[^a-zA-Z0-9]+", "+"]
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
search: "{{ .Query.Keywords }}" title: "{{ .Query.Keywords }}"
incldead: "1" order_by: time
order_way: desc
action: basic
searchsubmit: 1
rows: rows:
selector: table.ttable_headinner > tbody > tr[class^="t-row"] # exclude redbar torrents
filters: selector: table#torrent_table > tbody > tr[class^="torrent row"]
- name: andmatch
fields: fields:
download: download:
selector: a[href^="download.php?id="] selector: a[href^="torrents.php?action=download&id="]
attribute: href attribute: href
description:
selector: div.tags
title: title:
selector: a[href^="torrents-details.php?id="] selector: a[href^="/torrents.php?id="]
attribute: title
category: category:
selector: a[href^="torrents.php?cat="] selector: a[href*="filter_cat"]
attribute: href attribute: href
filters: filters:
- name: querystring - name: regexp
args: cat args: "\\[(\\d+?)\\]"
details: details:
selector: a[href^="torrents-details.php?id="] selector: a[href^="/torrents.php?id="]
attribute: href attribute: href
date: banner:
selector: td:nth-child(2) span:contains("Added:") optional: true
selector: td:nth-child(2) > script
filters: filters:
- name: regexp
args: "src=\\\\\"(.*?)\\\\\""
- name: re_replace
args: ["\\\\(.)", "$1"]
- name: replace - name: replace
args: ["Added: ", ""] args: ["/static/common/noartwork/noimage.png", ""]
- name: replace files:
args: [" at", ""] selector: td:nth-child(3)
date:
selector: td:nth-child(5) > span
attribute: title
filters:
- name: append - name: append
args: " +00:00" args: " +00:00"
- name: dateparse - name: dateparse
args: "02/01/2006 15:04:05 -07:00" args: "Jan 02 2006, 15:04 -07:00"
size: size:
selector: td:nth-child(7) selector: td:nth-child(6)
grabs: grabs:
selector: td:nth-child(8) selector: td:nth-child(7)
seeders: seeders:
selector: td:nth-child(9) selector: td:nth-child(8)
leechers: leechers:
selector: td:nth-child(10) selector: td:nth-child(9)
downloadvolumefactor: downloadvolumefactor:
case: case:
":root:has(globnfo:contains(\"sitewide freeleech\"))": "0" "span.fltag": "0"
img[title="freeleech"]: "0"
"*": "1" "*": "1"
uploadvolumefactor: uploadvolumefactor:
case: case: