mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
magic-heaven: support for v8.0
This commit is contained in:
@@ -5,6 +5,7 @@ description: "magic-heaven is a Private Torrent Tracker for MOVIES / TV / GENERA
|
|||||||
language: en-US
|
language: en-US
|
||||||
type: private
|
type: private
|
||||||
encoding: UTF-8
|
encoding: UTF-8
|
||||||
|
testlinktorrent: false
|
||||||
links:
|
links:
|
||||||
- https://magic-heaven.info/
|
- https://magic-heaven.info/
|
||||||
|
|
||||||
@@ -111,6 +112,16 @@ login:
|
|||||||
path: index.php
|
path: index.php
|
||||||
selector: a[href*="/logout.php?logouthash="]
|
selector: a[href*="/logout.php?logouthash="]
|
||||||
|
|
||||||
|
download:
|
||||||
|
before:
|
||||||
|
path: takethanks.php
|
||||||
|
method: post
|
||||||
|
inputs:
|
||||||
|
torrentid: "{{ re_replace .DownloadUri.PathAndQuery \".*torrent-details-(\\d+).*\" \"$1\"}}"
|
||||||
|
selectors:
|
||||||
|
- selector: a[href*="download-torrent-"]
|
||||||
|
attribute: href
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
- path: browse.php
|
- path: browse.php
|
||||||
@@ -131,18 +142,18 @@ search:
|
|||||||
args: ["[^a-zA-Z0-9]+", "%"]
|
args: ["[^a-zA-Z0-9]+", "%"]
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: "table#sortabletable tbody tr:has(a[href*=\"download.php?id=\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
|
selector: "table#sortabletable tbody tr:has(a[href*=\"download-torrent-\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category:
|
||||||
selector: a[href*="browse.php?category="]
|
selector: a[href*="torrent-category-"]
|
||||||
attribute: href
|
attribute: href
|
||||||
filters:
|
filters:
|
||||||
- name: querystring
|
- name: regexp
|
||||||
args: category
|
args: (\d+)
|
||||||
title_default:
|
title_default:
|
||||||
# is often abbreviated
|
# is often abbreviated
|
||||||
selector: a[href*="details.php?id="]
|
selector: a[href*="torrent-details-"]
|
||||||
title_optional:
|
title_optional:
|
||||||
# usually longer than details title
|
# usually longer than details title
|
||||||
selector: div[id^="port-content-"] div
|
selector: div[id^="port-content-"] div
|
||||||
@@ -150,15 +161,11 @@ 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*="download.php?id="]
|
selector: a[href*="torrent-details-"]
|
||||||
attribute: href
|
attribute: href
|
||||||
magnet:
|
|
||||||
selector: a[href^="magnet:?xt="]
|
|
||||||
attribute: href
|
|
||||||
optional: true
|
|
||||||
poster:
|
poster:
|
||||||
selector: div[id^="port-content-"] img
|
selector: div[id^="port-content-"] img
|
||||||
attribute: src
|
attribute: src
|
||||||
@@ -191,4 +198,4 @@ search:
|
|||||||
minimumseedtime:
|
minimumseedtime:
|
||||||
# 1 day (as seconds = 24 x 60 x 60)
|
# 1 day (as seconds = 24 x 60 x 60)
|
||||||
text: 86400
|
text: 86400
|
||||||
# TS Special Edition v.7.5
|
# TS Special Edition v.8.0
|
||||||
|
Reference in New Issue
Block a user