badasstorrents: restore indexer. resolves #8709 (#11905)

This commit is contained in:
ilike2burnthing 2021-06-12 20:13:01 +01:00 committed by GitHub
parent caa9b85a53
commit 7a28412d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 94 additions and 1 deletions

View File

@ -36,6 +36,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* AniRena
* AniSource
* AudioBook Bay (ABB)
* Badass Torrents
* BigFANGroup
* BitRu
* BT.etree

View File

@ -0,0 +1,93 @@
---
id: badasstorrents
name: Badass Torrents
description: "Badass Torrents is a Public torrent site for MOVIES / TV / GENERAL"
language: en-us
type: public
encoding: UTF-8
links:
- https://badasstorrents.com/
caps:
categories:
Anime: TV/Anime
Apps: PC
Books: Books
Games: PC/Games
Movies: Movies
Music: Audio
Other: Other
TV: TV
XXX: XXX
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q, album, artist]
book-search: [q]
settings:
- name: downloadlink
type: select
label: Download link
default: "magnet:?xt="
options:
"/download/": ".torrent"
"magnet:?xt=": "magnet"
- name: sort
type: select
label: Sort requested from site
default: date
options:
date: created
seeders: seeds
size: size
title: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
download:
selector: a[href*="{{ .Config.downloadlink }}"]
attribute: href
search:
paths:
- path: "torrents/{{ if .Keywords }}search/{{ .Keywords }}/{{ else }}{{ end }}{{ .Config.sort }}/{{ .Config.type }}"
- path: "torrents/{{ if .Keywords }}search/{{ .Keywords }}/{{ else }}{{ end }}26/{{ .Config.sort }}/{{ .Config.type }}"
- path: "torrents/{{ if .Keywords }}search/{{ .Keywords }}/{{ else }}{{ end }}51/{{ .Config.sort }}/{{ .Config.type }}"
- path: "torrents/{{ if .Keywords }}search/{{ .Keywords }}/{{ else }}{{ end }}76/{{ .Config.sort }}/{{ .Config.type }}"
rows:
selector: table.table-hover > tbody > tr:has(a[href*="/torrent/"])
fields:
category:
selector: a[href*="/cat/"]
title:
selector: a[href*="/torrent/"]
details:
selector: a[href*="/torrent/"]
attribute: href
download:
selector: a[href*="/torrent/"]
attribute: href
date:
selector: td:nth-child(4)
filters:
- name: timeago
size:
selector: td:nth-child(5)
seeders:
selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a

View File

@ -271,7 +271,6 @@ namespace Jackett.Updater
"Definitions/avg.yml",
"Definitions/awesomehd.yml", // migrated to C#
"Definitions/b2s-share.yml",
"Definitions/badasstorrents.yml", // to be migrated to c#
"Definitions/bithq.yml",
"Definitions/bigtower.yml",
"Definitions/bitme.yml",