kisssub: conform to yaml standards by avoiding duplicate keys

also standardized YML language on `{ISO 639-1}-{ISO 3166-1 alpha-2}`
This commit is contained in:
ilike2burnthing 2021-10-30 23:13:08 +01:00 committed by GitHub
parent dfff696b32
commit 8026960496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@
id: kisssub id: kisssub
name: KissSub name: KissSub
description: "KissSub is a CHINESE Public torrent index" description: "KissSub is a CHINESE Public torrent index"
language: zh-cn language: zh-CN
type: public type: public
encoding: UTF-8 encoding: UTF-8
links: links:
@ -48,7 +48,7 @@ search:
filters: filters:
- name: regexp - name: regexp
args: show-([0-9A-Fa-f]{40}) args: show-([0-9A-Fa-f]{40})
date: date_today:
# 今天 00:35 (Today) # 今天 00:35 (Today)
optional: true optional: true
selector: td:nth-child(1):contains("昨天") selector: td:nth-child(1):contains("昨天")
@ -58,7 +58,7 @@ search:
- name: append - name: append
args: " +08:00" # CST args: " +08:00" # CST
- name: fuzzytime - name: fuzzytime
date: date_yday:
# 昨天 22:50 (Yesterday) # 昨天 22:50 (Yesterday)
optional: true optional: true
selector: td:nth-child(1):contains("今天") selector: td:nth-child(1):contains("今天")
@ -68,7 +68,7 @@ search:
- name: append - name: append
args: " +08:00" # CST args: " +08:00" # CST
- name: fuzzytime - name: fuzzytime
date: date_year:
# 2020/12/24 # 2020/12/24
optional: true optional: true
selector: td:nth-child(1):not(:contains("昨天")):not(:contains("今天")) selector: td:nth-child(1):not(:contains("昨天")):not(:contains("今天"))
@ -77,6 +77,8 @@ search:
args: " +08:00" # CST args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006/01/02 -07:00" args: "2006/01/02 -07:00"
date:
text: "{{ if or .Result.date_year .Result.date_today .Result.date_yday }}{{ or .Result.date_year .Result.date_today .Result.date_yday }}{{ else }}now{{ end }}"
size: size:
selector: td:nth-child(4) selector: td:nth-child(4)
seeders: seeders: