Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- site: ilcorsaroblu
- name: Il Corsaro Blu
- description: "Il Corsaro Blu is an ITALIAN Public site for TV / MOVIES / GENERAL"
- language: it-it
- type: public
- encoding: UTF-8
- links:
- - https://www.ilcorsaroblu.org/
- legacylinks:
- - https://ilcorsaroblu.org/
- - http://ilcorsaroblu.org/
- caps:
- categorymappings:
- # Adult
- - {id: 12, cat: XXX, desc: "Adult"}
- # Applicazioni
- - {id: 5, cat: PC/Phone-Android, desc: "Android"}
- # Books
- - {id: 6, cat: Books, desc: "Books"}
- # Games
- - {id: 3, cat: Other, desc: "Games"}
- # Music
- - {id: 2, cat: Audio, desc: "Music"}
- # Movies
- - {id: 17, cat: Movies/SD, desc: "Movie BDRip"}
- - {id: 21, cat: Movies/Other, desc: "Movies - Films"}
- - {id: 11, cat: Movies/DVD, desc: "DVD-R"}
- - {id: 14, cat: Movies/HD, desc: "Movie 720p"}
- - {id: 13, cat: Movies/HD, desc: "Movie 1080p"}
- - {id: 15, cat: Movies/3D, desc: "Movie 3D"}
- - {id: 24, cat: TV/OTHER, desc: "TV Show Standard"}
- - {id: 19, cat: TV/HD, desc: "Tv Show 1080p"}
- - {id: 20, cat: TV/HD, desc: "Tv Show 720"}
- # Various
- - {id: 4, cat: Other, desc: "Other"}
- - {id: 7, cat: PC, desc: "Windows"}
- - {id: 8, cat: Other, desc: "Linux"}
- - {id: 9, cat: PC/Mac, desc: "Mac"}
- - {id: 23, cat: Other, desc: "Archive"}
- modes:
- search: [q]
- tv-search: [q, season, ep]
- movie-search: [q]
- search:
- paths:
- - path: /index.php
- keywordsfilters:
- - name: re_replace
- args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
- - name: diacritics
- args: replace
- # most ITA TV torrents are in XXxYY format, so we search without S/E prefixes and filter later
- - name: re_replace
- args: ["S0?(\\d{1,2})", " $1 "]
- - name: re_replace
- args: ["E(\\d{2,3})", " $1 "]
- inputs:
- search: "{{ .Keywords }}"
- category: "{{range .Categories}}{{.}};{{end}}"
- page: torrents
- active: 0
- rows:
- selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href*="_torrent-"])
- fields:
- is_normal:
- optional: true
- selector: a[href^="download.php?id="]
- attribute: href
- normal_download:
- optional: true
- selector: td:nth-child(4) a
- attribute: href
- filters:
- - name: querystring
- args: id
- - name: toupper
- - name: prepend
- args: http://itorrents.org/torrent/
- - name: append
- args: ".torrent"
- magnet_download:
- magnet:
- optional: true
- selector: a[href^="magnet:?xt="]
- attribute: href
- download:
- text: "{{if .Result.is_normal }}{{ .Result.normal_download }}{{else}}{{ .Result.magnet_download }}{{end}}"
- title: # shortened title?
- selector: a[href*="_torrent-"]
- # normalize to SXXEYY format
- filters:
- - name: re_replace # replace special characters with " " (space)
- args: ["[^a-zA-Z0-9]|\\.", " "]
- # normalize to SXXEYY format
- - name: re_replace
- args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
- - name: re_replace
- args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
- - name: re_replace #Stagione X --> S0X
- args: ["Stagione (\\d{0,1}\\s)", "S0$1"]
- - name: re_replace #Stagione XX --> SXX
- args: ["Stagione (\\d{2}\\s)", "S$1"]
- - name: re_replace #/ Episodio [YY-YY --> EYY-YY
- args: ["(\\s\\/\\sEpisodio|\\s\\/\\sEpisodi|\\sEpisodio|\\s\\|\\sEpisodio|\\sEpisodi)\\s\\[", "E"]
- - name: re_replace #/ Completa [episodi YY-YY --> EYY-YY
- args: ["(\\s\\/\\sCompleta\\s\\[episodi\\s)", "E"]
- - name: re_replace #remove di YY] | remove /YY]
- args: ["(\\sdi\\s\\d{1,2}|\\/\\d{1,2})\\]", " "]
- - name: re_replace #remove various
- args: ["(Serie completa|Completa|\\[in pausa\\])", ""]
- # fine prova
- title: # long titles?
- optional: true
- selector: a[title][href^="index.php?page=torrent-details"]
- attribute: title
- filters:
- - name: replace
- args: ["Vedi Dettagli: ", ""]
- # inizio prova
- - name: re_replace # replace special characters with " " (space)
- args: ["[^a-zA-Z0-9]|\\.", " "]
- # normalize to SXXEYY format
- - name: re_replace
- args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
- - name: re_replace
- args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
- - name: re_replace #Stagione X --> S0X
- args: ["Stagione (\\d{0,1}\\s)", "S0$1"]
- - name: re_replace #Stagione XX --> SXX
- args: ["Stagione (\\d{2}\\s)", "S$1"]
- - name: re_replace #/ Episodio [YY-YY --> EYY-YY
- args: ["(\\s\\/\\sEpisodio|\\s\\/\\sEpisodi|\\sEpisodio|\\s\\|\\sEpisodio|\\sEpisodi)\\s\\[", "E"]
- - name: re_replace #/ Completa [episodi YY-YY --> EYY-YY
- args: ["(\\s\\/\\sCompleta\\s\\[episodi\\s)", "E"]
- - name: re_replace #remove di YY] | remove /YY]
- args: ["(\\sdi\\s\\d{1,2}|\\/\\d{1,2})\\]", " "]
- - name: re_replace #remove various
- args: ["(Serie completa|Completa|\\[in pausa\\])", ""]
- # fine prova
- category:
- selector: a[href^="index.php?page=torrents&category="]
- attribute: href
- filters:
- - name: querystring
- args: category
- details:
- selector: a[href*="_torrent-"]
- attribute: href
- banner:
- optional: true
- selector: a[href^="index.php?page=torrent-details&id="][onmouseover]
- attribute: onmouseover
- filters:
- - name: regexp
- args: "src=(.+?) "
- size:
- selector: td:nth-child(9)
- date:
- selector: td:nth-child(5)
- filters:
- - name: dateparse
- args: "02/01/2006"
- grabs:
- selector: td:nth-child(8)
- filters:
- - name: replace
- args: ["---", "0"]
- seeders:
- selector: td:nth-child(6)
- leechers:
- selector: td:nth-child(7)
- downloadvolumefactor:
- case:
- img[alt="Free Leech"]: "0"
- img[alt="Gold 100% Free"]: "0"
- img[alt="Silver 50% Free"]: "0.5"
- img[alt="Bronze 25% Free"]: "0.75"
- "*": "1"
- uploadvolumefactor:
- text: "1"
- uploadvolumefactor:
- optional: true
- selector: img[alt$="x Upload Multiplier"]
- attribute: alt
- filters:
- - name: replace
- args: ["x Upload Multiplier", ""]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement