From 5b620cabc6a71df4b4645087f13942fe3fab115f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 7 Nov 2023 21:09:19 +0200 Subject: [PATCH] jackett indexers as of 2381363ca5a44a421d54ef950890bdac48681d2b --- definitions/v7/datascene-api.yml | 6 +- definitions/v7/scenelinks.yml | 184 ------------------------------ definitions/v9/datascene-api.yml | 6 +- definitions/v9/scenelinks.yml | 188 +++++++++++++++++++++++++++++++ 4 files changed, 196 insertions(+), 188 deletions(-) delete mode 100644 definitions/v7/scenelinks.yml create mode 100644 definitions/v9/scenelinks.yml diff --git a/definitions/v7/datascene-api.yml b/definitions/v7/datascene-api.yml index 49e3a49b2..dbec38b5c 100644 --- a/definitions/v7/datascene-api.yml +++ b/definitions/v7/datascene-api.yml @@ -39,10 +39,12 @@ caps: - {id: 24, cat: PC, desc: "Linux"} - {id: 25, cat: TV/Sport, desc: "Sport"} - {id: 26, cat: TV/SD, desc: "TV SD"} - - {id: 27, cat: TV/SD, desc: "DVD"} - - {id: 28, cat: TV/SD, desc: "DVD Ro"} + - {id: 27, cat: Movies/SD, desc: "DVD"} + - {id: 28, cat: Movies/SD, desc: "DVD Ro"} - {id: 29, cat: TV/UHD, desc: "TV 4K"} - {id: 30, cat: TV/UHD, desc: "TV 4K Ro"} + - {id: 31, cat: TV/SD, desc: "DVD"} + - {id: 32, cat: TV/SD, desc: "DVD Ro"} modes: search: [q] diff --git a/definitions/v7/scenelinks.yml b/definitions/v7/scenelinks.yml deleted file mode 100644 index df0b9dba9..000000000 --- a/definitions/v7/scenelinks.yml +++ /dev/null @@ -1,184 +0,0 @@ ---- -id: scenelinks -name: SceneLinks -description: "SceneLinks (SL) is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL" -language: ro-RO -type: private -encoding: UTF-8 -requestDelay: 2 -links: - - https://www.scenelinks.io/ -legacylinks: - - https://scenelinks.io/ - -caps: - categorymappings: - # when adding or removing cats don't forget the path categories - - {id: 163, cat: TV/Anime, desc: "Anime / Hentai", default: true} - - {id: 146, cat: PC, desc: "Applications", default: true} - - {id: 151, cat: Books/EBook, desc: "E-books", default: true} - - {id: 103, cat: PC/Games, desc: "Games: PC", default: true} - - {id: 174, cat: TV/HD, desc: "HDTV Episodes", default: true} - - {id: 175, cat: TV/HD, desc: "HDTV Episodes-Ro", default: true} - - {id: 149, cat: Other, desc: "Images", default: true} - - {id: 165, cat: PC, desc: "Linux", default: true} - - {id: 164, cat: PC/Mobile-Other, desc: "Mobile", default: true} - - {id: 161, cat: Movies/UHD, desc: "Movies: 4K(2160p)", default: true} - - {id: 162, cat: Movies/UHD, desc: "Movies: 4K-RO(2160p)", default: true} - - {id: 138, cat: Movies/BluRay, desc: "Movies: BluRay", default: true} - - {id: 148, cat: Movies/BluRay, desc: "Movies: BluRay-RO", default: true} - - {id: 82, cat: Movies/DVD, desc: "Movies: DVD", default: true} - - {id: 83, cat: Movies/DVD, desc: "Movies: DVD-Ro", default: true} - - {id: 147, cat: Movies/HD, desc: "Movies: HD", default: true} - - {id: 108, cat: Movies/HD, desc: "Movies: HD-Ro", default: true} - - {id: 1, cat: Movies/SD, desc: "Movies: SD", default: true} - - {id: 2, cat: Movies/SD, desc: "Movies: SD-Ro", default: true} - - {id: 142, cat: Audio, desc: "Music", default: true} - - {id: 143, cat: Audio/Video, desc: "Music Video", default: true} - - {id: 160, cat: Movies, desc: "Ro Movies", default: true} - - {id: 159, cat: TV, desc: "Ro TV", default: true} - - {id: 166, cat: TV/Sport, desc: "Sports", default: true} - - {id: 158, cat: TV/SD, desc: "TV Episodes (SD)", default: true} - - {id: 153, cat: TV/SD, desc: "TV Episodes-Ro (SD)", default: true} - - {id: 3, cat: XXX, desc: "XXX", default: false} - - modes: - search: [q] - tv-search: [q, season, ep] - movie-search: [q] - music-search: [q] - book-search: [q] - -settings: - - name: username - type: text - label: Username - - name: password - type: password - label: Password - - name: freeleech - type: checkbox - label: Filter freeleech only - default: false - - name: sort - type: select - label: Sort requested from site - default: 4 - options: - 4: created - 7: seeders - 5: size - 1: 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 Torrents per page: setting to 100 on your account profile. - -login: - path: takelogin.php - method: post - inputs: - username: "{{ .Config.username }}" - password: "{{ .Config.password }}" - error: - - selector: td.embedded:has(h2:contains("failed")) - test: - path: / - selector: a[href="logout.php"] - -search: - paths: - - path: browse.php - categories: [163, 146, 151, 103, 174, 175, 149, 165. 164, 161, 162, 138, 148, 82, 83, 147, 108, 1, 2, 142, 143, 160, 159, 166, 158, 153] - inputs: - # 0 name, 1 descr, 2 genre (not reliable) - blah: 0 - - path: browseadult.php - categories: [3] - inputs: - incldead: 1 - inputs: - $raw: "{{ if .Categories}}{{ range .Categories }}c{{.}}=1&{{end}}{{ else }}cat=0{{ end }}" - search: "{{ .Keywords }}" - sort: "{{ .Config.sort }}" - type: "{{ .Config.type }}" - # does not support imdbid searching or return imdb in results. - Search: Search - - rows: - selector: "table[border=\"1\"] > tbody > tr:has(a[href^=\"download.php?id=\"]){{ if .Config.freeleech }}:has(a#free-btn){{ else }}{{ end }}, table[width=\"1005\"] > tbody > tr:has(a[href^=\"download.php?id=\"]){{ if .Config.freeleech }}:has(a#free-btn){{ else }}{{ end }}" - - fields: - category: - selector: a[href*=".php?cat="] - attribute: href - filters: - - name: querystring - args: cat - title: - selector: a[href^="download.php?id="] - attribute: href - filters: - - name: querystring - args: name - - name: replace - args: [".torrent", ""] - details: - selector: a[href^="details.php?id="] - attribute: href - poster: - selector: a[href^="details.php?id="] - attribute: onmouseover - filters: - - name: regexp - args: src=([^\s]+) - download: - selector: a[href^="download.php?id="] - attribute: href - date: - selector: td:nth-last-child(5) - filters: - - name: append - args: " +00:00" # auto adjusted by site account profile - - name: dateparse - args: "yyyy-MM-ddHH:mm:ss zzz" - size: - selector: td:nth-last-child(4) - grabs: - selector: td:nth-last-child(3) - seeders: - selector: td:nth-last-child(2) - leechers: - selector: td:nth-last-child(1) - genre: - selector: td:nth-child(2) > i:nth-last-child(1) - filters: - - name: re_replace - args: ["(?i)(All Sex)", "All_Sex"] - - name: re_replace - args: ["(?i)(Science Fiction)", "Science_Fiction"] - - name: replace - args: [" & ", "_&_"] - description: - text: "{{ .Result.genre }}" - downloadvolumefactor: - case: - "a#free-btn": 0 - "*": 1 - uploadvolumefactor: - case: - "a#double-btn": 2 - "*": 1 - minimumratio: - text: 1.0 - minimumseedtime: - # 3 days (as seconds = 3 x 24 x 60 x 60) - text: 259200 -# TBDEV diff --git a/definitions/v9/datascene-api.yml b/definitions/v9/datascene-api.yml index d5daf84bb..5d2ee2d33 100644 --- a/definitions/v9/datascene-api.yml +++ b/definitions/v9/datascene-api.yml @@ -39,10 +39,12 @@ caps: - {id: 24, cat: PC, desc: "Linux"} - {id: 25, cat: TV/Sport, desc: "Sport"} - {id: 26, cat: TV/SD, desc: "TV SD"} - - {id: 27, cat: TV/SD, desc: "DVD"} - - {id: 28, cat: TV/SD, desc: "DVD Ro"} + - {id: 27, cat: Movies/SD, desc: "DVD"} + - {id: 28, cat: Movies/SD, desc: "DVD Ro"} - {id: 29, cat: TV/UHD, desc: "TV 4K"} - {id: 30, cat: TV/UHD, desc: "TV 4K Ro"} + - {id: 31, cat: TV/SD, desc: "DVD"} + - {id: 32, cat: TV/SD, desc: "DVD Ro"} modes: search: [q] diff --git a/definitions/v9/scenelinks.yml b/definitions/v9/scenelinks.yml new file mode 100644 index 000000000..b80b4cb6b --- /dev/null +++ b/definitions/v9/scenelinks.yml @@ -0,0 +1,188 @@ +--- +id: scenelinks +name: SceneLinks +description: "SceneLinks (SL) is a ROMANIAN Private Torrent Tracker for MOVIES / TV / GENERAL" +language: ro-RO +type: private +encoding: UTF-8 +links: + - https://scenelinks.me/ +legacylinks: + - https://scenelinks.io/ + - https://www.scenelinks.io/ + +caps: + categorymappings: + - {id: 1, cat: Movies/HD, desc: "Movies: HD"} + - {id: 2, cat: TV, desc: "TV Episodes"} + - {id: 6, cat: TV, desc: "RO TV"} + - {id: 7, cat: Movies, desc: "Ro Movies"} + - {id: 8, cat: TV, desc: "TV Episodes-RO"} + - {id: 9, cat: Movies/HD, desc: "Movies: HD-Ro"} + - {id: 11, cat: Movies/BluRay, desc: "Movies: BluRay"} + - {id: 12, cat: Movies/BluRay, desc: "Movies: BluRay-RO"} + - {id: 13, cat: Movies/UHD, desc: "Movies: 4K"} + - {id: 14, cat: Movies/UHD, desc: "Movies: 4K-RO"} + - {id: 15, cat: TV, desc: "TV Packs RO"} + - {id: 20, cat: Movies/DVD, desc: "Movies: DVD"} + - {id: 21, cat: Movies/DVD, desc: "Movies: DVD-Ro"} + - {id: 19, cat: TV/Documentary, desc: "Docs"} + - {id: 18, cat: Other, desc: "Wallpapers"} + - {id: 17, cat: Audio/Video, desc: "Videos"} + - {id: 3, cat: Audio, desc: "Music"} + - {id: 16, cat: Console, desc: "Games: Console"} + - {id: 4, cat: PC/Games, desc: "Games PC"} + - {id: 5, cat: PC, desc: "Application"} + - {id: 10, cat: XXX, desc: "XXX"} + + modes: + search: [q] + tv-search: [q, season, ep, imdbid, tvdbid, tmdbid] + movie-search: [q, imdbid, tmdbid] + music-search: [q] + book-search: [q] + +settings: + - name: apikey + type: text + label: APIKey + - name: info_key + type: info + label: About your API key + default: "Find or Generate a new API Token by accessing your SceneLinks account My Settings page and clicking on the API Key tab." + - name: freeleech + type: checkbox + label: Search freeleech only + default: false + - name: sort + type: select + label: Sort requested from site + default: created_at + options: + created_at: created + seeders: seeders + size: size + name: title + - name: type + type: select + label: Order requested from site + default: desc + options: + desc: desc + asc: asc + +login: + path: /api/torrents + method: get + error: + - selector: a[href*="/login"] + message: + text: "The API key was not accepted by {{ .Config.sitelink }}." + +search: + paths: + # https://github.com/HDInnovations/UNIT3D-Community-Edition/wiki/Torrent-API-(UNIT3D-v7.0.0) + # https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/app/Http/Controllers/API/TorrentController.php#L349 + - path: "/api/torrents/filter" + response: + type: json + + headers: + Authorization: ["Bearer {{ .Config.apikey }}"] + + inputs: + # if we have an id based search, add Season and Episode as query in name for UNIT3D < v6. Else pass S/E Params for UNIT3D >= v6 + $raw: "{{ range .Categories }}&categories[]={{.}}{{end}}" + name: "{{ .Keywords }}" + seasonNumber: "{{ .Query.Season }}" + episodeNumber: "{{ .Query.Ep }}" + imdbId: "{{ .Query.IMDBIDShort }}" + tmdbId: "{{ .Query.TMDBID }}" + tvdbId: "{{ .Query.TVDBID }}" + "free[]": "{{ if .Config.freeleech }}100{{ else }}{{ end }}" + sortField: "{{ .Config.sort }}" + sortDirection: "{{ .Config.type }}" + perPage: 100 + + keywordsfilters: + - name: re_replace + args: ["\\.", " "] + + rows: + selector: data + attribute: attributes + + fields: + category: + selector: category_id + title: + selector: name + details: + selector: details_link + download: + selector: download_link + infohash: + selector: info_hash + poster: + selector: meta.poster + filters: + - name: replace + args: ["https://via.placeholder.com/90x135", ""] + imdbid: + selector: imdb_id + tmdbid: + selector: tmdb_id + tvdbid: + selector: tvdb_id + genre: + selector: meta.genres + filters: + - name: re_replace + args: ["(?i)(Science Fiction)", "Science_Fiction"] + - name: re_replace + args: ["(?i)(TV Movie)", "TV_Movie"] + - name: replace + args: [" & ", "_&_"] + description: + text: "{{ .Result.genre }}" + files: + selector: num_file + seeders: + selector: seeders + leechers: + selector: leechers + grabs: + selector: times_completed + date: + # "created_at": "2021-10-18T00:34:50.000000Z" is returned by Newtonsoft.Json.Linq as 18/10/2021 00:34:50 + selector: created_at + filters: + - name: append + args: " +00:00" # GMT + - name: dateparse + args: "MM/dd/yyyy HH:mm:ss zzz" + size: + selector: size + downloadvolumefactor: + # api returns 0%, 25%, 50%, 75%, 100% + selector: freeleech + case: + 0%: 1 # not free + 25%: 0.75 + 50%: 0.5 + 75%: 0.25 + 100%: 0 # freeleech + "*": 0 # catch errors + uploadvolumefactor: + # api returns False, True + selector: double_upload + case: + False: 1 # normal + True: 2 # double +# global MR is 0.4 but torrents must be seeded for 3 days regardless of ratio +# minimumratio: +# text: 0.4 + minimumseedtime: + # 3 days (as seconds = 3 x 24 x 60 x 60) + text: 259200 +# json UNIT3D 7.0.3