Skip to content

Commit

Permalink
jackett indexers as of b89b5baec23e081033ffebeeb69ed711ba21afac
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jan 7, 2024
1 parent b598008 commit 92ed009
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 49 deletions.
24 changes: 12 additions & 12 deletions definitions/v7/thecrazyones.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ caps:
- {id: 32, cat: Movies/HD, desc: "Movie HD"}
- {id: 26, cat: Movies/3D, desc: "Movie 3D"}
# Serien
- {id: 152, cat: TV/SD, desc: "Serien DVD"}
- {id: 139, cat: TV/HD, desc: "Serien HD"}
- {id: 59, cat: TV, desc: "Serien Pack"}
- {id: 57, cat: TV/SD, desc: "Serien SD"}
- {id: 60, cat: TV, desc: "Serien Klassiker"}
- {id: 152, cat: TV/SD, desc: "Serien DVD"}
- {id: 59, cat: TV, desc: "Serien Pack"}
# Doku
- {id: 121, cat: TV/Documentary, desc: "Doku Pack"}
- {id: 14, cat: TV/Documentary, desc: "Doku HD"}
- {id: 15, cat: TV/Documentary, desc: "Doku SD"}
# Software
- {id: 11, cat: PC/Mobile-Other, desc: "App Other"}
- {id: 9, cat: PC, desc: "App Linux"}
- {id: 12, cat: PC/0day, desc: "App Win"}
- {id: 11, cat: PC/Mobile-Other, desc: "App Other"}
- {id: 10, cat: PC/Mac, desc: "App Mac"}
- {id: 9, cat: PC, desc: "App Linux"}
# Game
- {id: 120, cat: Console/PS3, desc: "Game PlayStation"}
- {id: 16, cat: Console, desc: "Game Wimmelbild"}
Expand All @@ -44,12 +44,12 @@ caps:
- {id: 24, cat: Console/XBox, desc: "Game XBOX"}
# Music
- {id: 48, cat: Audio, desc: "Music Album"}
- {id: 49, cat: Audio, desc: "Music Charts"}
- {id: 52, cat: Audio, desc: "Music Pack"}
- {id: 54, cat: Audio, desc: "Music Single"}
- {id: 55, cat: Audio/Video, desc: "Music Video"}
- {id: 125, cat: Audio, desc: "Music Mixe"}
- {id: 49, cat: Audio, desc: "Music Charts"}
- {id: 54, cat: Audio, desc: "Music Pack"}
- {id: 126, cat: Audio, desc: "Music Pack mp"}
- {id: 126, cat: Audio, desc: "Music Audio"}
# Sport
- {id: 61, cat: TV/Sport, desc: "Sport Other"}
# Sonstiges
Expand All @@ -59,19 +59,19 @@ caps:
- {id: 71, cat: Books/Other, desc: "Sonstiges Other"}
# Internt'l
- {id: 102, cat: TV/SD, desc: "Internt'l Serie SD"}
- {id: 103, cat: Movies/SD, desc: "Internt'l Movie SD"}
- {id: 106, cat: Books/EBook, desc: "Internt'l E-Book"}
- {id: 115, cat: Movies/DVD, desc: "Internt'l DVD"}
- {id: 98, cat: Movies/HD, desc: "Internt'l Movie HD"}
- {id: 99, cat: TV/HD, desc: "Internt'l Serie HD"}
- {id: 105, cat: TV/Documentary, desc: "Internt'l Doku"}
- {id: 103, cat: Movies/SD, desc: "Internt'l Movie SD"}
- {id: 104, cat: Other, desc: "Internt'l Misc"}
- {id: 106, cat: Books/EBook, desc: "Internt'l E-Book"}
- {id: 107, cat: Audio/Audiobook, desc: "Internt'l A-Book"}
- {id: 115, cat: Movies/DVD, desc: "Internt'l DVD"}
# XXX
- {id: 75, cat: XXX/Pack, desc: "XXX Pack"}
- {id: 113, cat: XXX/DVD, desc: "XXX DVD"}
- {id: 73, cat: XXX/x264, desc: "XXX HD"}
- {id: 75, cat: XXX/Pack, desc: "XXX Pack"}
- {id: 76, cat: XXX/SD, desc: "XXX SD"}
- {id: 113, cat: XXX/DVD, desc: "XXX DVD"}

modes:
search: [q]
Expand Down
130 changes: 95 additions & 35 deletions definitions/v7/torrentz2eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: public
encoding: UTF-8
requestDelay: 2
links:
- https://torrentz2beta.online/
- https://torrentz2beta.in/
legacylinks:
- https://torrentz2.org.in/
- https://torrentzeu.org/
Expand All @@ -18,16 +18,49 @@ legacylinks:
- https://torrentz2.unblockninja.com/
- hhttps://torrentz2beta.com/
- https://torrentz2beta.com/
- https://torrentz2beta.in/
- https://eu.torrentz2beta.in/
- https://www.torrentz2beta.com/
- https://torrentz2beta.asia/
- https://www.torrentz2beta.pro/
- https://torrentz2beta.online/

caps:
categorymappings:
- {id: TV, cat: TV, desc: TV}
- {id: Movies, cat: Movies, desc: Movies}
- {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(UNIX)", cat: PC/ISO, desc: "Applications(UNIX)"}
- {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]
Expand All @@ -38,58 +71,85 @@ caps:

settings: []

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

search:
paths:
# https://torrentz2beta.online/beta/search.php?q=2023
- path: beta/search.php
- path: beta/search.php
# https://torrentz2beta.in/search.php?q=+
- path: search.php
- path: search.php
inputs:
page: 2
inputs:
q: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
q: "{{ if .Keywords }}{{ .Keywords }}{{ else }}+{{ end }}"
keywordsfilters:
- name: re_replace
args: ["(\\w+)", "+$1"] # prepend + to each word

rows:
selector: table.selectable > tbody > tr

selector: table.table-responsive > tbody > tr
fields:
title:
selector: td:first-child
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|s]\\d+(?:[E|e]\\d+)?)\\b"
args: "\\b(S\\d+(?:E\\d+)?)\\b"
category:
text: "{{ if .Result.category_is_tv_show }}TV{{ else }}Movies{{ 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:
selector: td:last-child > button
attribute: onclick
filters:
- name: replace
args: ["submitPage('", "page.php?url="]
- name: replace
args: ["')", ""]
text: /
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:
# Nov. 05th '23
selector: td:nth-child(5)
selector: td[data-title="Description"]
filters:
- name: re_replace
args: ["(\\.|'|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: "MMM dd yy"
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: "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:
Expand Down
Loading

0 comments on commit 92ed009

Please sign in to comment.