2017-07-09 16:24:00 +00:00
---
site : yggtorrent
name : YGGtorrent
language : fr-fr
2017-07-14 05:42:40 +00:00
type : semi-private
2017-07-09 16:24:00 +00:00
encoding : UTF-8
links :
2017-07-14 05:42:40 +00:00
- https://yggtorrent.com
2017-07-09 16:24:00 +00:00
caps :
categorymappings :
2017-08-10 06:21:12 +00:00
# Film/Video for search results
- {id: 2145, cat: Other, desc : "Movies & TV" }
- {id: 2178, cat: Movies, desc : "Anim Movies" }
- {id: 2179, cat: TV/Anime, desc : "Anim TV" }
- {id: 2180, cat: Other, desc : "Concerts" }
- {id: 2181, cat: TV/Documentary, desc : "Documentary" }
- {id: 2182, cat: TV, desc : "TV Shows" }
- {id: 2183, cat: Movies, desc : "Movies" }
- {id: 2184, cat: TV, desc : "TV" }
- {id: 2185, cat: TV/Other, desc : "Shows" }
- {id: 2186, cat: TV/Sport, desc : "Sport" }
- {id: 2187, cat: TV/Other, desc : "Clips" }
# Film/Video for blank search
- {id : "Tous les torrents" , cat: Other, desc : "Movies & TV" }
- {id : "Animation" , cat: Movies, desc : "Anim Movies" }
- {id : "Animation Série" , cat: TV/Anime, desc : "Anim TV" }
- {id : "Concert" , cat: Other, desc : "Concerts" }
- {id : "Documentaire" , cat: TV/Documentary, desc : "Documentary" }
- {id : "Emission TV" , cat: TV, desc : "TV Shows" }
- {id : "Film" , cat: Movies, desc : "Movies" }
- {id : "Série TV" , cat: TV, desc : "TV" }
- {id : "Spectacle" , cat: TV/Other, desc : "Shows" }
- {id : "Sport" , cat: TV/Sport, desc : "Sport" }
- {id : "Vidéo-clips" , cat: TV/Other, desc : "Clips" }
2017-07-09 16:24:00 +00:00
modes :
search : [ q]
#tv-search: [q, season, ep]
settings :
- name : username
type : text
label : Username (email or username)
- name : password
type : password
label : Password
login :
2017-07-14 05:42:40 +00:00
path : "/user/login"
2017-07-09 16:24:00 +00:00
method : post
inputs :
id : "{{ .Config.username }}"
pass : "{{ .Config.password }}"
submit : ""
2017-07-14 05:42:40 +00:00
headers :
"[:authority]": "yggtorrent.com"
"[:method]": "post"
"[:path]": "/"
"[:scheme]": "https"
2017-07-09 16:24:00 +00:00
error :
- selector : "body > div.page-content > div > div.col-md-10 > div > div > div > div > div.content-box-large.box-with-header > form > center > table > tbody > tr:nth-child(3) > td:nth-child(2) > button.text:contains('Se connecter')"
test :
2017-07-14 05:42:40 +00:00
path : "/"
2017-08-10 06:21:12 +00:00
selector : "a[href=\"https://yggtorrent.com/user/logout\"]"
2017-07-09 16:24:00 +00:00
search :
2017-08-10 06:21:12 +00:00
paths :
- path : "{{if .Keywords}}/engine/search?q={{ .Keywords}}{{else}}/torrents/2145-filmvideo{{end}}"
- path : "{{if .Keywords}}/engine/search?q={{ .Keywords}}&page=15{{else}}/torrents/2145-filmvideo?page=25{{end}}"
- path : "{{if .Keywords}}/engine/search?q={{ .Keywords}}&page=30{{else}}/torrents/2145-filmvideo?page=50{{end}}"
2017-07-09 16:24:00 +00:00
rows :
selector : "table.table.table-striped > tbody > tr"
fields :
site_date :
2017-08-10 06:21:12 +00:00
selector : "td:nth-child(3)"
2017-07-09 16:24:00 +00:00
filters :
- name : replace
args : [ "il y a " , "" ]
- name : replace
args : [ " jours" , " days" ]
- name : replace
args : [ " jour" , " day" ]
- name : replace
args : [ " heures" , " hours" ]
- name : replace
args : [ " heure" , " hour" ]
- name : replace
args : [ " semaines" , " weeks" ]
- name : replace
args : [ " semaine" , " week" ]
- name : replace
args : [ " mois" , " month" ]
- name : replace
args : [ " ans" , " years" ]
- name : replace
args : [ " an" , " year" ]
- name : append
args : " ago"
title :
selector : "a.torrent-name"
details :
selector : "a.torrent-name"
attribute : href
2017-08-10 06:21:12 +00:00
category :
selector : "td:nth-child(1) > span > i:last-child > a"
comments :
optional : true
selector : "td:nth-child(1) > a[href$=\"#comments\"]"
attribute : href
2017-07-09 16:24:00 +00:00
download :
2017-08-10 06:21:12 +00:00
selector : "td:nth-child(1) > a[href^=\"https://yggtorrent.com/engine/download_torrent?id=\"]"
2017-07-09 16:24:00 +00:00
attribute : href
size :
2017-08-10 06:21:12 +00:00
selector : "td:nth-child(4)"
2017-07-09 16:24:00 +00:00
filters :
- name : re_replace
args : [ "\\.(\\d) KB" , "$1X00" ]
- name : re_replace
args : [ " KB" , "000" ]
- name : re_replace
args : [ "\\.(\\d) MB" , "$1X00000" ]
- name : re_replace
args : [ " MB" , "000000" ]
- name : re_replace
args : [ "\\.(\\d) GB" , "$1X00000000" ]
- name : re_replace
args : [ " GB" , "000000000" ]
- name : re_replace
args : [ "\\.(\\d) TB" , "$1X00000000000" ]
- name : re_replace
args : [ " TB" , "000000000000" ]
- name : replace
args : [ "X" , "" ]
seeders :
text : 0
seeders :
2017-08-10 06:21:12 +00:00
selector : "td:nth-child(5)"
2017-07-09 16:24:00 +00:00
optional : true
leechers :
text : 0
leechers :
2017-08-10 06:21:12 +00:00
selector : "td:nth-child(6)"
2017-07-09 16:24:00 +00:00
optional : true
date :
text : "{{ .Result.site_date }}"
downloadvolumefactor :
text : "1"
uploadvolumefactor :
text : "1"