Skip to content

Instantly share code, notes, and snippets.

@mikeoscar2006
Created September 4, 2021 18:49
Show Gist options
  • Save mikeoscar2006/6cffb1a83c994d468d10b8419f35b7a3 to your computer and use it in GitHub Desktop.
Save mikeoscar2006/6cffb1a83c994d468d10b8419f35b7a3 to your computer and use it in GitHub Desktop.
Modified TorrentV Definition with Infohash
---
id: torrentv
name: Torrentv
description: "Torrentv is a Public tracker for MOVIES"
language: en-us
type: public
encoding: UTF-8
links:
- https://torrentv.org/
legacylinks:
- http://torrentv.org/ # site forces https
caps:
categories:
1: Movies
modes:
search: [q]
movie-search: [q]
settings:
- name: sort
type: select
label: Sort requested from site (Applies only to Keyword searches)
default: td-1
options:
td-1: created
s-1: seeders
na-1: title
download:
infohash:
hash:
selector: a[href^="magnet:?xt="]
attribute: href
filters:
- name: querystring
args: xt
- name: replace
args: ["urn:btih:", ""]
title:
selector: meta[property="og:title"]
attribute: content
filters:
- name: trim
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href
filters:
- name: querystring
args: xt
- name: replace
args: ["urn:btih:", ""]
search:
paths:
- path: "{{ if .Keywords }}search/{{ .Keywords }}/{{ .Config.sort }}/{{ else }}new.html{{ end }}"
rows:
selector: div.grid_4
fields:
category:
text: 1
title:
selector: h3 a
details:
selector: h3 a
attribute: href
download:
selector: h3 a
attribute: href
poster:
selector: img[src^="/pic/"]
attribute: src
subcat:
selector: div.box ul li:first-child
year:
selector: div.box ul li:contains("Year:")
quality:
selector: div.box ul li:contains("Quality:")
description:
text: "{{ .Result.subcat }} {{ .Result.year }} {{ .Result.quality }}"
date:
text: now
size:
selector: div.box ul li:contains("Size:")
filters:
- name: replace
args: ["Size:", ""]
seeders:
selector: div.box ul li:contains("Seed/DL:")
filters:
- name: replace
args: ["Seed/DL:", ""]
- name: split
args: ["/", 0]
leechers:
selector: div.box ul li:contains("Seed/DL:")
filters:
- name: replace
args: ["Seed/DL:", ""]
- name: split
args: ["/", 1]
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment