1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-16 08:49:58 +00:00

Updated Definition format (markdown)

garfield69 2024-03-18 16:20:36 +13:00
parent 3e9706ee6c
commit 93804b6704

@ -443,9 +443,8 @@ search:
# [REQUIRED] list of attributes which are extracted for each row
fields:
# [OPTIONAL] tracker category id (id field from caps/categorymappings)
# While not required, it is usual to return a category for Torznab apps to use,
# so if the site does not provide one in its results, then use category Other.
# [REQUIRED] tracker category id (id field from caps/categorymappings)
# if the site does not provide one in its results then use category Other.
category:
selector: a[href^="browse.php?cat="]
attribute: href
@ -460,20 +459,21 @@ search:
# [REQUIRED] the title of the torrent
title:
selector: a[href^="details.php?id="]
# [REQUIRED] link to the site's details page for the torrent
# [OPTIONAL] link to the site's details page for the torrent
# If not available from the response then its usual to use the .Config.sitelink as a default.
details:
selector: a[href^="details.php?id="]
attribute: href
# [OPTIONAL] download link for the torrent file. See the download block documentation for special handling.
# if a download link is not available you should provide a magnet URI, or if neither is available an infohash.
# [REQUIRED] download link for the torrent file. See the download block documentation for special handling if needed.
# If a download link is not available you should provide a magnet URI, or if neither is available an infohash.
download:
selector: a[href^="download.php?torrent="]
attribute: href
# [OPTIONAL] magnet link
# [ALTERNATIVE] magnet link
magnet:
selector: a[href^="magnet:"]
attribute: href
# [OPTIONAL] Loads the infohash, and for Pubic or Semi-Private Indexers auto-generates a magnet URI
# [ALTERNATIVE] Loads the infohash, and for Pubic or Semi-Private Indexers auto-generates a magnet URI
# When neither the .torrent link or a magnet URI is available, use the infohash statement to auto-generate a
# magnet URI from an infohash. The magnet's &dn= will be loaded from the .Result.title, and a set of ten of
# the currently most useful trackers will be added for the &tr= sequence.
@ -532,7 +532,8 @@ search:
doubanid:
selector: a[href*="movie.douban.com/subject/"]
attribute: href
# [OPTIONAL] publish date (if the site does not provide a date for all results, then a default of "now" is preferred)
# [REQUIRED] publish date (if the site does not provide a date for all results, then a default of "now" should be used)
# if the site can only provide a rows: dateheaders: selector then you can omit the date field.
date:
selector: td:nth-child(4) > span[title]
attribute: title
@ -542,8 +543,8 @@ search:
args: " +08:00"
- name: dateparse
args: "yyyy-MM-ss HH:mm:ss zzz"
# [OPTIONAL] size of the torrent (units are handled automatically). if the site does not provide a size for all
# results, then a default of "512 MB" is preferred. If the site occasionally has a missing size then "0 B" is usual.
# [REQUIRED] size of the torrent (units are handled automatically). if the site does not provide a size for all
# results, then provide a default of "512 MB". If the site occasionally has a missing size then "0 B" is usual.
# Side note: For Sites using European numbering schemes (1,024.4MB or 1.024,4MB etc.) there is no need to remove
# commas or extra dots as these are automatically dealt with.
size:
@ -558,12 +559,12 @@ search:
- name: regexp
# get the first number from the result
args: (\d+)
# [OPTIONAL] number of seeders (if the site does not provide seeders for all results,
# then a default of "1" is preferred).
# [REQUIRED] number of seeders (if the site does not provide seeders for all results,
# then provide a default of "1").
seeders:
selector: td:nth-child(9)
# [OPTIONAL] number of leechers (if the site does not provide leechers for all results,
# then a default of "1" is preferred).
# then provide a default of "1").
leechers:
selector: td:nth-child(10)
# [OPTIONAL] genre. A list of one or more genre categories.
@ -774,7 +775,7 @@ search:
args: ".{{ .Result.year }}.{{ .Result._quality }}.{{ if eq .Result._type \"web\" }}WEBRip{{ else }}BRRip{{ end }}-YTS"
_id:
selector: id
# [REQUIRED] link to the site's details page for the torrent
# [OPTIONAL] link to the site's details page for the torrent
# If not available from the response then its usual to use the .Config.sitelink as a default.
details:
text: "{{ .Config.sitelink }}browse/{{ .Result._id }}"
@ -782,14 +783,14 @@ search:
text: "{{ .Config.apikey }}"
filters:
- name: urlencode
# [OPTIONAL] download link for the torrent file.
# [REQUIRED] download link for the torrent file.
# if a download link is not available you should provide a magnet URI, or if neither is available an infohash.
download:
text: "{{ .Config.sitelink }}api/v1/torrents/{{ .Result._id }}/torrent?key={{ .Result.apikey }}"
# [OPTIONAL] magnet link
# [ALTERNATIVE] magnet link
magnet:
selector: magnet_uri
# [OPTIONAL] Loads the infohash, and for Public and Semi-Private Indexers auto-generates a magnet URI
# [ALTERNATIVE] Loads the infohash, and for Public and Semi-Private Indexers auto-generates a magnet URI
# When neither the .torrent link or a magnet URI is available, use the infohash statement to auto-generate a
# magnet URI from an infohash. The magnet's &dn= will be loaded from the .Result.title, and a set of ten
# currently most useful trackers will be added for the &tr= sequence.
@ -835,11 +836,11 @@ search:
# If the selector does not match it is ignored.
doubanid:
selector: ..douban_id
# [OPTIONAL] publish date (if the site does not provide a date for all results, then "now" is preferred)
# [REQUIRED] publish date (if the site does not provide a date for all results, then "now" is preferred)
date:
selector: ..date_uploaded_unix
# [OPTIONAL] size of the torrent (units are handled automatically). if the site does not provide a size for all
# results, then a default of "512 MB" is preferred. If the site occasionally has a missing size then "0 B" is usual.
# [REQUIRED] size of the torrent (units are handled automatically). if the site does not provide a size for all
# results, then provide a default of "512 MB". If the site occasionally has a missing size then "0 B" is usual.
# Side note: For Sites using European numbering schemes (1,024.4MB or 1.024,4MB etc.) there is no need to remove
# commas or extra dots as these are automatically dealt with.
size:
@ -850,12 +851,12 @@ search:
# [OPTIONAL] number of completed downloads
grabs:
selector: completed
# [OPTIONAL] number of seeders (if the site does not provide seeders for all results,
# then a default of "1" is preferred).
# [REQUIRED] number of seeders (if the site does not provide seeders for all results,
# then provide a default of "1").
seeders:
selector: seeds
# [OPTIONAL] number of leechers (if the site does not provide leechers for all results,
# then a default of "1" is preferred).
# then provide a default of "1").
leechers:
selector: peers
# [OPTIONAL] genre. A list of one or more genre categories.