Private GIT

Skip to content
Snippets Groups Projects
Commit 80f70fa0 authored by Garfield69's avatar Garfield69 Committed by vlbox
Browse files

nextorrent: support for new domain nextorrent.pro #2401

parent dd06d093
No related branches found
No related tags found
No related merge requests found
...@@ -6,39 +6,47 @@ ...@@ -6,39 +6,47 @@
type: public type: public
encoding: UTF-8 encoding: UTF-8
links: links:
- https://www.nextorrent.tv/ - http://www.nextorrent.pro/
legacylinks: legacylinks:
- https://www.nextorrent.cc/ - https://www.nextorrent.cc/
- https://www.nextorrent.org/ - https://www.nextorrent.org/
- https://www.nextorrent.tv/
caps: caps:
categorymappings: categorymappings:
- {id: films, cat: Movies, desc: "Movies"} - {id: Film, cat: Movies, desc: "Movies"}
- {id: series, cat: TV, desc: "TV"} - {id: Séries, cat: TV, desc: "TV"}
- {id: Animes, cat: TV/Anime, desc: "TV/Anime"}
- {id: Jeux, cat: Console, desc: "Games"}
- {id: Ebooks, cat: Books, desc: "EBooks"}
- {id: Logiciels, cat: PC, desc: "Software"}
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q]
settings: [] settings: []
download: download:
selector: a[href^="/get_torrent/"] selector: a[href^="/_get/NexTorrent.pro-"]
search: search:
paths: paths:
- path: "recherche/{{ .Query.Keywords }}" - path: /
inputs:
s: "{{ .Keywords }}"
rows: rows:
selector: div.listing-torrent > table tbody tr:has(a) selector: article[id^="post-"]
fields: fields:
site_date: site_date:
selector: td:nth-child(1) a selector: h2 a
filters: filters:
# date is at the end of the title, so we get it and name it site_date # date is at the end of the title, so we get it and name it site_date
- name: regexp - name: regexp
args: "(\\w+)$" args: "(\\w+)$"
title: title:
selector: td:nth-child(1) a selector: h2 a
filters: filters:
# now we put the date at the right place according scene naming rules using .Result.site_date # now we put the date at the right place according scene naming rules using .Result.site_date
- name: replace - name: replace
...@@ -51,44 +59,32 @@ ...@@ -51,44 +59,32 @@
- name: re_replace - name: re_replace
args: ["(\\w+)$", ""] args: ["(\\w+)$", ""]
details: details:
selector: td:nth-child(1) a selector: h2 a
attribute: href attribute: href
download: download:
selector: td:nth-child(1) a selector: h2 a
attribute: href attribute: href
banner:
selector: div.post_image
attribute: src
category:
selector: p.meta span.post-category a
size: size:
selector: td:nth-child(2) # there is no size on the primary search results page. defaulting to 500 MB
filters: text: "500 MB"
- name: re_replace
args: [ "\\.(\\d) Ko", "$1X00"]
- name: re_replace
args: [ " Ko", "000"]
- name: re_replace
args: [ "\\.(\\d) Mo", "$1X00000"]
- name: re_replace
args: [ " Mo", "000000"]
- name: re_replace
args: [ "\\.(\\d) Go", "$1X00000000"]
- name: re_replace
args: [ " Go", "000000000"]
- name: re_replace
args: [ "\\.(\\d) To", "$1X00000000000"]
- name: re_replace
args: [ " To", "000000000000"]
- name: replace
args: [ "X", "" ]
date: date:
text: "now" selector: p.meta span.post-date a time.entry-date
attribute: datetime
filters:
- name: dateparse
args: "2006-01-02T15:04:05+07:00"
seeders: seeders:
# there is no seeders on the primary search results page. defaulting to 0
text: 0 text: 0
seeders:
selector: td:nth-child(3)
optional: true
leechers: leechers:
# there is no leechers on the primary search results page. defaulting to 0
text: 0 text: 0
leechers:
selector: td:nth-child(4)
optional: true
downloadvolumefactor: downloadvolumefactor:
text: "0" text: "0"
uploadvolumefactor: uploadvolumefactor:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment