From 8f8a1af9d94f308792b32b244c81678a340740c5 Mon Sep 17 00:00:00 2001 From: adamwinn Date: Wed, 7 Dec 2016 22:38:18 -0700 Subject: [PATCH] Add tenyardtracker (#824) --- README.md | 1 + src/Jackett/Definitions/tenyardtracker.yml | 66 ++++++++++++++++++++++ src/Jackett/Jackett.csproj | 3 + 3 files changed, 70 insertions(+) create mode 100644 src/Jackett/Definitions/tenyardtracker.yml diff --git a/README.md b/README.md index 8fa5756e3..cb5e82a61 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * The New Retro * The Shinning * TehConnection + * TenYardTracker * Torrent Network * Torrent Sector Crew * TorrentBD diff --git a/src/Jackett/Definitions/tenyardtracker.yml b/src/Jackett/Definitions/tenyardtracker.yml new file mode 100644 index 000000000..4a18ebc51 --- /dev/null +++ b/src/Jackett/Definitions/tenyardtracker.yml @@ -0,0 +1,66 @@ +--- + site: tenyardtracker + name: TenYardTracker + description: "An American football tracker" + language: en-us + encoding: UTF-8 + links: + - http://tenyardtracker.com/ + + caps: + categories: + 1: TV # Sports + modes: + search: [q] + + login: + path: members.php?action=takelogin + method: post + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + #error: + #- path: members.php?action=takelogin + test: + path: my.php + #selector: a[href="members.php?action=logout"] + + ratio: + path: browse.php + selector: #status_bar + + search: + path: browse.php + inputs: + $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" + search: "{{ .Query.Keywords }}" + rows: + selector: table[border="1"] tr:not(:first-child) + fields: + title: + selector: td:nth-child(2) + download: + selector: a[href^="details.php?id="] + attribute: href + filters: + - name: replace + args: ["details.php?id=", "download.php?torrent="] + details: + selector: a[href^="details.php?id="] + attribute: href + files: + selector: td:nth-child(3) + date: + selector: td:nth-child(5) + size: + selector: td:nth-child(6) + seeders: + selector: td:nth-child(8) + leechers: + selector: td:nth-child(9) + downloadvolumefactor: + case: + "*": "1" + uploadvolumefactor: + case: + "*": "1" \ No newline at end of file diff --git a/src/Jackett/Jackett.csproj b/src/Jackett/Jackett.csproj index ba868110c..0163bcfa6 100644 --- a/src/Jackett/Jackett.csproj +++ b/src/Jackett/Jackett.csproj @@ -431,6 +431,9 @@ PreserveNewest + + PreserveNewest + Designer