{"action":"created","issue":{"url":"https://api.github.com/repos/gedoor/MyBookshelf/issues/36","repository_url":"https://api.github.com/repos/gedoor/MyBookshelf","labels_url":"https://api.github.com/repos/gedoor/MyBookshelf/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/gedoor/MyBookshelf/issues/36/comments","events_url":"https://api.github.com/repos/gedoor/MyBookshelf/issues/36/events","html_url":"https://github.com/gedoor/MyBookshelf/issues/36","id":326589630,"number":36,"title":"[书源添加求助]鲸鱼阅读的书源添加失败，清麻烦看看有什么问题？","user":{"login":"whitecodes","id":8749745,"avatar_url":"https://avatars0.githubusercontent.com/u/8749745?v=4","gravatar_id":"","url":"https://api.github.com/users/whitecodes","html_url":"https://github.com/whitecodes","followers_url":"https://api.github.com/users/whitecodes/followers","following_url":"https://api.github.com/users/whitecodes/following{/other_user}","gists_url":"https://api.github.com/users/whitecodes/gists{/gist_id}","starred_url":"https://api.github.com/users/whitecodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitecodes/subscriptions","organizations_url":"https://api.github.com/users/whitecodes/orgs","repos_url":"https://api.github.com/users/whitecodes/repos","events_url":"https://api.github.com/users/whitecodes/events{/privacy}","received_events_url":"https://api.github.com/users/whitecodes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-25T16:28:52Z","updated_at":"2018-05-27T16:14:30Z","closed_at":null,"author_association":"NONE","body":"具体书源配置如下：\r\n```json\r\n{\r\n  \"bookSourceGroup\": \"\",\r\n  \"bookSourceName\": \"鲸鱼阅读\",\r\n  \"bookSourceUrl\": \"http://www.jingyu.com\",\r\n  \"enable\": true,\r\n  \"httpUserAgent\": \"\",\r\n  \"ruleBookAuthor\": \"class.details.0@tag.a.1@text\",\r\n  \"ruleBookContent\": \"id.article-content@tag.p@text\",\r\n  \"ruleBookName\": \"class.details.0@tag.a.0@text\",\r\n  \"ruleChapterList\": \"class.chapter-list.0@tag.a\",\r\n  \"ruleChapterName\": \"innerText\",\r\n  \"ruleChapterUrl\": \"class.button-list.0@tag.a.2@href\",\r\n  \"ruleContentUrl\": \"href\",\r\n  \"ruleCoverUrl\": \"class.book-left.0@tag.img.0@src\",\r\n  \"ruleFindUrl\": \"\",\r\n  \"ruleIntroduce\": \"class.brief.0@innerText\",\r\n  \"ruleSearchAuthor\": \"tag.a.2@text\",\r\n  \"ruleSearchCoverUrl\": \"tag.img.0@src\",\r\n  \"ruleSearchKind\": \"tag.a.3@text\",\r\n  \"ruleSearchLastChapter\": \"class.modtime.0@text\",\r\n  \"ruleSearchList\": \"class.novel\",\r\n  \"ruleSearchName\": \"tag.a.1@text\",\r\n  \"ruleSearchNoteUrl\": \"tag.a.1@href\",\r\n  \"ruleSearchUrl\": \"http://www.jingyu.com/search/kw=searchKey&pn=searchPage\",\r\n  \"serialNumber\": 1\r\n}\r\n```\r\n应用版本：1.6.407065\r\n问题现象：搜索结果空白\r\n没有找到log信息"},"comment":{"url":"https://api.github.com/repos/gedoor/MyBookshelf/issues/comments/392344141","html_url":"https://github.com/gedoor/MyBookshelf/issues/36#issuecomment-392344141","issue_url":"https://api.github.com/repos/gedoor/MyBookshelf/issues/36","id":392344141,"user":{"login":"whitecodes","id":8749745,"avatar_url":"https://avatars0.githubusercontent.com/u/8749745?v=4","gravatar_id":"","url":"https://api.github.com/users/whitecodes","html_url":"https://github.com/whitecodes","followers_url":"https://api.github.com/users/whitecodes/followers","following_url":"https://api.github.com/users/whitecodes/following{/other_user}","gists_url":"https://api.github.com/users/whitecodes/gists{/gist_id}","starred_url":"https://api.github.com/users/whitecodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitecodes/subscriptions","organizations_url":"https://api.github.com/users/whitecodes/orgs","repos_url":"https://api.github.com/users/whitecodes/repos","events_url":"https://api.github.com/users/whitecodes/events{/privacy}","received_events_url":"https://api.github.com/users/whitecodes/received_events","type":"User","site_admin":false},"created_at":"2018-05-27T16:14:30Z","updated_at":"2018-05-27T16:14:30Z","author_association":"NONE","body":"修改之后发现另一个问题，<a>.href 和 <a>. getAttribute('href') 的结果不一致，导致读取不到目录\r\n配置如下：\r\n```json\r\n{\r\n  \"bookSourceGroup\": \"\",\r\n  \"bookSourceName\": \"鲸鱼阅读\",\r\n  \"bookSourceUrl\": \"http://www.jingyu.com\",\r\n  \"enable\": true,\r\n  \"httpUserAgent\": \"Mozilla/5.0 (Windows; U; Windows NT 5.2) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13\",\r\n  \"ruleBookAuthor\": \"tag.a.2@text\",\r\n  \"ruleBookContent\": \"tag.p@innerText\",\r\n  \"ruleBookName\": \"class.book-name.0@text\",\r\n  \"ruleChapterList\": \"class.catelog-list\",\r\n  \"ruleChapterName\": \"innerText\",\r\n  \"ruleChapterUrl\": \"tag.a.5@href\",\r\n  \"ruleContentUrl\": \"href\",\r\n  \"ruleCoverUrl\": \"tag.img.0@data-echo\",\r\n  \"ruleFindUrl\": \"\",\r\n  \"ruleIntroduce\": \"\",\r\n  \"ruleSearchAuthor\": \"class.author.0@text\",\r\n  \"ruleSearchCoverUrl\": \"tag.img.0@src\",\r\n  \"ruleSearchKind\": \"\",\r\n  \"ruleSearchLastChapter\": \"\",\r\n  \"ruleSearchList\": \"class.js-clickable\",\r\n  \"ruleSearchName\": \"class.name.0@text\",\r\n  \"ruleSearchNoteUrl\": \"tag.a.0@href\",\r\n  \"ruleSearchUrl\": \"http://m.jingyu.com/search?kw=searchKey\",\r\n  \"serialNumber\": 1\r\n}\r\n```\r\n该配置已经可以看到搜索结果，但是不能识别到章节"}}
{"actor":{"display_login":"whitecodes"}}