PureDark / H-Viewer

An android feed reader application which fetch data with selector and regular expression.
Apache License 2.0
1.74k stars 236 forks source link

功能性建议:添加站点时重复提示,多套页面模板规则,站点市场强制刷新 #70

Open zhihaofans opened 7 years ago

zhihaofans commented 7 years ago

1.添加站点时重复提示

扫描二维码时如果有同名的提示是否覆盖,就像站点市场更新时的提示

2.多套页面模板规则

规则文件里的galleryRule , indexRule , searchRule 要是能设置多套模板规则供不同页面/分类的选择就好了 例如:

{
    "categories": [
        {
            "url": "http://test.test",
            "title": "分类1",
            "cid": 1,
            "indexRuleId": "page1"
        },
        {
            "url": "http://test.test",
            "title": "分类2",
            "cid": 2,
            "indexRuleId": "page2"
        }
    ],
    "indexRule": [
        {
            "id": "page1",
            "cover": {
                "fun": "attr",
                "param": "src",
                "selector": "div.line > div.p > a > img"
            },
            "item": {
                "selector": "div.item"
            }
        },
        {
            "id": "page2",
            "cover": {
                "fun": "attr",
                "param": "src",
                "selector": "span.zt_pic > a > img"
            },
            "item": {
                "selector": "div.item"
            }
        }
    ]
}

3.站点市场强制刷新

在站点市场加个刷新按钮