Skip to content

Commit

Permalink
feat(ggn): support Leech Status
Browse files Browse the repository at this point in the history
  • Loading branch information
ted423 committed Sep 6, 2022
1 parent 46371e8 commit dbb6e0e
Showing 1 changed file with 45 additions and 20 deletions.
65 changes: 45 additions & 20 deletions resource/sites/gazellegames.net/config.json
Expand Up @@ -16,25 +16,26 @@
"queryString": "searchstr=$key$",
"fieldSelector": {
"progress": {
"selector": ["#color_seeding, #color_snatched", "#color_leeching, #color_downloaded", ""],
"switchFilters": [
["100"],
["0"],
["null"]
]
"selector": [
"#color_seeding, #color_snatched",
"#color_leeching, #color_downloaded",
""
],
"switchFilters": [["100"], ["0"], ["null"]]
},
"status": {
"selector": ["#color_seeding", "#color_snatched", "#color_leeching", "#color_downloaded"],
"switchFilters": [
["2"],
["255"],
["1"],
["3"]
]
"selector": [
"#color_seeding",
"#color_snatched",
"#color_leeching",
"#color_downloaded"
],
"switchFilters": [["2"], ["255"], ["1"], ["3"]]
}
}
},
"searchEntry": [{
"searchEntry": [
{
"name": "all",
"enabled": true
},
Expand Down Expand Up @@ -65,13 +66,16 @@
}
],
"selectors": {
"userBaseInfo": {
"userBaseInfo": {
"merge": true,
"page": "/index.php",
"fields": {
"messageCount": {
"selector": [".newnoti"],
"filters": ["query.text().match(/(\\d+)/)", "(query && query.length>=2)?parseInt(query[1]):0"]
"filters": [
"query.text().match(/(\\d+)/)",
"(query && query.length>=2)?parseInt(query[1]):0"
]
}
}
},
Expand All @@ -88,14 +92,22 @@
},
"levelName": {
"selector": "div:contains('Personal') + ul.stats > li:contains('Class:')",
"filters": ["query.text().match(/Class:.+?(.+)/)", "(query && query.length>=2)?query[1]:''"]
"filters": [
"query.text().match(/Class:.+?(.+)/)",
"(query && query.length>=2)?query[1]:''"
]
},
"bonus": {
"selector": ["#gold .stat.tooltip"]
},
"joinTime": {
"selector": [".box_personal_history ul.stats li:nth-child(2) span.time"],
"filters": ["query.attr('title')||query.text()", "dateTime(query).isValid()?dateTime(query).valueOf():query"]
"selector": [
".box_personal_history ul.stats li:nth-child(2) span.time"
],
"filters": [
"query.attr('title')||query.text()",
"dateTime(query).isValid()?dateTime(query).valueOf():query"
]
},
"seeding": {
"selector": ["#seeding"]
Expand All @@ -107,7 +119,20 @@
}
}
},
"torrentTagSelectors": [{
"name": "Neutral",
"selector": "strong.neutralleech_label",
"color": "purple"
},{
"name": "Free",
"selector": "strong.freeleech_label",
"color": "blue"
},{
"name": "50%",
"selector": "strong.partial_freeleech_label",
"color": "orange"
}],
"supportedFeatures": {
"imdbSearch": false
}
}
}

0 comments on commit dbb6e0e

Please sign in to comment.