Last active
April 4, 2025 10:09
-
-
Save LimeDrive/31090fb62f5893503e53d39be3d563f8 to your computer and use it in GitHub Desktop.
indexertest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: yggapi | |
name: Ygg API | |
description: "Indexeur non officiel pour ygg.re" | |
language: fr-FR | |
type: private | |
encoding: UTF-8 | |
followredirect: true | |
testlinktorrent: false | |
links: | |
- https://yggapi.eu | |
settings: | |
- name: passkey | |
type: password | |
label: Passkey YGG | |
required: true | |
caps: | |
categories: | |
2178: [2000] # Films d'animation | |
2179: [5070] # Séries d'animation / Mangas | |
2183: [2000] # Films | |
2184: [5000] # Séries | |
modes: | |
search: [q] | |
tv-search: [q, season, ep] | |
movie-search: [q, year] | |
allowrawsearch: true | |
search: | |
paths: | |
- path: "/torrents" | |
method: get | |
response: | |
type: json | |
keywordsfilters: | |
- name: re_replace | |
args: ["[\\[\\]()]", ""] # Remove brackets | |
inputs: | |
q: "{{ if .Query.Keywords }}{{ .Query.Keywords }}{{else}}{{ end }}" | |
category_id: "{{ range .Categories }}{{.}}{{end}}" | |
page: 1 | |
per_page: 100 | |
order_by: "uploaded_at" | |
rows: | |
selector: $ | |
missingAttributeEqualsNoResults: true | |
fields: | |
title: | |
selector: title | |
category: | |
selector: category_id | |
year: | |
selector: title | |
filters: | |
- name: regexp | |
args: "(\\b(19|20)\\d{2}\\b)" | |
grabs: | |
selector: downloads | |
optional: true | |
default: 0 | |
details: | |
selector: id | |
filters: | |
- name: prepend | |
args: "https://yggapi.eu/torrent/" | |
download: | |
selector: id | |
filters: | |
- name: prepend | |
args: "https://yggapi.eu/torrent/" | |
- name: append | |
args: "/download?passkey={{ .Config.passkey }}" | |
size: | |
selector: size | |
quality: | |
selector: title | |
filters: | |
- name: regexp | |
args: "\\b(2160p|1080p|720p|480p)\\b" | |
seeders: | |
selector: seeders | |
leechers: | |
selector: leechers | |
date: | |
selector: uploaded_at | |
filters: | |
- name: dateparse | |
args: "2006-01-02T15:04:05-07:00" | |
downloadvolumefactor: | |
text: "1" | |
uploadvolumefactor: | |
text: "1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment