oldgreektracker: change to HTTPS and update layout

This commit is contained in:
ilike2burnthing
2024-03-17 01:42:12 +00:00
committed by GitHub
parent d3d4bbada6
commit cb7ae0cbe3

View File

@@ -6,6 +6,8 @@ language: el-GR
type: private type: private
encoding: UTF-8 encoding: UTF-8
links: links:
- https://oldgreektracker.xyz/
legacylinks:
- http://oldgreektracker.xyz/ - http://oldgreektracker.xyz/
caps: caps:
@@ -134,6 +136,16 @@ login:
path: index.php path: index.php
selector: a[href*="/logout.php?logouthash="] selector: a[href*="/logout.php?logouthash="]
download:
before:
path: takethanks.php
method: post
inputs:
torrentid: "{{ .DownloadUri.Query.id }}"
selectors:
- selector: a[href*="download.php?id="]
attribute: href
search: search:
paths: paths:
- path: browse.php - path: browse.php
@@ -154,28 +166,28 @@ search:
order: "{{ if .Config.freeleech }}asc{{ else }}{{ .Config.type }}{{ end }}" order: "{{ if .Config.freeleech }}asc{{ else }}{{ .Config.type }}{{ end }}"
rows: rows:
selector: "table.sortable tr:has(a[href*=\"/download-torrent-\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}" selector: "table.sortable tr:has(a[href*=\"/download.php?id=\"]){{ if .Config.freeleech }}:has(img[src$=\"/freedownload.gif\"]){{ else }}{{ end }}"
fields: fields:
category: category:
selector: a[href*="/torrent-category-"] selector: a[href*="/browse.php?category="]
attribute: href attribute: href
filters: filters:
- name: regexp - name: querystring
args: /torrent-category-(.+?)/ args: category
title_default: title_default:
# is usually abbreaviated # is usually abbreaviated
selector: a[href*="/torrent-details-"] selector: a[href*="/details.php?id="]
title: title:
# while still abbreviated, is usually longer than the default # while still abbreviated, is usually longer than the default
selector: div.tooltip-content div selector: div.tooltip-content div
optional: true optional: true
default: "{{ .Result.title_default }}" default: "{{ .Result.title_default }}"
details: details:
selector: a[href*="/torrent-details-"] selector: a[href*="/details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href*="/download-torrent-"] selector: a[href*="/details.php?id="]
attribute: href attribute: href
magnet: magnet:
selector: a[href^="magnet:?xt="] selector: a[href^="magnet:?xt="]
@@ -184,11 +196,15 @@ search:
selector: img[src*="/torrents/images/"] selector: img[src*="/torrents/images/"]
attribute: src attribute: src
date: date:
selector: td:nth-child(2) > div:last-child selector: td:nth-child(2)
# auto adjusted by site account profile # auto adjusted by site account profile
filters: filters:
- name: regexp
args: "(\\d{1,2}(?:st|nd|rd|th):\\w{3,9}:\\d{4} \\d{2}:\\d{2})"
- name: re_replace
args: ["^(\\d{1,2})(?:st|nd|rd|th):", "$1:"]
- name: dateparse - name: dateparse
args: "dd-MM-yyyy HH:mm" args: "d:MMMM:yyyy HH:mm"
size: size:
selector: td:nth-last-child(5) selector: td:nth-last-child(5)
grabs: grabs: