Skip to content

Commit

Permalink
Adding indexer for acrossthetasman.com (#11063)
Browse files Browse the repository at this point in the history
Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
  • Loading branch information
dregin and ilike2burnthing committed Feb 12, 2021
1 parent e90e1ae commit 14c95a3
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -226,6 +226,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* Abnormal [![(invite needed)][inviteneeded]](#)
* ABtorrents (ABT + RNS)
* Acid Lounge (A-L) [![(invite needed)][inviteneeded]](#)
* AcrossTheTasman [![(invite needed)][inviteneeded]](#)
* Aftershock
* Aidoru!Online
* Aither
Expand Down
87 changes: 87 additions & 0 deletions src/Jackett.Common/Definitions/acrossthetasman.yml
@@ -0,0 +1,87 @@
---
id: acrossthetasman
name: Across The Tasman
description: "ATT is a torrent site for Rugby and other sports played in Australia"
language: en
type: private
encoding: UTF-8
links:
- https://acrossthetasman.com/

caps:
categories:
1: TV/Sport

modes:
search: [q]

settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
default: date
options:
date: Date

This comment has been minimized.

Copy link
@garfield69

garfield69 Feb 12, 2021

Contributor

usually only include sort options for fields that are present in the jackett dashboard search page.
upspeed and downspeed are not available as presentable data, so providing sorting for these is confusing to users.
and typically we don't bother providing sorts for leechers and downloaded as no one really uses these sort options either.

filename: Thread Title
size: Size
seeders: Seeders
leechers: Leechers
completed: Downloaded
upspeed: UL Speed
downspeed: DL Speed
- name: order
type: select
default: desc
options:
desc: Desc
asc: Asc

login:
method: post
path: login.php
inputs:
vb_login_username: "{{ .Config.username }}"
vb_login_password: "{{ .Config.password }}"
cookieuser: 1
do: login
test:
path: torrents.php

search:
paths:
- path: "torrents.php?sort={{ .Config.sort }}&order={{ .Config.order}}&query={{ if .Keywords }}{{ .Keywords }}{{ else }}{{ end }}"

This comment has been minimized.

Copy link
@garfield69

garfield69 Feb 12, 2021

Contributor

if conditional redundant, just provide {{ .Keywords }}


rows:
selector: table[width='100%'][align='center']:not([class]) > tbody > tr

fields:
date:

This comment has been minimized.

Copy link
@garfield69

garfield69 Feb 12, 2021

Contributor

please provide a category field, hardcoded with text: 1 so that the cat is available in search results.

# Feb 12, 2021
selector: td:nth-child(1)
filters:
- name: dateparse
args: "Feb 12, 2021 "

This comment has been minimized.

Copy link
@garfield69

garfield69 Feb 12, 2021

Contributor
forum:
selector: td:nth-child(3)

This comment has been minimized.

Copy link
@garfield69

garfield69 Feb 12, 2021

Contributor

there is no such field as forum in torznab returned data, so nothing will make use of this. please remove.

title:
selector: td:nth-child(4) > span:nth-child(1)
filters:
- name: re_replace
args: ["[\\s]+Uploaded.*", ""]
download:
selector: a[href*="attachment.php?attachmentid="]
attribute: href
seeders:
selector: td:nth-child(5)
leechers:
selector: td:nth-child(6)
grabs:
selector: td:nth-child(7)
size:
selector: td:nth-child(10)
# engine n/a

3 comments on commit 14c95a3

@garfield69
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilike2burnthing this should not have been approved without a proper peer review ;-(

@ilike2burnthing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah apologies, was distracted when looking at this. Everything there is pretty obvious, should have spotted them.

@ilike2burnthing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.