From 2c1961fc0d194975d574e00ba87fda251079d437 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:43:36 +0100 Subject: [PATCH] linkomanija: update indexer (#14795) thanks to the user that sent the invite --- README.md | 2 +- .../Definitions/linkomanija.yml | 23 +++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d93e6db21..bd2dbf4a3 100644 --- a/README.md +++ b/README.md @@ -432,7 +432,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Lesbians4u * Libble * LibraNet (LN) - * LinkoManija [![(invite needed)][inviteneeded]](#) + * LinkoManija * Locadora * LosslessClub [![(invite needed)][inviteneeded]](#) * LST diff --git a/src/Jackett.Common/Definitions/linkomanija.yml b/src/Jackett.Common/Definitions/linkomanija.yml index 232b20e82..0f5735ffe 100644 --- a/src/Jackett.Common/Definitions/linkomanija.yml +++ b/src/Jackett.Common/Definitions/linkomanija.yml @@ -44,8 +44,8 @@ caps: modes: search: [q] - tv-search: [q, season, ep] - movie-search: [q] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] music-search: [q] book-search: [q] @@ -60,10 +60,6 @@ settings: type: checkbox label: Search freeleech only default: false - - name: searchindesc - type: checkbox - label: Search in torrent description (get more results) - default: true login: path: takelogin.php @@ -82,12 +78,15 @@ search: - path: browse.php inputs: $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" - search: "{{ .Keywords }}" + search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" + # 0 active, 1 incldead, 2 dead incldead: 1 freeleech: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" - searchindesc: "{{ .Config.searchindesc }}" + searchindesc: "{{ if .Query.IMDBID }}1{{ else }}{{ end }}" keywordsfilters: + - name: re_replace + args: ["\\.", " "] - name: re_replace args: ["(\\w+)", "+$1"] # prepend + to each word @@ -109,8 +108,12 @@ search: download: selector: a[href^="download.php?id="] attribute: href + genre: + selector: td:nth-child(2) > span + filters: + - name: re_replace + args: [" \\| .+", ""] description: - optional: true selector: td:nth-child(2) > span files: selector: td:nth-child(3) @@ -135,4 +138,6 @@ search: "*": 1 uploadvolumefactor: text: 1 + minimumratio: + text: 0.3 # engine tbd