From 890071c418f76c207a5d570bdc2bfd512c5c4914 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 9 Nov 2021 23:39:32 +0000 Subject: [PATCH] limetorrentsclone: add new indexer. resolves #12532 (#12533) --- README.md | 1 + .../Definitions/limetorrents.yml | 1 + .../Definitions/limetorrentsclone.yml | 125 ++++++++++++++++++ 3 files changed, 127 insertions(+) create mode 100644 src/Jackett.Common/Definitions/limetorrentsclone.yml diff --git a/README.md b/README.md index d6351d7a4..50487c58f 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Legit Torrents * LePorno.info * LimeTorrents + * LimeTorrents clone * LinuxTracker * Mac Torrents Download * MegaPeer diff --git a/src/Jackett.Common/Definitions/limetorrents.yml b/src/Jackett.Common/Definitions/limetorrents.yml index 6b2312f63..89101c698 100644 --- a/src/Jackett.Common/Definitions/limetorrents.yml +++ b/src/Jackett.Common/Definitions/limetorrents.yml @@ -6,6 +6,7 @@ language: en-US type: public encoding: UTF-8 followredirect: true +# changes to this indexer should also be made to limetorrentsclone links: - https://www.limetorrents.pro/ - https://limetorrents.unblockit.bz/ diff --git a/src/Jackett.Common/Definitions/limetorrentsclone.yml b/src/Jackett.Common/Definitions/limetorrentsclone.yml new file mode 100644 index 000000000..ee31c2d3c --- /dev/null +++ b/src/Jackett.Common/Definitions/limetorrentsclone.yml @@ -0,0 +1,125 @@ +--- +id: limetorrentsclone +name: LimeTorrents clone +description: "LimeTorrents clone is a Public LimeTorrents clone for TV / MOVIES / GENERAL" +language: en-US +type: public +encoding: UTF-8 +followredirect: true +# changes to this indexer should also be made to limetorrents +links: + - https://www.limetorrents.to/ + +caps: + categorymappings: + - {id: "TV shows", cat: TV, desc: "TV shows"} + - {id: Movies, cat: Movies, desc: Movies} + - {id: Music, cat: Audio, desc: Music} + - {id: Games, cat: Console, desc: Games} + - {id: Applications, cat: PC/0day, desc: Applications} + - {id: Other, cat: Other, desc: Other} + - {id: Anime, cat: TV/Anime, desc: Anime} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + music-search: [q] + +settings: + - name: downloadlink + type: select + label: Download link + default: "magnet:" + options: + "http://itorrents.org/": iTorrents.org + "magnet:": magnet + - name: downloadlink2 + type: select + label: Download link (fallback) + default: "http://itorrents.org/" + options: + "http://itorrents.org/": iTorrents.org + "magnet:": magnet + - name: info_download + type: info + label: About the Download links + default: As the .torrent download links on this site are known to fail from time to time, you can optionally set as a fallback an automatic alternate link. + - name: sort + type: select + label: Sort requested from site + default: date + options: + date: created + seeds: seeders + size: size + - name: info_8000 + type: info + label: About LimeTorrents Categories + default: LimeTorrents only returns category Other in its Keywordless search results page.
To pass your apps' indexer TEST you will need to include the 8000(Other) category. + +download: + # the .torrent url is on the on the details page + selectors: + - selector: a.csprite_dltorrent[href^="{{ .Config.downloadlink }}"] + attribute: href + - selector: a.csprite_dltorrent[href^="{{ .Config.downloadlink2 }}"] + attribute: href + +search: + paths: + - path: "{{ if .Keywords }}search/all/{{ .Keywords }}/{{ .Config.sort }}/1/{{ else }}/latest100{{ end }}" + keywordsfilters: + - name: re_replace + args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode + + rows: + selector: .table2 > tbody > tr[bgcolor] + + fields: + category: + text: Other + category|noappend: + optional: true + selector: td:nth-child(2) + filters: + - name: split + args: ["-", 1] + - name: replace + args: [" in ", ""] + - name: replace + args: [".", ""] + title: + selector: div.tt-name > a[href^="/"] + attribute: href + filters: + - name: regexp + args: "/(.+?)-torrent-\\d+\\.html" + - name: re_replace + args: ["-", " "] + details: + selector: div.tt-name > a[href^="/"] + attribute: href + download: + selector: div.tt-name > a[href^="/"] + attribute: href + date: + selector: td:nth-child(2) + filters: + - name: split + args: ["-", 0] + - name: replace + args: ["Last Month", "1 month ago"] + - name: replace + args: ["+", " ago"] + size: + selector: td:nth-child(3) + seeders: + selector: .tdseed + leechers: + selector: .tdleech + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a