R91

hdspain.yml

R91
Mar 29th, 2018
1,702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.00 KB | None | 0 0
  1. ---
  2.   site: hdspain
  3.   name: HD-Spain
  4.   description: "HD-Spain is a SPANISH site for HD content"
  5.   language: es-es
  6.   type: private
  7.   encoding: ISO-8859-1
  8.   links:
  9.    - https://www.hd-spain.com/
  10.  
  11.   caps:
  12.     categorymappings:
  13.       - {id: 1 , cat: Movies/HD, desc: "Películas"}
  14.       - {id: 5 , cat: Movies/HD, desc: "Pelíc. Anim."}
  15.       - {id: 4 , cat: TV/HD, desc: "Series"}
  16.       - {id: 3 , cat: TV/HD, desc: "Series Anim."}
  17.       - {id: 6 , cat: TV/Documentary, desc: "Documentales"}
  18.       - {id: 11, cat: TV/Sport, desc: "Deportes"}
  19.       - {id: 7 , cat: Audio/Video, desc: "Música/Espec."}
  20.       - {id: 9 , cat: TV/OTHER, desc: "Programas TV"}
  21.       - {id: 8 , cat: Audio/Lossless, desc: "Audios"}
  22.       - {id: 10, cat: XXX/x264, desc: "XXX"}
  23.     modes:
  24.       search: [q]
  25.  
  26.   login:
  27.     path: index.php
  28.     method: form
  29.     inputs:
  30.       usuario: "{{ .Config.username }}"
  31.       contrasena: "{{ .Config.password }}"
  32.     error:
  33.       - selector: p.error
  34.     test:
  35.       path: index.php
  36.       selector: .tcabecera
  37.  
  38.   search:
  39.     path: index.php
  40.     keywordsfilters:
  41.       - name: re_replace
  42.         args: ["S0?(\\d{1,2})E(\\d{1,2})", "$1x$2"]
  43.     inputs:
  44.       sec: listado
  45.       ord: 9
  46.       b: "{{ .Keywords }}"
  47.       ver: "0"
  48.       relanz: "0"
  49.       $raw: "{{range .Categories}}&cat[]={{.}}{{end}}"
  50.     rows:
  51.       selector: "table.listatorrents tr:not(:first-child)"
  52.     fields:
  53.       category:
  54.         selector: td.categorias a
  55.         attribute: href
  56.         filters:
  57.           - name: querystring
  58.             args: cat
  59.       title:
  60.         selector: td.titulo a[id]
  61.         filters:
  62.           - name: append
  63.             args: " [spanish]"
  64.       details:
  65.         selector: td.titulo a
  66.         attribute: href
  67.       size:
  68.         selector: td.tamano
  69.       seeders:
  70.         selector: td.usuarios.seeds a
  71.       leechers:
  72.         selector: td.usuarios.leechers a
  73.       grabs:
  74.         selector: td.usuarios.completados
  75.       date:
  76.         optional: true
  77.         selector: td.fecha
  78.         attribute: title
  79.         filters:
  80.           - name: replace
  81.             args: ["Lunes", "Monday"]
  82.           - name: replace
  83.             args: ["Martes", "Tuesday"]
  84.           - name: re_replace
  85.             args: ["Miércoles", "Wednesday"]
  86.           - name: replace
  87.             args: ["Jueves", "Thursday"]
  88.           - name: replace
  89.             args: ["Viernes", "Friday"]
  90.           - name: re_replace
  91.             args: ["Sábado", "Saturday"]
  92.           - name: replace
  93.             args: ["Domingo", "Sunday"]
  94.           - name: replace
  95.             args: ["Enero", "January"]
  96.           - name: replace
  97.             args: ["Febrero", "February"]
  98.           - name: replace
  99.             args: ["Marzo", "March"]
  100.           - name: replace
  101.             args: ["Abril", "April"]
  102.           - name: replace
  103.             args: ["Mayo", "May"]
  104.           - name: replace
  105.             args: ["Junio", "June"]
  106.           - name: replace
  107.             args: ["Julio", "July"]
  108.           - name: replace
  109.             args: ["Agosto", "August"]
  110.           - name: replace
  111.             args: ["Septiembre", "September"]
  112.           - name: replace
  113.             args: ["Octubre", "October"]
  114.           - name: replace
  115.             args: ["Noviembre", "November"]
  116.           - name: replace
  117.             args: ["Diciembre", "December"]
  118.           - name: dateparse
  119.             args: "Monday 2 January 2006, 15:04"          
  120.       download:
  121.         selector: td.descargar a
  122.         attribute: href
  123.  
  124.       downloadvolumefactor:
  125.         text: "1"
  126.       downloadvolumefactor:
  127.         optional: true
  128.         selector: td.descargar a b strong
  129.         filters:
  130.           - name: replace
  131.             args: [" X2", ""]
  132.           - name: replace
  133.             args: ["Freeleech", "0"]
  134.  
  135.       uploadvolumefactor:
  136.         text: "1"
  137.       uploadvolumefactor:
  138.         optional: true
  139.         selector: td.descargar a b strong
  140.         filters:
  141.           - name: replace
  142.             args: ["Freeleech X2", "2"]
Add Comment
Please, Sign In to add comment