Skip to content

Commit

Permalink
Merge pull request #65 from jackloves111/patch-3
Browse files Browse the repository at this point in the history
Create 憨憨(hhan.club).json
  • Loading branch information
linyuan0213 authored Dec 20, 2024
2 parents 1a33fed + 2015215 commit 8e2fcdb
Showing 1 changed file with 183 additions and 0 deletions.
183 changes: 183 additions & 0 deletions config/site_manage/sites/憨憨(hhan.club).json
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
{
"id": "hhanclub",
"name": "憨憨",
"domain": "https://hhan.club/",
"encoding": "UTF-8",
"public": false,
"search": {
"paths": [
{
"path": "torrents.php",
"method": "get"
}
],
"params": {
"search": "{keyword}"
},
"batch": {
"delimiter": " ",
"space_replace": "_"
}
},
"category": {
"param": "cat[]",
"movie": [
{
"id": 401,
"cat": "Movies",
"desc": "Movies/电影"
}
],
"tv": [
{
"id": 404,
"cat": "TV/Documentary",
"desc": "Documentaries/纪录片"
},
{
"id": 405,
"cat": "TV/Anime",
"desc": "Animations/动漫"
},
{
"id": 402,
"cat": "TV",
"desc": "TV Series/连续剧"
},
{
"id": 403,
"cat": "TV",
"desc": "TV Shows/综艺"
}
]
},
"torrents": {
"list": {
"selector": "div.torrent-table-for-spider > div.torrent-table-sub-info"
},
"fields": {
"id": {
"selector": "a[href*=\"details.php?id=\"]",
"attribute": "href",
"filters": [
{
"name": "re_search",
"args": [
"\\d+",
0
]
}
]
},
"category": {
"selector": "a[href*=\"?cat[]=\"]",
"attribute": "href",
"filters": [
{
"name": "querystring",
"args": "cat"
}
]
},
"title_default": {
"selector": "a[href*=\"details.php?id=\"]"
},
"title_optional": {
"optional": true,
"selector": "a[title][href*=\"details.php?id=\"]",
"attribute": "title"
},
"title": {
"text": "{% if fields['title_optional'] %}{{ fields['title_optional'] }}{% else %}{{ fields['title_default'] }}{% endif %}"
},
"details": {
"selector": "a[href*=\"details.php?id=\"]",
"attribute": "href"
},
"poster": {
"text": ""
},
"download": {
"selector": "a[href*=\"download.php?id=\"]",
"attribute": "href"
},
"size": {
"selector": "div.torrent-info-text-size"
},
"grabs": {
"selector": "div.torrent-info-text-finished"
},
"seeders": {
"selector": "div.torrent-info-text-seeders"
},
"leechers": {
"selector": "div.torrent-info-text-leechers"
},
"date_elapsed": {
"selector": "div.torrent-info-text-added > span",
"optional": true
},
"date_added": {
"selector": "div.torrent-info-text-added > span",
"attribute": "title",
"optional": true
},
"date": {
"text": "{% if fields['date_elapsed'] or fields['date_added'] %}{{ fields['date_elapsed'] if fields['date_elapsed'] else fields['date_added'] }}{% else %}now{% endif %}",
"filters": [
{
"name": "dateparse",
"args": "%Y-%m-%d %H:%M:%S"
}
]
},
"downloadvolumefactor": {
"case": {
"span.promotion-tag-free": 0,
"span.promotion-tag-50": 0.5,
"span.promotion-tag-30": 0.3,
"*": 1
}
},
"uploadvolumefactor": {
"case": {
"img.pro_50pctdown2up": 2,
"img.pro_free2up": 2,
"img.pro_2up": 2,
"*": 1
}
},
"free_deadline": {
"default_value": "{% if fields['downloadvolumefactor']==0 %}{{max_time}}{% endif%}",
"default_value_format": "%Y-%m-%d %H:%M:%S.%f",
"selector": "div > span > span[title]",
"attribute": "title",
"filters": [
{
"name": "dateparse",
"args": "%Y-%m-%d %H:%M:%S"
}
]
},
"tags": {
"selector": "div.items-center > a > span.tag"
},
"description": {
"selector": "div.torrent-info-text-small_name"
},
"labels": {
"selector": "div.items-center > a > span.tag"
}
}
},
"conf": {
"FREE": [
"//div[@class='whitespace-nowrap']/span[contains(@class, 'promotion-tag-free')]"
],
"2XFREE": [],
"HR": [],
"PEER_COUNT": [
"//div[@id='seeder-count']"
]
}
}

0 comments on commit 8e2fcdb

Please sign in to comment.