Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add erai-raws #433

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 167 additions & 0 deletions definitions/v7/erai-raws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
---
id: erai-raws
name: Erai-Raws
description: "Erai-Raws is a team release site for Anime subtitles."
language: en-US
type: semi-private
encoding: UTF-8
requestDelay: 2
links:
- https://www.erai-raws.info/
- https://beta.erai-raws.info/

caps:
categorymappings:
- { id: 1, cat: TV/Anime, desc: "Anime" }

Check failure on line 15 in definitions/v7/erai-raws.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

15:8 [braces] too many spaces inside braces

Check failure on line 15 in definitions/v7/erai-raws.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

15:44 [braces] too many spaces inside braces
- { id: 2, cat: Movies/Other, desc: "[Movie or Special Episode]" }

Check failure on line 16 in definitions/v7/erai-raws.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

16:8 [braces] too many spaces inside braces

Check failure on line 16 in definitions/v7/erai-raws.yml

View workflow job for this annotation

GitHub Actions / Lint Yaml

16:69 [braces] too many spaces inside braces

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]

settings:
- name: rss_token
type: password
label: "RSS Token"
- name: resolution
type: select
label: "Resolution"
default: ""
options:
"": "Any"
1080p: "1080p"
720p: "720p"
SD: "SD (480p)"
- name: link_type
type: select
label: "Link Type"
default: magnet
options:
magnet: "Magnet"
torrent: "Torrent"
- name: subtitles
type: select
label: "Subtitles"
default: ""
options:
"": "Any"
us: "English"
br: "Portuguese (Brazil)"
mx: "Spanish (Latin America)"
es: "Spanish"
sa: "Arabic"
fr: "French"
de: "German"
it: "Italian"
ru: "Russian"
jp: "Japanese"
pt: "Portuguese"
pl: "Polish"
nl: "Dutch"
no: "Norwegian"
fi: "Finnish"
tr: "Turkish"
se: "Swedish"
gr: "Greek"
il: "Hebrew"
ro: "Romanian"
id: "Indonesian"
th: "Thai"
kr: "Korean"
dk: "Danish"
cn: "Chinese (Simplified & Traditional)"
bg: "Bulgarian"
vn: "Vietnamese"
in: "Hindi"
lk: "Tamil"
ua: "Ukrainian"
hu: "Hungarian"
cz: "Czech"
hr: "Croatian"
my: "Malaysian"
sk: "Slovakian"
ph: "Filipino"
- name: want_v0
type: checkbox
label: "Want v0?"
default: true
- name: include_subtitles
type: checkbox
label: "Append subtitle details to titles"
default: false

search:
paths:
# All
- path: "/feed/?{{ .Config.rss_token }}{{ if .Config.link_type }}&type={{ .Config.link_type }}{{ else }}{{ end }}{{ if .Config.resolution }}&res={{ .Config.resolution }}{{ else }}{{ end }}{{ if .Config.subtitles }}&subs%5B0%5D={{ .Config.subtitles }}{{ else }}{{ end }}{{ if .Config.want_v0 }}{{ else }}&v0=no{{ end }}"
categories: ["!", "2"]
response:
type: xml

# Movies or Special Episodes
- path: "/specials/feed/?{{ .Config.rss_token }}{{ if .Config.link_type }}&type={{ .Config.link_type }}{{ else }}{{ end }}{{ if .Config.resolution }}&res={{ .Config.resolution }}{{ else }}{{ end }}{{ if .Config.subtitles }}&subs%5B0%5D={{ .Config.subtitles }}{{ else }}{{ end }}{{ if .Config.want_v0 }}{{ else }}&v0=no{{ end }}"
categories: ["2"]
response:
type: xml

rows:
selector: rss > channel > item
filters:
- name: andmatch

fields:
category_optional:
selector: category
optional: true
categorydesc:
text: "{{ if eq .Result.category_optional \"[Movie or Special Episode]\" }}{{ .Result.category_optional }}{{ else }}Anime{{ end }}"
title_resolution:
selector: resolution
title_subtitles:
selector: subtitles
optional: true
filters:
- name: replace
args: ["][", " "]
- name: replace
args: ["[", ""]
- name: replace
args: ["]", ""]
- name: trim
- name: toupper
title:
selector: title
filters:
- name: re_replace
args: ["^\\[.+?\\]", ""]
- name: re_replace
args: [" \\[.+\\]", ""]
- name: trim
- name: append
args: " - {{ .Result.title_resolution }}"
- name: append
args: "{{ if and .Config.include_subtitles .Result.title_subtitles }} JAPANESE [Subs: {{ .Result.title_subtitles }}]{{ else }}{{ end }}"
details:
selector: description > a[href]
attribute: href
download:
selector: link
infohash:
selector: infohash
date:
selector: pubDate
size:
selector: size
seeders:
text: 1
leechers:
text: 1
description:
selector: description
remove: a
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a
Loading