Advertisement
Guest User

Untitled

a guest
May 21st, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.81 KB | None | 0 0
  1. ---
  2. site: ilcorsaroblu
  3. name: Il Corsaro Blu
  4. description: "Il Corsaro Blu is an ITALIAN Public site for TV / MOVIES / GENERAL"
  5. language: it-it
  6. type: public
  7. encoding: UTF-8
  8. links:
  9. - https://www.ilcorsaroblu.org/
  10. legacylinks:
  11. - https://ilcorsaroblu.org/
  12. - http://ilcorsaroblu.org/
  13.  
  14. caps:
  15. categorymappings:
  16. # Adult
  17. - {id: 12, cat: XXX, desc: "Adult"}
  18. # Applicazioni
  19. - {id: 5, cat: PC/Phone-Android, desc: "Android"}
  20. # Books
  21. - {id: 6, cat: Books, desc: "Books"}
  22. # Games
  23. - {id: 3, cat: Other, desc: "Games"}
  24. # Music
  25. - {id: 2, cat: Audio, desc: "Music"}
  26. # Movies
  27. - {id: 17, cat: Movies/SD, desc: "Movie BDRip"}
  28. - {id: 21, cat: Movies/Other, desc: "Movies - Films"}
  29. - {id: 11, cat: Movies/DVD, desc: "DVD-R"}
  30. - {id: 14, cat: Movies/HD, desc: "Movie 720p"}
  31. - {id: 13, cat: Movies/HD, desc: "Movie 1080p"}
  32. - {id: 15, cat: Movies/3D, desc: "Movie 3D"}
  33. - {id: 24, cat: TV/OTHER, desc: "TV Show Standard"}
  34. - {id: 19, cat: TV/HD, desc: "Tv Show 1080p"}
  35. - {id: 20, cat: TV/HD, desc: "Tv Show 720"}
  36. # Various
  37. - {id: 4, cat: Other, desc: "Other"}
  38. - {id: 7, cat: PC, desc: "Windows"}
  39. - {id: 8, cat: Other, desc: "Linux"}
  40. - {id: 9, cat: PC/Mac, desc: "Mac"}
  41. - {id: 23, cat: Other, desc: "Archive"}
  42.  
  43. modes:
  44. search: [q]
  45. tv-search: [q, season, ep]
  46. movie-search: [q]
  47.  
  48. search:
  49. paths:
  50. - path: /index.php
  51. keywordsfilters:
  52. - name: re_replace
  53. args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
  54. - name: diacritics
  55. args: replace
  56. # most ITA TV torrents are in XXxYY format, so we search without S/E prefixes and filter later
  57. - name: re_replace
  58. args: ["S0?(\\d{1,2})", " $1 "]
  59. - name: re_replace
  60. args: ["E(\\d{2,3})", " $1 "]
  61. inputs:
  62. search: "{{ .Keywords }}"
  63. category: "{{range .Categories}}{{.}};{{end}}"
  64. page: torrents
  65. active: 0
  66. rows:
  67. selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href*="_torrent-"])
  68. fields:
  69. is_normal:
  70. optional: true
  71. selector: a[href^="download.php?id="]
  72. attribute: href
  73. normal_download:
  74. optional: true
  75. selector: td:nth-child(4) a
  76. attribute: href
  77. filters:
  78. - name: querystring
  79. args: id
  80. - name: toupper
  81. - name: prepend
  82. args: http://itorrents.org/torrent/
  83. - name: append
  84. args: ".torrent"
  85. magnet_download:
  86. magnet:
  87. optional: true
  88. selector: a[href^="magnet:?xt="]
  89. attribute: href
  90. download:
  91. text: "{{if .Result.is_normal }}{{ .Result.normal_download }}{{else}}{{ .Result.magnet_download }}{{end}}"
  92. title: # shortened title?
  93. selector: a[href*="_torrent-"]
  94. # normalize to SXXEYY format
  95. filters:
  96. - name: re_replace # replace special characters with " " (space)
  97. args: ["[^a-zA-Z0-9]|\\.", " "]
  98. # normalize to SXXEYY format
  99. - name: re_replace
  100. args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
  101. - name: re_replace
  102. args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
  103. - name: re_replace #Stagione X --> S0X
  104. args: ["Stagione (\\d{0,1}\\s)", "S0$1"]
  105. - name: re_replace #Stagione XX --> SXX
  106. args: ["Stagione (\\d{2}\\s)", "S$1"]
  107. - name: re_replace #/ Episodio [YY-YY --> EYY-YY
  108. args: ["(\\s\\/\\sEpisodio|\\s\\/\\sEpisodi|\\sEpisodio|\\s\\|\\sEpisodio|\\sEpisodi)\\s\\[", "E"]
  109. - name: re_replace #/ Completa [episodi YY-YY --> EYY-YY
  110. args: ["(\\s\\/\\sCompleta\\s\\[episodi\\s)", "E"]
  111. - name: re_replace #remove di YY] | remove /YY]
  112. args: ["(\\sdi\\s\\d{1,2}|\\/\\d{1,2})\\]", " "]
  113. - name: re_replace #remove various
  114. args: ["(Serie completa|Completa|\\[in pausa\\])", ""]
  115. # fine prova
  116. title: # long titles?
  117. optional: true
  118. selector: a[title][href^="index.php?page=torrent-details"]
  119. attribute: title
  120. filters:
  121. - name: replace
  122. args: ["Vedi Dettagli: ", ""]
  123. # inizio prova
  124. - name: re_replace # replace special characters with " " (space)
  125. args: ["[^a-zA-Z0-9]|\\.", " "]
  126. # normalize to SXXEYY format
  127. - name: re_replace
  128. args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
  129. - name: re_replace
  130. args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
  131. - name: re_replace #Stagione X --> S0X
  132. args: ["Stagione (\\d{0,1}\\s)", "S0$1"]
  133. - name: re_replace #Stagione XX --> SXX
  134. args: ["Stagione (\\d{2}\\s)", "S$1"]
  135. - name: re_replace #/ Episodio [YY-YY --> EYY-YY
  136. args: ["(\\s\\/\\sEpisodio|\\s\\/\\sEpisodi|\\sEpisodio|\\s\\|\\sEpisodio|\\sEpisodi)\\s\\[", "E"]
  137. - name: re_replace #/ Completa [episodi YY-YY --> EYY-YY
  138. args: ["(\\s\\/\\sCompleta\\s\\[episodi\\s)", "E"]
  139. - name: re_replace #remove di YY] | remove /YY]
  140. args: ["(\\sdi\\s\\d{1,2}|\\/\\d{1,2})\\]", " "]
  141. - name: re_replace #remove various
  142. args: ["(Serie completa|Completa|\\[in pausa\\])", ""]
  143. # fine prova
  144. category:
  145. selector: a[href^="index.php?page=torrents&category="]
  146. attribute: href
  147. filters:
  148. - name: querystring
  149. args: category
  150. details:
  151. selector: a[href*="_torrent-"]
  152. attribute: href
  153. banner:
  154. optional: true
  155. selector: a[href^="index.php?page=torrent-details&id="][onmouseover]
  156. attribute: onmouseover
  157. filters:
  158. - name: regexp
  159. args: "src=(.+?) "
  160. size:
  161. selector: td:nth-child(9)
  162. date:
  163. selector: td:nth-child(5)
  164. filters:
  165. - name: dateparse
  166. args: "02/01/2006"
  167. grabs:
  168. selector: td:nth-child(8)
  169. filters:
  170. - name: replace
  171. args: ["---", "0"]
  172. seeders:
  173. selector: td:nth-child(6)
  174. leechers:
  175. selector: td:nth-child(7)
  176. downloadvolumefactor:
  177. case:
  178. img[alt="Free Leech"]: "0"
  179. img[alt="Gold 100% Free"]: "0"
  180. img[alt="Silver 50% Free"]: "0.5"
  181. img[alt="Bronze 25% Free"]: "0.75"
  182. "*": "1"
  183. uploadvolumefactor:
  184. text: "1"
  185. uploadvolumefactor:
  186. optional: true
  187. selector: img[alt$="x Upload Multiplier"]
  188. attribute: alt
  189. filters:
  190. - name: replace
  191. args: ["x Upload Multiplier", ""]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement