diff --git a/resource/sites/aidoru-online.me/config.json b/resource/sites/aidoru-online.me/config.json index b9eb04fa3..7bad8dc2b 100644 --- a/resource/sites/aidoru-online.me/config.json +++ b/resource/sites/aidoru-online.me/config.json @@ -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", diff --git a/resource/sites/asiancinema.me/config.json b/resource/sites/asiancinema.me/config.json index 52d862dc7..c173a71f1 100644 --- a/resource/sites/asiancinema.me/config.json +++ b/resource/sites/asiancinema.me/config.json @@ -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"] + } + } + } + } } \ No newline at end of file diff --git a/resource/sites/oppaiti.me/config.json b/resource/sites/oppaiti.me/config.json index 6e3e598bd..0a8f1e13a 100644 --- a/resource/sites/oppaiti.me/config.json +++ b/resource/sites/oppaiti.me/config.json @@ -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", @@ -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 } } \ No newline at end of file