ilcorsaronero: -> 2.0 new engine , layout, categories. resolves #986

This commit is contained in:
Garfield69
2024-10-21 13:49:03 +13:00
parent fff1d9c75c
commit cefd06ee8d
2 changed files with 77 additions and 80 deletions

View File

@@ -68,7 +68,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
* GloDLS * GloDLS
* GTorrent.pro * GTorrent.pro
* Idope * Idope
* Il Corsaro Nero * ilCorSaRoNeRo
* Internet Archive (archive.org) * Internet Archive (archive.org)
* Isohunt2 * Isohunt2
* iTorrent * iTorrent

View File

@@ -1,11 +1,10 @@
--- ---
id: ilcorsaronero id: ilcorsaronero
name: Il Corsaro Nero name: ilCorSaRoNeRo
description: "Il Corsaro Nero is an ITALIAN Public site for TV / MOVIES / GENERAL" description: "ilCorSaRoNeRo is an ITALIAN Public site for TV / MOVIES / GENERAL"
language: it-IT language: it-IT
type: public type: public
encoding: Windows-1252 encoding: UTF-8
requestDelay: 2
links: links:
- https://ilcorsaronero.link/ - https://ilcorsaronero.link/
- https://ilcorsaronero.torrentbay.st/ - https://ilcorsaronero.torrentbay.st/
@@ -27,22 +26,32 @@ legacylinks:
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: Movies/HD, desc: "Movies BDRiP", default: true} - {id: film, cat: Movies, desc: "Film"}
- {id: 2, cat: Audio, desc: "Music", default: true} - {id: serie-tv, cat: TV, desc: "Serie TV"}
- {id: 3, cat: PC/Games, desc: "Games PC", default: true} - {id: animazione, cat: TV/Anime, desc: "Animazione"}
- {id: 4, cat: Other, desc: "Other", default: true} - {id: animazione-film, cat: TV/Anime, desc: "Animazione - Film"}
- {id: 5, cat: TV/Anime, desc: "Anime", default: true} - {id: animazione-serie, cat: TV/Anime, desc: "Animazione - Serie"}
- {id: 6, cat: Books/EBook, desc: "Ebooks", default: true} - {id: musica, cat: Audio, desc: "Musica"}
- {id: 7, cat: PC/0day, desc: "App Windows", default: true} - {id: musica-audio, cat: Audio, desc: "Musica - Audio"}
- {id: 8, cat: PC, desc: "App Linux", default: true} - {id: musica-video, cat: Audio/Video, desc: "Musica - Video Musicali"}
- {id: 9, cat: PC/Mac, desc: "App Mac", default: true} - {id: libri, cat: Books, desc: "Libri"}
- {id: 13, cat: Console/PSP, desc: "Games Playstation", default: true} - {id: libri-ebook, cat: Books/EBook, desc: "Libri - eBook"}
- {id: 14, cat: Console/XBox, desc: "Games Xbox", default: true} - {id: libri-audio, cat: Audio/Audiobook, desc: "Libri - Audiolibri"}
- {id: 15, cat: TV, desc: "TV Series", default: true} - {id: libri-fumetti, cat: Books/Comics, desc: "Libri - Fumetti"}
- {id: 16, cat: Other, desc: "Other", default: true} - {id: libri-edicola, cat: Books/Mags, desc: "Libri - Edicola"}
- {id: 18, cat: Audio/Audiobook, desc: "Audio Book", default: true} - {id: giochi, cat: PC/Games, desc: "Giochi"}
- {id: 19, cat: Movies/SD, desc: "Movies Screener", default: true} - {id: giochi-pc, cat: PC/Games, desc: "Giochi - PC"}
- {id: 20, cat: Movies/DVD, desc: "Movies DVD", default: true} - {id: giochi-console, cat: PC/Games, desc: "Giochi - Console"}
- {id: software, cat: PC, desc: "Software"}
- {id: software-windows, cat: PC/0day, desc: "Software - Windows"}
- {id: software-macos, cat: PC/Mac, desc: "Software - macOS"}
- {id: software-linux, cat: PC, desc: "Software - Linux"}
- {id: software-mobile, cat: PC/Mobile-Other, desc: "Software - Mobile"}
- {id: altro, cat: Other, desc: "Altro"}
- {id: altro-docu, cat: Other, desc: "Altro - Documentari"}
- {id: altro-tv, cat: Other, desc: "Altro - Programmi TV"}
- {id: altro-corsi, cat: Other, desc: "Altro - Videocorsi"}
- {id: altro-altro, cat: Other, desc: "Altro - Altro"}
modes: modes:
search: [q] search: [q]
@@ -52,38 +61,53 @@ caps:
book-search: [q] book-search: [q]
settings: settings:
- name: itorrents-links - name: category-id
type: checkbox type: select
label: Add download links via itorrents.org label: Category (for Keyword search)
default: all
options:
all: "All categories"
film: "Film"
serie-tv: "Serie TV"
animazione: "Animazione"
musica: "Musica"
libri: "Libri"
giochi: "Giochi"
software: "Software"
altro: "Altro"
- name: dl_type
type: select
label: Download type
default: Magnet
options:
Magnet: "magnet"
Torrent: "torrent"
download:
selectors:
- selector: a:has(span:contains("{{ .Config.dl_type }}"))
attribute: href
search: search:
paths: paths:
- path: "{{ if .Keywords }}advsearch.php?&category={{ range .Categories }}{{.}};{{end}}&search={{ .Keywords }}&order=data&by=DESC&page=0{{ else }}/browse/0{{ end }}" - path: "{{ if .Keywords }}search{{ else }}{{ end }}"
- path: "{{ if .Keywords }}advsearch.php?&category={{ range .Categories }}{{.}};{{end}}&search={{ .Keywords }}&order=data&by=DESC&page=1{{ else }}/browse/1{{ end }}" inputs:
- path: "{{ if .Keywords }}advsearch.php?&category={{ range .Categories }}{{.}};{{end}}&search={{ .Keywords }}&order=data&by=DESC&page=2{{ else }}/browse/2{{ end }}" q: "{{ .Keywords }}"
cat: "{{ if .Keywords }}{{ re_replace .Config.category-id \"all\" \"\" }}{{ else }}{{ end }}"
rows: rows:
selector: "tr.odd,tr.odd2" selector: table > tbody > tr
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
category: categorydesc:
selector: td:nth-child(1) a selector: td:nth-child(1)
attribute: href
filters:
- name: split
args: ["/", -1]
title: title:
selector: td:nth-child(2) a.tab selector: a[href^="/torrent/"]
attribute: href
filters: filters:
- name: split - name: re_replace
args: ["/", -1] args: ["\\.", " "]
- name: replace # replace underscore with " " (space)
args: ["_", " "]
- name: re_replace # replace multiple spaces
args: ["[ ]{2,}", " "]
# normalize to SXXEYY format # normalize to SXXEYY format
- name: re_replace # S01 E01 to S01E01 - name: re_replace # S01 E01 to S01E01
args: ["(?i)\\bS(\\d+)\\sE(\\d+)\\b", "S$1E$2"] args: ["(?i)\\bS(\\d+)\\sE(\\d+)\\b", "S$1E$2"]
@@ -118,49 +142,22 @@ search:
args: ["(?i)WEB\\sDL", "WEB-DL"] args: ["(?i)WEB\\sDL", "WEB-DL"]
- name: re_replace - name: re_replace
args: ["(?i)HDTVRIP", "HDTV"] args: ["(?i)HDTVRIP", "HDTV"]
description:
selector: td:nth-child(1) a
attribute: href
filters:
- name: split
args: ["/", -1]
- name: prepend
args: "cat="
details: details:
selector: td:nth-child(4) a selector: a[href^="/torrent/"]
attribute: href attribute: href
download_itorrents:
selector: input.downarrow
attribute: value
filters:
- name: prepend
args: "http://itorrents.org/torrent/"
- name: append
args: ".torrent"
download: download:
text: "{{ if .Config.itorrents-links }}{{ .Result.download_itorrents }}{{ else }}{{ end }}" selector: a[href^="/torrent/"]
infohash: attribute: href
selector: input.downarrow
attribute: value
size:
selector: td:nth-child(3) font
date:
selector: td:nth-child(5) font
filters:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "dd.MM.yy zzz"
seeders: seeders:
selector: td:nth-child(6) font selector: td:nth-child(3)
filters:
- name: replace
args: ["n/a", "0"]
leechers: leechers:
selector: td:nth-child(7) font selector: td:nth-child(4)
filters: size:
- name: replace selector: td:nth-child(5)
args: ["n/a", "0"] date:
# unix
selector: td:nth-child(6)
attribute: data-timestamp
downloadvolumefactor: downloadvolumefactor:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor: