1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-20 06:29:33 +00:00

YGG config update (#1635)

* YGG config update

* Followed gprime44 on seeder/leecher selector #1634
This commit is contained in:
Khogniak 2017-08-10 08:21:12 +02:00 committed by kaso17
parent 2e79500f50
commit 6f0a249503

View file

@ -9,9 +9,30 @@
caps: caps:
categorymappings: categorymappings:
- {id: films, cat: Movies, desc: "Movies"} # Film/Video for search results
#- {id: series, cat: TV, desc: "TV"} - {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"}
modes: modes:
search: [q] search: [q]
#tv-search: [q, season, ep] #tv-search: [q, season, ep]
@ -38,13 +59,17 @@
- 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')" - 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: test:
path: "/" path: "/"
selector: "a[href=\"https://yggtorrent.com/user/logout\"]"
search: search:
path: "{{if .Keywords}}/engine/search?q={{ .Keywords}}{{else}}/torrents/2145-filmvideo{{end}}" 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}}"
rows: rows:
selector: "table.table.table-striped > tbody > tr" selector: "table.table.table-striped > tbody > tr"
fields: fields:
site_date: site_date:
selector: "td:nth-child(2)" selector: "td:nth-child(3)"
filters: filters:
- name: replace - name: replace
args: ["il y a ", ""] args: ["il y a ", ""]
@ -73,11 +98,17 @@
details: details:
selector: "a.torrent-name" selector: "a.torrent-name"
attribute: href attribute: href
category:
selector: "td:nth-child(1) > span > i:last-child > a"
comments:
optional: true
selector: "td:nth-child(1) > a[href$=\"#comments\"]"
attribute: href
download: download:
selector: "td:nth-child(1) > a:not(.torrent-name)" selector: "td:nth-child(1) > a[href^=\"https://yggtorrent.com/engine/download_torrent?id=\"]"
attribute: href attribute: href
size: size:
selector: "td:nth-child(3)" selector: "td:nth-child(4)"
filters: filters:
- name: re_replace - name: re_replace
args: [ "\\.(\\d) KB", "$1X00"] args: [ "\\.(\\d) KB", "$1X00"]
@ -100,12 +131,12 @@
seeders: seeders:
text: 0 text: 0
seeders: seeders:
selector: "td[style^='color:#058c05;']" selector: "td:nth-child(5)"
optional: true optional: true
leechers: leechers:
text: 0 text: 0
leechers: leechers:
selector: "td[style^='color:#ff5252;']" selector: "td:nth-child(6)"
optional: true optional: true
date: date:
text: "{{ .Result.site_date }}" text: "{{ .Result.site_date }}"