slosoul: fix .torrent download.

This commit is contained in:
Garfield69
2021-11-02 20:21:06 +13:00
parent b9728592a9
commit eda424d3f9

View File

@@ -5,6 +5,7 @@ description: "slosoul is a Slovanian Private Torrent Tracker for MOVIES / TV /
language: en-US language: en-US
type: private type: private
encoding: UTF-8 encoding: UTF-8
testlinktorrent: false
links: links:
- https://slosoul.net/ - https://slosoul.net/
@@ -74,7 +75,7 @@ download:
path: takethanks.php path: takethanks.php
method: post method: post
inputs: inputs:
torrentid: "{{ .DownloadUri.Query.id }}" torrentid: "{{ re_replace .DownloadUri.PathAndQuery \".*torrent-details-(\\d+).*\" \"$1\"}}"
selectors: selectors:
- selector: a[href*="download-torrent-"] - selector: a[href*="download-torrent-"]
attribute: href attribute: href
@@ -118,10 +119,10 @@ search:
title: title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}" text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
details: details:
selector: a[href*="details.php?id="] selector: a[href*="torrent-details-"]
attribute: href attribute: href
download: download:
selector: a[href*="details.php?id="] selector: a[href*="torrent-details-"]
attribute: href attribute: href
magnet: magnet:
selector: a[href^="magnet:?xt="] selector: a[href^="magnet:?xt="]