From 3b4569b307479577ec82f9ccbe280c69fe4917f5 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 4 Oct 2023 17:59:38 +0300 Subject: [PATCH] jackett indexers as of 79d26b39d1f18c84e5682b239b7a68dbb9af7d76 --- definitions/v7/noname-club.yml | 1 + definitions/v7/noname-clubl.yml | 1 + definitions/v7/tjupt.yml | 20 +-- definitions/v9/btarg.yml | 222 ++++++++++++++++++++++++++++++++ definitions/v9/tjupt.yml | 20 +-- 5 files changed, 248 insertions(+), 16 deletions(-) create mode 100644 definitions/v9/btarg.yml diff --git a/definitions/v7/noname-club.yml b/definitions/v7/noname-club.yml index e38c31c74..4a7f748ed 100644 --- a/definitions/v7/noname-club.yml +++ b/definitions/v7/noname-club.yml @@ -182,6 +182,7 @@ caps: - {id: 776, cat: TV, desc: " |- Звездные врата / Stargate"} - {id: 785, cat: TV, desc: " |- Звездный Крейсер Галактика / BattleStar Galactica"} - {id: 775, cat: TV, desc: " |- Звездный путь / Star Trek"} + - {id: 1344, cat: TV, desc: " |- Звездные войны / Star Wars (сериалы по франшизе)"} - {id: 1265, cat: TV, desc: " |- Игра престолов / Game of Thrones"} - {id: 1242, cat: TV, desc: " |- Касл / Castle"} - {id: 1140, cat: TV, desc: " |- Кости / Bones"} diff --git a/definitions/v7/noname-clubl.yml b/definitions/v7/noname-clubl.yml index c47418e5f..dbcb8e75c 100644 --- a/definitions/v7/noname-clubl.yml +++ b/definitions/v7/noname-clubl.yml @@ -182,6 +182,7 @@ caps: - {id: 776, cat: TV, desc: " |- Звездные врата / Stargate"} - {id: 785, cat: TV, desc: " |- Звездный Крейсер Галактика / BattleStar Galactica"} - {id: 775, cat: TV, desc: " |- Звездный путь / Star Trek"} + - {id: 1344, cat: TV, desc: " |- Звездные войны / Star Wars (сериалы по франшизе)"} - {id: 1265, cat: TV, desc: " |- Игра престолов / Game of Thrones"} - {id: 1242, cat: TV, desc: " |- Касл / Castle"} - {id: 1140, cat: TV, desc: " |- Кости / Bones"} diff --git a/definitions/v7/tjupt.yml b/definitions/v7/tjupt.yml index 5d600e5bb..b2803cac1 100644 --- a/definitions/v7/tjupt.yml +++ b/definitions/v7/tjupt.yml @@ -31,13 +31,12 @@ caps: book-search: [q] settings: - - name: cookie + - name: username type: text - label: Cookie - - name: info - type: info - label: How to get the Cookie - default: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + label: Username + - name: password + type: password + label: Password - name: freeleech type: checkbox label: Search freeleech only @@ -64,9 +63,14 @@ settings: default: For best results, change the Torrents per page: setting to 100 on your account profile. login: - method: cookie + path: takelogin.php + method: post inputs: - cookie: "{{ .Config.cookie }}" + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + logout: 90days + error: + - selector: td.embedded:has(h2:contains("失败")) test: path: index.php selector: a[href="logout.php"] diff --git a/definitions/v9/btarg.yml b/definitions/v9/btarg.yml new file mode 100644 index 000000000..f41317895 --- /dev/null +++ b/definitions/v9/btarg.yml @@ -0,0 +1,222 @@ +--- +id: btarg +name: BTArg +description: "BTArg is an ARGENTINIAN Private Torrent Tracker for MOVIES / TV / GENERAL" +language: es-AR +type: private +encoding: iso-8859-1 +links: + - https://www.btarg.com.ar/ + +caps: + # use upload page when updating cats, browse.php uses 0a, 0b, etc for cats >10 + categorymappings: + - {id: 01, cat: Movies, desc: "Cine Arg."} + - {id: 02, cat: Movies/Foreign, desc: "Cine Int."} + - {id: 03, cat: TV, desc: "TV Arg."} + - {id: 04, cat: TV/Foreign, desc: "TV Int."} + - {id: 05, cat: XXX, desc: "XXX"} + - {id: 06, cat: TV/Anime, desc: "Anime"} + - {id: 07, cat: TV/Sport, desc: "Deportes"} + - {id: 08, cat: Audio/Video, desc: "Video Clips"} + - {id: 09, cat: Audio, desc: "Musica Arg."} + - {id: 10, cat: Audio/Foreign, desc: "Musica Int."} + - {id: 11, cat: Movies/DVD, desc: "DVD-R"} + - {id: 12, cat: PC/Games, desc: "Juegos"} + - {id: 13, cat: PC/0day, desc: "Software Arg."} + - {id: 14, cat: PC/0day, desc: "Software Int."} + - {id: 15, cat: Other, desc: "Otros"} + - {id: 16, cat: Other, desc: "Subpacks"} + + modes: + search: [q] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] + music-search: [q] + +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false + - name: sort + type: select + label: Sort requested from site + default: added + options: + added: created + seeders: seeders + size: size + name: title + - name: type + type: select + label: Order requested from site + default: desc + options: + DESC: desc + ASC: asc + - name: info_tpp + type: info + label: Results Per Page + default: For best results, change the Por página Torrents: setting to 100 on your account profile. + +login: + path: tracker/takelogin.php + method: post + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: td.embedded:has(h2:contains("fallado")) + test: + path: tracker/index.php + selector: a[href="logout.php"], a[href^="download.php/"] + +search: + paths: + - path: tracker/browse.php + inputs: + $raw: "{{ range .Categories }}cat[]={{.}}&{{end}}" + keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" + # 0 title, 1 title+descr, 2 descr + type: "{{ if .Query.IMDBID }}2{{ else }}0{{ end }}" + # 0 active, 1 incldead, 2 dead + incldead: 0 # dead results don't have torrents + # 0 all, 1 free, 2 normal + inclfree: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}" + sort: "{{ .Config.sort }}" + d: "{{ .Config.type }}" + list: 1 + + keywordsfilters: + - name: re_replace + args: ["(?i)(S(\\d{1,3}))(?![\\dE])", "Temporada"] + - name: re_replace + args: ["(\\w+)", "+$1"] # prepend + to each word + + rows: + selector: table > tbody > tr:not(tr:first-child):not(tr.browse) + after: 1 + + fields: + categorydesc: + selector: a[href*="?cat="] img + attribute: title + title_default: + selector: a[href^="details.php?id="] + filters: + - name: re_replace + args: ["(?i)(Primera Temporada)", "S01"] + - name: re_replace + args: ["(?i)(Segunda Temporada)", "S02"] + - name: re_replace + args: ["(?i)(Tercera Temporada)", "S03"] + - name: re_replace + args: ["(?i)(Cuarta Temporada)", "S04"] + - name: re_replace + args: ["(?i)(Quinta Temporada)", "S05"] + - name: re_replace + args: ["(?i)(Sexta Temporada)", "S06"] + - name: re_replace + args: ["(?i)(Septima Temporada)", "S07"] + - name: re_replace + args: ["(?i)(Octava Temporada)", "S08"] + - name: re_replace + args: ["(?i)(Novena Temporada)", "S09"] + - name: re_replace + args: ["(?i)(Decima Temporada)", "S10"] + - name: re_replace + args: ["(?i)(Onceava Temporada)", "S11"] + - name: re_replace + args: ["(?i)(Decimosegunda Temporada)", "S12"] + - name: re_replace + args: ["(?i)Temporada (\\d{1,3})\\s*y\\s*(\\d{1,3})", "S$1-$2"] + - name: re_replace + args: ["(?i)Temporada (\\d{1,3})", "S$1"] + title: + selector: a[title][href^="details.php?id="] + attribute: title + optional: true + default: "{{ .Result.title_default }}" + filters: + - name: re_replace + args: ["(?i)(Primera Temporada)", "S01"] + - name: re_replace + args: ["(?i)(Segunda Temporada)", "S02"] + - name: re_replace + args: ["(?i)(Tercera Temporada)", "S03"] + - name: re_replace + args: ["(?i)(Cuarta Temporada)", "S04"] + - name: re_replace + args: ["(?i)(Quinta Temporada)", "S05"] + - name: re_replace + args: ["(?i)(Sexta Temporada)", "S06"] + - name: re_replace + args: ["(?i)(Septima Temporada)", "S07"] + - name: re_replace + args: ["(?i)(Octava Temporada)", "S08"] + - name: re_replace + args: ["(?i)(Novena Temporada)", "S09"] + - name: re_replace + args: ["(?i)(Decima Temporada)", "S10"] + - name: re_replace + args: ["(?i)(Onceava Temporada)", "S11"] + - name: re_replace + args: ["(?i)(Decimosegunda Temporada)", "S12"] + - name: re_replace + args: ["(?i)Temporada (\\d{1,3})\\s*y\\s*(\\d{1,3})", "S$1-$2"] + - name: re_replace + args: ["(?i)Temporada (\\d{1,3})", "S$1"] + details: + selector: a[href^="details.php?id="] + attribute: href + download: + selector: a[href^="download.php/"] + attribute: href + date: + selector: td:nth-child(5) + remove: font + filters: + - name: append + args: " +00:00" # auto adjusted by site account profile + - name: dateparse + args: "yyyy-MM-dd zzz" + size: + selector: td:nth-child(3) + seeders: + selector: td:nth-child(8) + filters: + - name: regexp + args: "^(\\d+) \/" + leechers: + selector: td:nth-child(8) + filters: + - name: regexp + args: "\/ (\\d+)$" + grabs: + selector: td:nth-child(9) + filters: + - name: regexp + args: "\\\xA0(\\d+)\\\xA0" + downloadvolumefactor: + case: + "font[color=\"red\"]:contains(\"FREE!\")": 0 + "*": 1 + uploadvolumefactor: + text: 1 + minimumratio: + text: 0.5 + description_default: + selector: a[href^="details.php?id="] + description: + selector: a[title][href^="details.php?id="] + attribute: title + optional: true + default: "{{ .Result.description_default }}" +# engine tbd diff --git a/definitions/v9/tjupt.yml b/definitions/v9/tjupt.yml index f7dcb2d3c..8a8af40a3 100644 --- a/definitions/v9/tjupt.yml +++ b/definitions/v9/tjupt.yml @@ -31,13 +31,12 @@ caps: book-search: [q] settings: - - name: cookie + - name: username type: text - label: Cookie - - name: info - type: info - label: How to get the Cookie - default: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + label: Username + - name: password + type: password + label: Password - name: freeleech type: checkbox label: Search freeleech only @@ -64,9 +63,14 @@ settings: default: For best results, change the Torrents per page: setting to 100 on your account profile. login: - method: cookie + path: takelogin.php + method: post inputs: - cookie: "{{ .Config.cookie }}" + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + logout: 90days + error: + - selector: td.embedded:has(h2:contains("失败")) test: path: index.php selector: a[href="logout.php"]