Torrents/Prowlarr/config/Definitions/magnetdownload.yml
2026-02-02 13:54:24 -06:00

97 lines
1.8 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: magnetdownload
name: MagnetDownload
description: "MagnetDownload is a Public DHT Crawler"
language: en-US
type: public
encoding: UTF-8
links:
- https://www.magnetdownload.com/
caps:
categorymappings:
- {id: Other, cat: Other, desc: Other}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
settings:
- name: info_category_8000
type: info_category_8000
download:
before:
path: api/json_info
inputs:
# /info/14152933
hashes: "{{ re_replace .DownloadUri.AbsolutePath \"/info/\" \"\" }}"
infohash:
usebeforeresponse: true
hash:
selector: :root
filters:
- name: regexp
args: ([A-F|a-f|0-9]{40})
title:
selector: :root
filters:
- name: regexp
args: name\". \"(.+?)\"
- name: validfilename
search:
paths:
# https://www.magnetdownload.com/search/2025/
- path: "search/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}/"
rows:
selector: tr > td.x-item
# filters:
# - name: andmatch
fields:
category:
text: Other
title:
selector: a
attribute: title
details:
selector: a
attribute: href
download:
selector: a
attribute: href
date:
# 2 days, 5 hours
selector: span.ctime
filters:
- name: timeago
files:
selector: div.tail
filters:
- name: regexp
args: Files. (\d+)
size:
selector: div.tail
filters:
- name: regexp
args: size. (.+?) T
grabs:
selector: div.tail
filters:
- name: regexp
args: requests. (\d+)
seeders:
text: 1
leechers:
text: 1
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a