Skip to content

Commit

Permalink
core: added download selectors to the download block (#11907)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeyabye committed Jun 14, 2021
1 parent f8fc1b9 commit 04ee814
Show file tree
Hide file tree
Showing 91 changed files with 339 additions and 207 deletions.
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/1337x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ settings:

download:
# the .torrent url is on the on the details page
selector: ul li a[href^="{{ .Config.downloadlink }}"]
attribute: href
selectors:
- selector: ul li a[href^="{{ .Config.downloadlink }}"]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/acgsou.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ caps:
settings: []

download:
selector: a[href^="magnet:?xt="]
attribute: href
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/anime-free.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ login:
selector: a[href$="/index.php?action=logout"]

download:
selector: a[href*="/engine/download.php?id="]
attribute: href
selectors:
- selector: a[href*="/engine/download.php?id="]
attribute: href

search:
# https://anime-free.biz/index.php?do=search&subaction=search&search_start=0&full_search=1&result_from=1&story=slaves+to+passion&all_word_seach=1&titleonly=3&searchuser=&replyless=0&replylimit=0&searchdate=0&beforeafter=after&sortby=date&resorder=desc&showposts=0&catlist[]=0
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/arabafenice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ download:
infohash: "{{ .DownloadUri.Query.id }}"
thanks: 1
rndval: "1487013827343"
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/arenabg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ login:
selector: a[href="/en/users/logout/"]

download:
selector: a[href^="{{ .Config.downloadlink }}"]
attribute: href
selectors:
- selector: a[href^="{{ .Config.downloadlink }}"]
attribute: href

search:
paths:
Expand Down
3 changes: 2 additions & 1 deletion src/Jackett.Common/Definitions/audiobookbay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ caps:
settings: []

download:
selector: td:contains("Info Hash:") ~ td
selectors:
- selector: td:contains("Info Hash:") ~ td
filters:
- name: prepend
args: "magnet:?xt=urn:btih:"
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/badasstorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ settings:
asc: asc

download:
selector: a[href*="{{ .Config.downloadlink }}"]
attribute: href
selectors:
- selector: a[href*="{{ .Config.downloadlink }}"]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/bigtorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ login:
path: index.php

download:
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/boxingtorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ login:
selector: a[href="logout.php"]

download:
selector: a[href^="download.php"]
attribute: href
selectors:
- selector: a[href^="download.php"]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/btsow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ settings:
default: BTSOW does not return categories in its search results.</br>To add to your Apps' Torznab indexer, replace all categories with 8000(Other).

download:
selector: a#magnetOpen
attribute: href
selectors:
- selector: a#magnetOpen
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/byrutor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ caps:
settings: []

download:
selector: a.itemtop_game
attribute: href
selectors:
- selector: a.itemtop_game
attribute: href

search:
# keywords (article titles only search)
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/catorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ login:
selector: a[href$="/index.php?action=logout"]

download:
selector: a[href*="/index.php?do=download&id="]
attribute: href
selectors:
- selector: a[href*="/index.php?do=download&id="]
attribute: href

search:
# https://catorrent.org/index.php?do=search&subaction=search&story=lovelot
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/classix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ login:
path: index.php

download:
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
6 changes: 3 additions & 3 deletions src/Jackett.Common/Definitions/cpabien.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ settings:
- name: useragent
type: text
label: User-Agent
label: User-Agent
- name: info_useragent
type: info
label: How to get the User-Agent
Expand Down Expand Up @@ -101,8 +100,9 @@ login:
user-agent: "[ .Config.useragent ]"

download:
selector: a[href^="magnet:?xt="]
attribute: href
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/cpasbienclone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ settings:
?trie-nom-a: title asc

download:
selector: a[href^="magnet:"]
attribute: href
selectors:
- selector: a[href^="magnet:"]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/crazyspirits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ download:
id: "{{ .DownloadUri.Query.id }}"
to: give
torrent: "{{ .DownloadUri.Query.id }}"
selector: "a[href^=\"/{{ .DownloadUri.Query.id }}/\"]"
attribute: href
selectors:
- selector: "a[href^=\"/{{ .DownloadUri.Query.id }}/\"]"
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/demonoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ login:
path: files/

download:
selector: a[href^="magnet:?xt="]
attribute: href
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/dimeadozen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ login:

download:
# download.php/673256/Talk%20Talk%20-%201986-07-05%20Paris.torrent
selector: a[href^="download.php/"]
attribute: href
selectors:
- selector: a[href^="download.php/"]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/dxp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ login:
selector: a[href="logout.php"]

download:
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
# https://dxp.ru/torrents.php?search=&sort=4&type=desc
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/ebookparadijs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ download:
tid: "{{ .DownloadUri.Query.id }}"
text: "{{ .Config.thankyou }}"
submit: Opslaan
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/ebooks-shares.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@ login:
selector: a[href^="account-logout.php"]

download:
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/ehentai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ caps:
tv-search: [q, season, ep]

download:
selector: a[href*="/get/"]
attribute: href
selectors:
- selector: a[href*="/get/"]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/ettv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ settings:
asc: asc

download:
selector: a[href^="magnet:?xt="]
attribute: href
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href

search:
path: "{{ if .Keywords }}torrents-search.php{{ else }}torrents.php{{ end }}"
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/extremetorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ download:
tid: "{{ .DownloadUri.Query.id }}"
text: "{{ .Config.thankyou }}"
submit: Opslaan
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/exttorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ settings:
default: This site may use Cloudflare DDoS Protection, therefore Jackett requires <a href="https://github.com/Jackett/Jackett#configuring-flaresolverr" target="_blank">FlareSolver</a> to access it.

download:
selector: a[href^="magnet:?xt="]
attribute: href
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/film-paleis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ download:
tid: "{{ .DownloadUri.Query.id }}"
text: "{{ .Config.thankyou }}"
submit: Opslaan
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/finvip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ login:
selector: a[href="logout.php"]

download:
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/firebit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ caps:
settings: []

download:
selector: a[href^="/download.php?id="]
attribute: href
selectors:
- selector: a[href^="/download.php?id="]
attribute: href

search:
# http://firebit.net/index.php?do=search&type=simple&q=2019
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/gamestorrents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ caps:
settings: []

download:
selector: a#download_torrent
attribute: href
selectors:
- selector: a#download_torrent
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/generationfree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ download:
id: "{{ .DownloadUri.Query.id }}"
to: give
torrent: "{{ .DownloadUri.Query.id }}"
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/girotorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ download:
infohash: "{{ .DownloadUri.Query.id }}"
thanks: 1
rndval: "1487013827343"
selector: a[href^="download.php?id="]
attribute: href
selectors:
- selector: a[href^="download.php?id="]
attribute: href

search:
paths:
Expand Down
5 changes: 3 additions & 2 deletions src/Jackett.Common/Definitions/gktorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ settings:
default: false

download:
selector: a[href*="magnet:?xt="]
attribute: href
selectors:
- selector: a[href*="magnet:?xt="]
attribute: href

search:
paths:
Expand Down

0 comments on commit 04ee814

Please sign in to comment.