Jackett/src/Jackett.Common/Definitions/yts.yml

144 lines
3.8 KiB
YAML
Raw Normal View History

2021-10-21 17:35:28 +00:00
---
id: yts
name: YTS
description: "YTS is a Public torrent site specialising in HD movies of small size"
type: public
2023-02-19 17:15:42 +00:00
language: en-US
2021-10-21 17:35:28 +00:00
encoding: UTF-8
requestDelay: 2.5 # 2.5 requests per second (2 causes problems)
links:
# dont forget to update the details, download and poster replace args
2021-10-21 17:35:28 +00:00
- https://yts.mx/
2023-05-07 09:47:03 +00:00
- https://yts.unblockit.asia/
2021-10-21 17:35:28 +00:00
- https://yts.unblockninja.com/
2023-05-02 03:15:01 +00:00
- https://yts.mrunblock.life/
2023-05-02 03:26:10 +00:00
- https://yts.nocensor.click/
2021-10-21 17:35:28 +00:00
legacylinks:
2022-10-19 21:35:43 +00:00
- https://yts.ag/
- https://yts.am/
- https://yts.lt/
- https://yts.unblockit.cam/
- https://yts.nocensor.biz/
- https://yts.unblockit.day/
2022-05-07 20:21:01 +00:00
- https://yts.unblockit.llc/
2022-06-07 19:34:13 +00:00
- https://yts.unblockit.blue/
2022-07-07 19:22:52 +00:00
- https://yts.unblockit.name/
2022-07-18 03:50:41 +00:00
- https://yts.nocensor.sbs/
2022-08-07 09:06:25 +00:00
- https://yts.unblockit.ist/
2022-09-07 19:10:47 +00:00
- https://yts.unblockit.bet/
2022-10-08 16:59:53 +00:00
- https://yts.unblockit.cat/
2022-11-07 17:02:52 +00:00
- https://yts.unblockit.nz/
- https://yts.nocensor.world/
2022-12-07 17:00:49 +00:00
- https://yts.unblockit.page/
2023-01-06 21:32:14 +00:00
- https://yts.unblockit.pet/
2023-01-15 01:26:26 +00:00
- https://yts.nocensor.lol/
2023-02-07 17:49:12 +00:00
- https://yts.unblockit.ink/
- https://yts.nocensor.art/
2023-03-08 07:48:19 +00:00
- https://yts.unblockit.bio/
- https://yts.unblockit.boo/
2023-05-02 03:15:01 +00:00
- https://yts.mrunblock.guru/
2023-05-07 09:47:03 +00:00
- https://yts.unblockit.click/
2021-10-21 17:35:28 +00:00
caps:
categorymappings:
# note: the API does not support searching with categories, so these are dummy ones for torznab compatibility
# we map these newznab cats with the returned quality value in the releases routine.
- {id: 45, cat: Movies/HD, desc: "Movies/x264/720p"}
- {id: 44, cat: Movies/HD, desc: "Movies/x264/1080p"}
- {id: 46, cat: Movies/UHD, desc: "Movies/x264/2160p"}
- {id: 47, cat: Movies/3D, desc: "Movies/x264/3D"}
modes:
search: [q]
movie-search: [q, imdbid]
settings: []
search:
paths:
- path: api/v2/list_movies.json
response:
type: json
2021-10-21 17:35:28 +00:00
inputs:
# ignore ' (e.g. search for america's Next Top Model)
2023-02-19 17:15:42 +00:00
query_term: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
2021-10-21 17:35:28 +00:00
# without this the API sometimes returns nothing
limit: 50
sort: date_added
2023-02-19 17:15:42 +00:00
keywordsfilters:
- name: re_replace
args: ["[^\\w]+", " "]
2021-10-21 17:35:28 +00:00
rows:
selector: data.movies
attribute: torrents
multiple: true
# bug at YTS can return movie_count > 0 and no movie torrents #12598
missingAttributeEqualsNoResults: true
2021-10-21 17:35:28 +00:00
count:
selector: data.movie_count
fields:
2022-07-19 07:18:10 +00:00
_quality:
2021-10-21 17:35:28 +00:00
selector: quality
category:
selector: quality
case:
"720p": 45
"1080p": 44
"2160p": 46
"3D": 47
"*": 45
2022-07-19 07:18:10 +00:00
_type:
2021-10-21 17:35:28 +00:00
selector: type
year:
2021-10-21 17:35:28 +00:00
selector: ..year
2023-02-19 17:15:42 +00:00
title_default:
2021-10-21 17:35:28 +00:00
selector: ..title
2023-02-19 17:15:42 +00:00
filters:
- name: append
args: " ({{ .Result.year }})"
2023-03-20 19:18:43 +00:00
title:
2023-02-19 17:15:42 +00:00
selector: ..title_long
optional: true
2023-03-20 19:18:43 +00:00
default: "{{ .Result.title_default }}"
2021-10-21 17:35:28 +00:00
filters:
- name: replace
args: [":", ""]
# append type: BRRip or WEBRip, resolves #3558 via #4577
- name: append
2023-02-19 17:15:42 +00:00
args: " {{ .Result._quality }} {{ if eq .Result._type \"web\" }}WEBRip{{ else }}BRRip{{ end }} -YTS"
2021-10-21 17:35:28 +00:00
details:
selector: ..url
filters:
2023-02-19 17:15:42 +00:00
- name: re_replace
args: ["^https?:\\/\\/yts\\.mx\\/", "{{ .Config.sitelink }}"] # fix for 12494
2021-10-21 17:35:28 +00:00
download:
selector: url
filters:
2023-02-19 17:15:42 +00:00
- name: re_replace
args: ["^https?:\\/\\/yts\\.mx\\/", "{{ .Config.sitelink }}"] # fix for 12494
2021-10-21 17:35:28 +00:00
infohash:
selector: hash
poster:
selector: ..large_cover_image
filters:
2023-02-19 17:15:42 +00:00
- name: re_replace
args: ["^https?:\\/\\/yts\\.mx\\/", "{{ .Config.sitelink }}"] # fix for 12494
imdbid:
2021-10-21 17:35:28 +00:00
selector: ..imdb_code
date:
selector: date_uploaded_unix
size:
selector: size_bytes
seeders:
selector: seeds
leechers:
selector: peers
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# json api v2