Skip to content

Commit

Permalink
jackett indexers as of 869d0e547573db701a0045c1ea955767208ff048
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Oct 5, 2023
1 parent ecebc11 commit 17c14ff
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 40 deletions.
4 changes: 2 additions & 2 deletions definitions/v7/torrentqq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ type: public
encoding: UTF-8
followredirect: true
links:
- https://torrentqq276.com/
- https://torrentqq277.com/
legacylinks:
- https://torrentqq261.com/
- https://torrentqq262.com/
- https://torrentqq263.com/
- https://torrentqq264.com/
Expand All @@ -24,6 +23,7 @@ legacylinks:
- https://torrentqq273.com/
- https://torrentqq274.com/
- https://torrentqq275.com/
- https://torrentqq276.com/

caps:
categorymappings:
Expand Down
130 changes: 92 additions & 38 deletions definitions/v7/torrentz2eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,56 @@ legacylinks:
- hhttps://torrentz2beta.com/

caps:
# unfortunately torrentz2eu does not display categories anywhere in its search results page :-(
categorymappings:
- {id: 1, cat: Movies, desc: "Movies"}
- {id: 2, cat: TV, desc: "TV"}
- {id: 3, cat: Other, desc: "Other"}
- {id: "Applications(Android)", cat: PC/Mobile-Android, desc: "Applications(Android)"}
- {id: "Applications(IOS (iPad/iPhone))", cat: PC/Mobile-iOS, desc: "Applications(IOS (iPad/iPhone))"}
- {id: "Applications(Mac)", cat: PC/Mac, desc: "Applications(Mac)"}
- {id: "Applications(Windows)", cat: PC/0day, desc: "Applications(Windows)"}
- {id: "Audio(Audio books)", cat: Audio/Audiobook, desc: "Audio(Audio books)"}
- {id: "Audio(FLAC)", cat: Audio/Lossless, desc: "Audio(FLAC)"}
- {id: "Audio(Music)", cat: Audio/MP3, desc: "Audio(Music)"}
- {id: "Audio(Other)", cat: Audio/Other, desc: "Audio(Other)"}
- {id: "Games(Android)", cat: PC/Mobile-Android, desc: "Games(Android)"}
- {id: "Games(Handheld)", cat: Console/Other, desc: "Games(Handheld)"}
- {id: "Games(Mac)", cat: PC/Mac, desc: "Games(Mac)"}
- {id: "Games(Other)", cat: Console/Other, desc: "Games(Other)"}
- {id: "Games(PC)", cat: PC/Games, desc: "Games(PC)"}
- {id: "Games(PSx)", cat: Console/PS3, desc: "Games(PSx)"}
- {id: "Games(Wii)", cat: Console/Wii, desc: "Games(Wii)"}
- {id: "Games(XBOX360)", cat: Console/XBox 360, desc: "Games(XBOX360)"}
- {id: "Other(Comics)", cat: Books/Comics, desc: "Other(Comics)"}
- {id: "Other(E-books)", cat: Books/EBook, desc: "Other(E-books)"}
- {id: "Other(Other)", cat: Other/Misc, desc: "Other(Other)"}
- {id: "Other(Pictures)", cat: Other, desc: "Other"}
- {id: "Porn(HD - Movies)", cat: XXX/x264, desc: "Porn(HD - Movies)"}
- {id: "Porn(Movie clips)", cat: XXX/WEB-DL, desc: "Porn(Movie clips)"}
- {id: "Porn(Movies)", cat: XXX, desc: "Porn(Movies)"}
- {id: "Porn(Other)", cat: XXX/Other, desc: "Porn(Other)"}
- {id: "Porn(Pictures)", cat: XXX/ImageSet, desc: "Porn(Pictures)"}
- {id: "Video()", cat: Movies, desc: "Movies"}
- {id: "Video(3D)", cat: Movies/3D, desc: "Movies(3D)"}
- {id: "Video(HD - Movies)", cat: Movies/HD, desc: "Movies(HD)"}
- {id: "Video(HD - TV shows)", cat: TV/HD, desc: "TV(HD)"}
- {id: "Video(Movies DVDR)", cat: Movies/DVD, desc: "Movies(DVDR)"}
- {id: "Video(Movies)", cat: Movies, desc: "Movies"}
- {id: "Video(Music videos)", cat: Audio/Video, desc: "Video(Music videos)"}
- {id: "Video(Other)", cat: Other, desc: "Video(Other)"}
- {id: "Video(TV shows)", cat: TV, desc: "TV"}

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]

settings:
- name: info_8000
type: info
label: About Torrentz2eu Categories
default: Torrentz2eu does not return categories in its search results.</br>To add to your Apps' Torznab indexer, replace all categories with 8000(Other).

download:
selectors:
- selector: a[href^="magnet:?"]
attribute: href
settings: []

search:
paths:
# https://torrentz2beta.com/beta/search.php?q=2023
- path: beta/search.php
- path: beta/search.php
# https://torrentz2beta.com/search.php?q=2023
- path: search.php
- path: search.php
inputs:
page: 2
inputs:
Expand All @@ -56,43 +79,74 @@ search:
User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.1901.203"]

rows:
selector: table#torrent-table > tbody > tr
selector: table.table-responsive > tbody > tr
fields:
title:
selector: td:nth-child(1)
selector: td[data-title="Name"]
category_provided:
selector: td[data-title="Category"]
category_is_tv_show:
text: "{{ .Result.title }}"
filters:
- name: regexp
args: "\\b(S\\d+(?:E\\d+)?)\\b"
category:
text: "{{ if .Result.category_is_tv_show }}2{{ else }}3{{ end }}"
# some tv have category as video() which can also be movies, so we look for the SxxExx to tag TV
text: "{{ if .Result.category_is_tv_show }}Video(TV shows){{ else }}{{ .Result.category_provided }}{{ end }}"
details:
# https://torrentz2beta.com/beta/page.php?url=99999999%2FThe-Torrent-file-name-goes-here%2F
selector: td:nth-child(6) button
attribute: onclick
filters:
- name: regexp
args: "'(.+?)'"
- name: prepend
args: "{{ .Config.sitelink }}beta/page.php?url="
# there is no details page so we use the sitelink
text: "{{ .Config.sitelink }}"
download:
text: "{{ .Result.details }}"
selector: a[href^="magnet:?"]
attribute: href
seeders:
selector: td:nth-child(2)
text: 1
leechers:
selector: td:nth-child(3)
text: 1
size:
selector: td:nth-child(4)
date:
selector: td:nth-child(5)
selector: td[data-title="Description"]
filters:
- name: re_replace
args: ["(?i)(st|nd|rd|th|'|\\.)", ""]
- name: regexp
args: Size (.+?),
date_year:
# 01-04 2021
selector: td[data-title="Description"]:not(:contains(":"))
optional: true
filters:
- name: regexp
args: Uploaded (\d{2}-\d{2}.\d{4})
- name: replace
args: ["\xA0", " "]
- name: dateparse
args: "MM-dd yyyy"
date_time:
# 08-25 20:12
selector: td[data-title="Description"]:contains(":"):not(:contains("day"))
optional: true
filters:
- name: regexp
args: Uploaded (\d{2}-\d{2}.\d{2}:\d{2})
- name: replace
args: ["\xA0", " "]
- name: dateparse
args: "MMM dd yy"
args: "MM-dd HH:mm"
date_day:
# Y-day 16:23
# Today 13:31
selector: td[data-title="Description"]:contains("day")
optional: true
filters:
- name: regexp
args: Uploaded.(.+?),
- name: replace
args: ["\xA0", " "]
- name: replace
args: ["Y-day", "Yesterday"]
- name: fuzzytime
date:
text: "{{ if or .Result.date_year .Result.date_time .Result.date_day }}{{ or .Result.date_year .Result.date_time .Result.date_day }}{{ else }}now{{ end }}"
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# beta
# engine n/a

0 comments on commit 17c14ff

Please sign in to comment.