mirror of
https://github.com/Jackett/Jackett
synced 2025-01-02 13:16:16 +00:00
add oxtorrent a public French site. resolves #5465
This commit is contained in:
parent
65aec0058d
commit
e89d1f4616
2 changed files with 87 additions and 0 deletions
|
@ -60,6 +60,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/
|
||||||
* Nyaa.si
|
* Nyaa.si
|
||||||
* Nyaa-Pantsu
|
* Nyaa-Pantsu
|
||||||
* Nyoo
|
* Nyoo
|
||||||
|
* OxTorrent
|
||||||
* ProStyleX
|
* ProStyleX
|
||||||
* QXR
|
* QXR
|
||||||
* RARBG
|
* RARBG
|
||||||
|
|
86
src/Jackett.Common/Definitions/oxtorrent.yml
Normal file
86
src/Jackett.Common/Definitions/oxtorrent.yml
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
---
|
||||||
|
site: oxtorrent
|
||||||
|
name: OxTorrent
|
||||||
|
description: "OxTorrent is a French Public site for TV / MOVIES / GENERAL"
|
||||||
|
language: fr-fr
|
||||||
|
type: public
|
||||||
|
encoding: UTF-8
|
||||||
|
followredirect: true
|
||||||
|
links:
|
||||||
|
- https://wwv.oxtorrent.com/
|
||||||
|
|
||||||
|
caps:
|
||||||
|
categorymappings:
|
||||||
|
- {id: movies, cat: Movies, desc: "Movies"}
|
||||||
|
- {id: tvshows, cat: TV, desc: "TV Shows"}
|
||||||
|
- {id: softwares, cat: PC, desc: "Softwares"}
|
||||||
|
- {id: music, cat: Audio, desc: "Music"}
|
||||||
|
- {id: console-games, cat: Console, desc: "Console Games"}
|
||||||
|
- {id: pc-games, cat: PC/Games, desc: "PC Games"}
|
||||||
|
- {id: books, cat: Books, desc: "Books"}
|
||||||
|
|
||||||
|
modes:
|
||||||
|
search: [q]
|
||||||
|
tv-search: [q, season, ep]
|
||||||
|
movie-search: [q]
|
||||||
|
|
||||||
|
settings: []
|
||||||
|
|
||||||
|
download:
|
||||||
|
selector: a[href^="/download/"]
|
||||||
|
|
||||||
|
search:
|
||||||
|
paths:
|
||||||
|
- path: "{{if .Keywords}}recherche/{{.Keywords}}{{else}}{{end}}"
|
||||||
|
rows:
|
||||||
|
selector: div.listing-torrent > table > tbody > tr:has(a)
|
||||||
|
fields:
|
||||||
|
site_date:
|
||||||
|
selector: td:nth-child(1) a
|
||||||
|
filters:
|
||||||
|
# date is at the end of the title, so we get it and name it site_date
|
||||||
|
- name: regexp
|
||||||
|
args: "(\\w+)$"
|
||||||
|
title:
|
||||||
|
selector: td:nth-child(1) a
|
||||||
|
filters:
|
||||||
|
# now we put the date at the right place according scene naming rules using .Result.site_date
|
||||||
|
- name: replace
|
||||||
|
args: [" FRENCH", " {{ .Result.site_date }} FRENCH"]
|
||||||
|
- name: replace
|
||||||
|
args: ["MULTI", "{{ .Result.site_date }} MULTI"]
|
||||||
|
- name: replace
|
||||||
|
args: ["TRUEFRENCH", "{{ .Result.site_date }} TRUEFRENCH"]
|
||||||
|
- name: replace
|
||||||
|
args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"]
|
||||||
|
# and we delete it at the end
|
||||||
|
- name: re_replace
|
||||||
|
args: ["(\\w+)$", ""]
|
||||||
|
details:
|
||||||
|
selector: td:nth-child(1) a
|
||||||
|
attribute: href
|
||||||
|
download:
|
||||||
|
selector: td:nth-child(1) a
|
||||||
|
attribute: href
|
||||||
|
size:
|
||||||
|
selector: td:nth-child(2)
|
||||||
|
seeders:
|
||||||
|
selector: td:nth-child(3)
|
||||||
|
leechers:
|
||||||
|
selector: td:nth-child(4)
|
||||||
|
downloadvolumefactor:
|
||||||
|
text: "0"
|
||||||
|
uploadvolumefactor:
|
||||||
|
text: "1"
|
||||||
|
category:
|
||||||
|
selector: td:nth-child(1) > i
|
||||||
|
case:
|
||||||
|
.Films: "movies"
|
||||||
|
.Séries: "tvshows"
|
||||||
|
.Logiciels: "softwares"
|
||||||
|
.Musique: "music"
|
||||||
|
.Jeux-Consoles: "console-games"
|
||||||
|
.Jeux-PC: "pc-games"
|
||||||
|
.Ebook: "books"
|
||||||
|
date:
|
||||||
|
text: "now"
|
Loading…
Reference in a new issue