Last active
February 10, 2022 07:39
-
-
Save oglops/51d00f62395e83ce6c5e9506c5594b2d to your computer and use it in GitHub Desktop.
chd experiment
This file contains 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
chd: | |
disable: [ seen, seen_info_hash, retry_failed, history ] | |
html_rss: | |
url: xxx | |
cookie: xxx | |
params: '&passkey=xxx' | |
root_element_selector: 'table.torrents > tbody > tr:not(:first-child)' | |
fields: | |
title: | |
element_selector: 'a[href*="details.php"]' | |
attribute: title | |
url: | |
element_selector: 'a[href*="download.php"]' | |
attribute: href | |
promotion: | |
element_selector: 'td[class="embedded"]> img[class="pro_free"]' | |
attribute: alt | |
progress: | |
element_selector: 'td[class="rowfollow"]:last-child' | |
attribute: textContent | |
hr: | |
element_selector: 'table.torrents > tbody > tr div[class="circle-text"]' | |
attribute: textContent | |
seeder: | |
element_selector: 'table.torrents > tbody > tr > td[class="rowfollow"]:nth-child(6) > b > a' | |
attribute: textContent | |
leecher: | |
element_selector: 'table.torrents > tbody > tr > td[class="rowfollow"]:nth-child(7) > b > a' | |
attribute: textContent | |
no_entries_ok: yes | |
# limit_new: 15 | |
accept_all: true | |
if: | |
- promotion in ['Free']: accept | |
# - seeder|int > 10: reject | |
- "progress and progress!='--'": reject | |
- hr!='': | |
set: | |
tags: 'chd-{{ hr[-1] }}' | |
# - hr=='': reject | |
# content_size: | |
# strict: true | |
# max: 50000 | |
# for testing | |
qbittorrent_mod: | |
action: | |
add: | |
# paused: 'true' | |
category: chd | |
template: | |
- qbittorrent_base_template | |
- qbittorrent_add_template | |
# exec: echo "crap {{title}} {{tag}}" | |
delete_chd: | |
priority: 3 | |
disable: [ seen, seen_info_hash, retry_failed, history ] | |
if: | |
# - "qbittorrent_state not in ['downloading', 'uploading']": reject | |
- qbittorrent_category in ['chd']: | |
if: | |
- "'keep' in qbittorrent_tags": reject | |
- qbittorrent_progress != 1: reject | |
- "'chd-3' in qbittorrent_tags": | |
if: | |
- qbittorrent_seeding_time > 3*24*60*60 + 86400: accept | |
- "'chd-5' in qbittorrent_tags": | |
if: | |
- qbittorrent_seeding_time > 5*24*60*60 + 86400: accept | |
# exec: echo "crap {{title}}" | |
template: | |
- from_qbittorrent_template | |
# - qbittorrent_base_template | |
- qbittorrent_pause_template | |
# - qbittorrent_delete_keeper_template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment