Skip to content

Commit

Permalink
assorted x* yml: code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Oct 24, 2020
1 parent 80cb2be commit 55b8a91
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 28 deletions.
24 changes: 6 additions & 18 deletions src/Jackett.Common/Definitions/x-ite.me.yml
@@ -1,9 +1,4 @@
---
# By LA5T for https://x-ite.me (25.07.2018 17:34 UTC+2)
#
# TODO:
# x-ite.me doesn't support altering the number of results, therefore only the 20 first results are shown (this is hardcoded), Jackett may support pagination in the future tho
#
id: xiteme
name: x-ite.me
description: "Tracker for LGBTQ movies, TV, books, magazines, anime, PC and XXX."
Expand All @@ -20,14 +15,6 @@ settings:
- name: password
type: password
label: Password
- name: incldead
type: select
label: Status
default: 1
options:
0: Active
1: "Active and Inactive"
2: Inactive

caps:
categorymappings:
Expand Down Expand Up @@ -101,7 +88,6 @@ caps:
movie-search: [q]
book-search: [q]


login:
method: post
path: account-login.php
Expand All @@ -123,9 +109,11 @@ search:
inputs:
$raw: "{{range .Categories}}&c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
incldead: "{{ .Config.incldead }}"
incldead: 1

rows:
selector: tr.t-row

fields:
title:
selector: td:nth-child(2) > a:nth-child(1) > b:nth-child(1)
Expand Down Expand Up @@ -158,13 +146,13 @@ search:
- name: re_replace
args: ["(\\d{2})-(\\d{2})-(\\d{4}) ((?:\\d{2}:?){3})", "$3-$2-$1 $4"]
- name: append
args: " +01:00"
args: " +01:00" # CET
- name: dateparse
args: "2006-01-02 15:04:05 -07:00"
downloadvolumefactor:
case:
"td:nth-child(2) > a:nth-child(1) > span:nth-child(2)": 0
"*": 1
uploadvolumefactor:
case:
"*": 1
text: 1
# engine tbd
16 changes: 8 additions & 8 deletions src/Jackett.Common/Definitions/xbytes2.yml
Expand Up @@ -60,19 +60,19 @@ settings:
- name: sort
type: select
label: Sort requested from site
default: "3"
default: 3
options:
"3": "created"
"5": "seeders"
"4": "size"
"2": "title"
3: created
5: seeders
4: size
2: title
- name: type
type: select
label: Order requested from site
default: "2"
default: 2
options:
"2": "desc"
"1": "asc"
2: desc
1: asc
- name: info
type: info
label: Results Per Page
Expand Down
4 changes: 2 additions & 2 deletions src/Jackett.Common/Definitions/xfsub.yml
Expand Up @@ -82,15 +82,15 @@ search:
- name: replace
args: ["前天", "Yesterday"] # dont have a day before yesterday time do we?
- name: append
args: " +08:00"
args: " +08:00" # CST
- name: fuzzytime
date:
# 03/02 12:44 (no year, so big problem for older dates which will appear as "0m ago" because 12/24 is in the future if today is 04/28)
selector: td:last-child:not(:contains("天"))
optional: true
filters:
- name: append
args: " +08:00"
args: " +08:00" # CST
- name: dateparse
args: "01/02 15:04 -07:00"
downloadvolumefactor:
Expand Down

0 comments on commit 55b8a91

Please sign in to comment.