Skip to content

Instantly share code, notes, and snippets.

@elmpp
Created March 6, 2025 08:15
Show Gist options
  • Save elmpp/db28d58b5e92f5a079446434d41584d1 to your computer and use it in GitHub Desktop.
Save elmpp/db28d58b5e92f5a079446434d41584d1 to your computer and use it in GitHub Desktop.
ferrite
{
"name": "kingbri's extensions",
"author": "kingbri",
"sources": [
{
"name": "AnimeTosho",
"version": 3,
"baseUrl": "https://web.archive.org/web/20220810113528/https://animetosho.org",
"rssParser": {
"rssUrl": "https://web.archive.org/web/20220810113528/https://feed.animetosho.org",
"searchUrl": "/api?q={query}",
"items": "item",
"magnetHash": {
"query": "infohash",
"lookupAttribute": "name",
"attribute": "value"
},
"magnetLink": {
"query": "magnetUrl",
"lookupAttribute": "name",
"attribute": "value"
},
"title": {
"query": "title"
},
"size": {
"query": "size",
"lookupAttribute": "name",
"attribute": "value"
},
"sl": {
"seeders": "seeders",
"leechers": "leechers",
"lookupAttribute": "name",
"attribute": "value"
}
},
"htmlParser": {
"searchUrl": "/search?q={query}",
"rows": "#content .home_list_entry",
"magnet": {
"query": ".links > a:nth-child(4)",
"attribute": "href"
},
"title": {
"query": ".link"
},
"size": {
"query": ".size"
},
"sl": {
"combined": ".links > span:nth-child(5)",
"attribute": "title",
"seederRegex": "Seeders:\\s?(\\d+)",
"leecherRegex": "Leechers:\\s?(\\d+)"
}
}
},
{
"name": "Nyaa",
"version": 3,
"baseUrl": "https://web.archive.org/web/20220810113528/https://nyaa.si",
"rssParser": {
"searchUrl": "/?page=rss&q={query}",
"items": "item",
"magnetHash": {
"query": "nyaa:infoHash"
},
"title": {
"query": "title"
},
"size": {
"query": "nyaa:size"
},
"sl": {
"seeders": "nyaa:seeders",
"leechers": "nyaa:leechers"
},
"trackers": [
"https://web.archive.org/web/20220810113528/http://nyaa.tracker.wf:7777/announce",
"udp://open.stealth.si:80/announce",
"udp://tracker.opentrackr.org:1337/announce",
"udp://exodus.desync.com:6969/announce",
"udp://tracker.torrent.eu.org:451/announce"
]
},
"htmlParser": {
"searchUrl": "?q={query}",
"rows": ".torrent-list tbody tr",
"magnet": {
"query": "td:nth-child(3) > a:nth-child(2)",
"attribute": "href"
},
"title": {
"query": "td:nth-child(2) > a:nth-last-child(1)"
},
"size": {
"query": "td:nth-child(4)"
},
"sl": {
"seeders": "td:nth-child(6)",
"leechers": "td:nth-child(7)"
}
}
},
{
"name": "1337x",
"version": 1,
"baseUrl": "https://web.archive.org/web/20220810113528/https://1337x.to",
"htmlParser": {
"searchUrl": "/search/{query}/1/",
"rows": ".table-list tbody tr",
"magnet": {
"externalLinkQuery": ".name a:nth-last-child(1)",
"query": "div.clearfix > ul:nth-child(1) > li:nth-child(1) > a",
"attribute": "href"
},
"title": {
"query": ".name > a:nth-last-child(1)"
},
"size": {
"query": ".size",
"regex": "(.*?B)"
},
"sl": {
"seeders": ".seeds",
"leechers": ".leeches"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment