First pass at an AniRena definition. (#1406)

* Doesn't parse categories or dates.
* There may be a better approach as their RSS feed supports searching.
    *Ex: https://www.anirena.com/rss.php?s=naruto
This commit is contained in:
CodeMonkey 2017-05-22 02:48:26 -04:00 committed by kaso17
parent a4d5c98e12
commit 12d8340114
1 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,50 @@
---
site: aniRena
name: AniRena
language: en-us
type: public
encoding: UTF-8
links:
- https://www.anirena.com/
settings: []
caps:
categorymappings:
# Anime
- {id: 2, cat: TV/Anime, desc: "Anime"}
- {id: 9, cat: TV/Anime, desc: "Anime Music Videos"}
- {id: 10, cat: TV/Anime, desc: "Non-English"}
- {id: 1, cat: TV/Anime, desc: "Raw Animes"}
# Audio
- {id: 8, cat: Audio, desc: "Audio"}
# Literature
- {id: 7, cat: Books, desc: "Manga"}
# Software
- {id: 5, cat: PC/ISO, desc: "DVD/ISO"}
modes:
search: [q]
tv-search: [q, season, ep]
search:
path: "/"
inputs:
s: "{{ .Query.Keywords }}"
rows:
selector: table tbody tr
fields:
title:
selector: .torrents_small_info_data1 div
download:
selector: .torrents_small_info_data2 a[title="Magnet Link"]
attribute: href
size:
selector: .torrents_small_size_data1
seeders:
selector: .torrents_small_seeders_data1 b big
leechers:
selector: .torrents_small_leechers_data1 b big
grabs:
selector: .torrents_small_downloads_data1