Skip to content

Commit

Permalink
Merge branch 'fix' into pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
ted423 committed May 16, 2020
2 parents a43b8b0 + fd51ec4 commit c504537
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 7 deletions.
1 change: 1 addition & 0 deletions resource/sites/aidoru-online.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "Aidoru!Online",
"timezoneOffset": "+0000",
"description": "AO",
"icon": "https://aidoru-online.me/themes/default/images/favicon.ico",
"url": "https://aidoru-online.me/",
"tags": ["偶像"],
"schema": "Common",
Expand Down
53 changes: 52 additions & 1 deletion resource/sites/asiancinema.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,56 @@
"icon": "https://asiancinema.me/favicon.ico",
"tags": ["综合"],
"schema": "UNIT3D",
"host": "asiancinema.me"
"host": "asiancinema.me",
"selectors": {
"userBaseInfo": {
"page": "/",
"fields": {
"name": {
"selector": ["a[href*='settings']:first"],
"attribute": "href",
"switchFilters": [
["query.match(/users\\/(.+)\\/settings/)", "(query && query.length>=2)?(query[1]):''"],
["query ? query.getQueryString('id'):''"]
]
},
"uploaded": {
"selector": ["span[title='Upload']"],
"filters": ["query.text().trim().replace(/,/g,'')", "(query && query.length>=1)?query.sizeToNumber():0"]
},
"downloaded": {
"selector": ["span[title='Download']"],
"filters": ["query.text().trim().replace(/,/g,'')", "(query && query.length>=1)?query.sizeToNumber():0"]
},
"bonus": {
"selector": ["a[title='My Bonus Points']"],
"filters": ["query.text().trim().replace(/ /g,'')"]
},
"seeding": {
"selector": ["span[title='Seeding']"],
"filters": ["query.text().trim().replace(/,|\\n/g,'')"]
}
}
},
"userExtendInfo": {
"page": "/users/$user.name$",
"fields": {
"seedingSize": {
"selector": ["table.table-condensed.table-striped.table-bordered:first td:contains('Seeding Size') + td"],
"filters": ["query.text().trim().sizeToNumber()"]
},
"levelName": {
"selector": "div.content span.badge-user"
},
"messageCount": {
"selector": [".point"],
"filters": ["query.length?'11':'0'"]
},
"joinTime": {
"selector": ["div.content h4:contains('Registration date')", "div.content h4:contains('注册日期')", "div.content h4:contains('註冊日期')"],
"filters": ["query.text().replace(/(Registration date|注册日期|註冊日期)/g, '').trim()", "dateTime(query).isValid()?dateTime(query).valueOf():query"]
}
}
}
}
}
26 changes: 20 additions & 6 deletions resource/sites/oppaiti.me/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
{
"queryString": "filter_cat[1]=1",
"name": "Movies",
"enabled": true
"enabled": false
},
{
"queryString": "filter_cat[2]=1",
"name": "Anime",
"enabled": true
"enabled": false
},
{
"queryString": "filter_cat[3]=1",
Expand All @@ -38,16 +38,30 @@
{
"queryString": "filter_cat[5]=1",
"name": "Audio",
"enabled": true
"enabled": false
},
{
"queryString": "filter_cat[6]=1",
"name": "Other",
"enabled": true
"enabled": false
}
],
"selectors": {
"userSeedingTorrents": {
"page": "/user.php?id=$user.id$",
"fields": {
"seedingSize": {
"selector": ["li:contains('Total Seeding: ') > span"],
"filters": ["query.text().sizeToNumber()"]
},
"bonus": {
"selector": ["span.stat > a[href]"],
"filters": ["query.text().replace(',', '')"]
}
}
}
},
"supportedFeatures": {
"imdbSearch": false,
"userData": ""
"imdbSearch": false
}
}

0 comments on commit c504537

Please sign in to comment.