Fix prowlarr indexer yaml definitions (#533)

This commit is contained in:
Vijay
2025-07-11 08:52:28 +05:30
committed by GitHub
parent 067aac0a91
commit dcf33413fa
+13 -11
View File
@@ -24,11 +24,7 @@ settings:
- name: mediafusion_note - name: mediafusion_note
type: info type: info
label: MediaFusion Note label: MediaFusion Note
default: "Please enter the mediafusion addon url below (ends with manifest.json)" default: "Please update the original link with your self-hosted one to avoid putting load on the main instance."
- name: addon_url
type: text
label: Addon URL
default: ""
- name: validate_imdb_movie - name: validate_imdb_movie
type: text type: text
label: IMDB ID of the movie for Radarr validation (required) label: IMDB ID of the movie for Radarr validation (required)
@@ -45,13 +41,13 @@ search:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0",
] ]
paths: paths:
- path: "{{ re_replace .Config.addon_url \"^.*\\/(.+?)\\/manifest\\.json$\" \"$1\" }}/stream/movie/{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Config.validate_imdb_movie }}{{ end }}.json" - path: "stream/movie/{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Config.validate_imdb_movie }}{{ end }}.json"
method: get method: get
response: response:
type: json type: json
noResultsMessage: '"streams": []' noResultsMessage: '"streams": []'
categories: [Movies] categories: [Movies]
- path: "{{ re_replace .Config.addon_url \"^.*\\/(.+?)\\/manifest\\.json$\" \"$1\" }}/stream/series/{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Config.validate_imdb_tv }}{{ end }}:{{ if .Query.Season }}{{ .Query.Season }}{{ else }}1{{ end }}:{{ if .Query.Ep }}{{ .Query.Ep }}{{ else }}1{{ end }}.json" - path: "stream/series/{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Config.validate_imdb_tv }}{{ end }}:{{ if .Query.Season }}{{ .Query.Season }}{{ else }}1{{ end }}:{{ if .Query.Ep }}{{ .Query.Ep }}{{ else }}1{{ end }}.json"
method: get method: get
response: response:
type: json type: json
@@ -82,13 +78,19 @@ search:
text: "{{ if .Result.category_is_tv_show }}TV{{ else }}Movies{{ end }}" text: "{{ if .Result.category_is_tv_show }}TV{{ else }}Movies{{ end }}"
infohash: infohash:
selector: infoHash selector: infoHash
magnet:
selector: infoHash
filters:
- name: prepend
args: "magnet:?xt=urn:btih:"
size: size:
selector: description selector: description
filters: filters:
- name: regexp - name: regexp
args: "\\b(\\d+(?:\\.\\d+)? [MG]B)\\b" args: "\\b(\\d+(?:\\.\\d+)? [MG]B)\\b"
seeders: seeders:
selector: description text: "1"
filters: leechers:
- name: regexp text: "1"
args: "(?<=👤 )(\\d+)" details:
text: "{{ .Config.sitelink }}{{ if .Result.category_is_tv_show }}/stream/series/{{ .Query.IMDBID }}:{{ .Query.Season}}:{{ .Query.Ep }}.json{{ else }}/stream/movie/{{ .Query.IMDBID }}.json{{ end }}"