-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtorrentio.yml
103 lines (97 loc) · 3.09 KB
/
torrentio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
id: torrentio
name: Torrentio
description: "Torrentio Indexer"
language: en-US
type: public
encoding: UTF-8
followredirect: false
testlinktorrent: false
requestDelay: 2
links:
- https://torrentio.strem.fun/
caps:
categories:
Movies: Movies
TV: TV
modes:
search: [q]
movie-search: [q, imdbid]
tv-search: [q, imdbid, season, ep]
allowrawsearch: false
settings:
- name: opt_label
type: info
label: Torrentio Options are Required
- name: default_opts
type: text
label: Torrentio Options
default: "providers=yts,eztv,rarbg,1337x,thepiratebay,kickasstorrents,torrentgalaxy,magnetdl,horriblesubs,nyaasi|sort=qualitysize|qualityfilter=480p,scr,cam"
- name: rdkey_label
type: info
label: Real-Debrid API Key Required
- name: rd_key
type: text
label: Real-Debrid API Key
default: ""
search:
headers:
User-Agent: ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0"]
paths:
- path: "{{ if .Query.IMDBID }}{{ .Config.default_opts }}|realdebrid={{ .Config.rd_key }}|debridoptions=nocatalog/stream/movie/{{ .Query.IMDBID }}.json{{ else }}providers=rarbg,1337x|sort=size|qualityfilter=brremux,hdrall,dolbyvision,4k,720p,480p,other,scr,cam,unknown|sort=size|limit=1|realdebrid={{ .Config.rd_key }}|debridoptions=nocatalog/stream/movie/tt0137523.json{{ end }}"
method: get
response:
type: json
noResultsMessage: '"streams": []'
categories: [Movies]
- path: "{{ if .Query.IMDBIDShort }}{{ .Config.default_opts }}{{else}}providers=rarbg,1337x|sort=size|qualityfilter=brremux,hdrall,dolbyvision,4k,720p,480p,other,scr,cam,unknown|limit=1{{ end }}|realdebrid={{ .Config.rd_key }}|debridoptions=nocatalog/stream/series/tt{{ if .Query.IMDBIDShort }}{{ .Query.IMDBIDShort }}{{ else }}1632701{{ end }}:{{ if .Query.Season }}{{ .Query.Season }}{{ else }}1{{ end }}:{{ if .Query.Ep }}{{ .Query.Ep }}{{ else }}1{{ end }}.json"
method: get
response:
type: json
noResultsMessage: '"streams": []'
categories: [TV]
rows:
selector: streams
missingAttributeEqualsNoResults: true
fields:
title:
selector: title
filters:
- name: split
args: ["\n", 0]
year:
selector: title
filters:
- name: regexp
args: "(\\b(19|20)\\d\\d\\b)"
category_is_tv_show:
text: "{{ .Result.title }}"
filters:
- name: regexp
args: "\\b(S\\d+(?:E\\d+)?)\\b"
category:
text: "{{ if .Result.category_is_tv_show }}TV{{ else }}Movies{{ end }}"
infohash:
selector: url
filters:
- name: split
args: ["/", 5]
size:
selector: title
filters:
- name: regexp
args: "\\b(\\d+(?:\\.\\d+)? [MG]B)\\b"
seeders:
selector: title
filters:
- name: regexp
args: "(\\uD83D\\uDC64 \\d+)"
date:
text: "Apr. 18th '11"
filters:
- name: re_replace
args: ["st|nd|rd|th", ""]
- name: replace
args: ["'", ""]
- name: dateparse
args: "MMM. d yy"