{"action":"created","issue":{"url":"https://api.github.com/repos/shellvon/zh-downloader/issues/11","repository_url":"https://api.github.com/repos/shellvon/zh-downloader","labels_url":"https://api.github.com/repos/shellvon/zh-downloader/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/shellvon/zh-downloader/issues/11/comments","events_url":"https://api.github.com/repos/shellvon/zh-downloader/issues/11/events","html_url":"https://github.com/shellvon/zh-downloader/issues/11","id":358533261,"node_id":"MDU6SXNzdWUzNTg1MzMyNjE=","number":11,"title":"能采集除知乎站点外的其他资源","user":{"login":"shellvon","id":3349696,"node_id":"MDQ6VXNlcjMzNDk2OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3349696?v=4","gravatar_id":"","url":"https://api.github.com/users/shellvon","html_url":"https://github.com/shellvon","followers_url":"https://api.github.com/users/shellvon/followers","following_url":"https://api.github.com/users/shellvon/following{/other_user}","gists_url":"https://api.github.com/users/shellvon/gists{/gist_id}","starred_url":"https://api.github.com/users/shellvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellvon/subscriptions","organizations_url":"https://api.github.com/users/shellvon/orgs","repos_url":"https://api.github.com/users/shellvon/repos","events_url":"https://api.github.com/users/shellvon/events{/privacy}","received_events_url":"https://api.github.com/users/shellvon/received_events","type":"User","site_admin":false},"labels":[{"id":1014896867,"node_id":"MDU6TGFiZWwxMDE0ODk2ODY3","url":"https://api.github.com/repos/shellvon/zh-downloader/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"closed","locked":false,"assignee":{"login":"shellvon","id":3349696,"node_id":"MDQ6VXNlcjMzNDk2OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3349696?v=4","gravatar_id":"","url":"https://api.github.com/users/shellvon","html_url":"https://github.com/shellvon","followers_url":"https://api.github.com/users/shellvon/followers","following_url":"https://api.github.com/users/shellvon/following{/other_user}","gists_url":"https://api.github.com/users/shellvon/gists{/gist_id}","starred_url":"https://api.github.com/users/shellvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellvon/subscriptions","organizations_url":"https://api.github.com/users/shellvon/orgs","repos_url":"https://api.github.com/users/shellvon/repos","events_url":"https://api.github.com/users/shellvon/events{/privacy}","received_events_url":"https://api.github.com/users/shellvon/received_events","type":"User","site_admin":false},"assignees":[{"login":"shellvon","id":3349696,"node_id":"MDQ6VXNlcjMzNDk2OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3349696?v=4","gravatar_id":"","url":"https://api.github.com/users/shellvon","html_url":"https://github.com/shellvon","followers_url":"https://api.github.com/users/shellvon/followers","following_url":"https://api.github.com/users/shellvon/following{/other_user}","gists_url":"https://api.github.com/users/shellvon/gists{/gist_id}","starred_url":"https://api.github.com/users/shellvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellvon/subscriptions","organizations_url":"https://api.github.com/users/shellvon/orgs","repos_url":"https://api.github.com/users/shellvon/repos","events_url":"https://api.github.com/users/shellvon/events{/privacy}","received_events_url":"https://api.github.com/users/shellvon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-10T09:09:42Z","updated_at":"2018-09-11T06:00:26Z","closed_at":"2018-09-10T09:40:38Z","author_association":"OWNER","body":"#### 问题描述:\r\n\r\n如题所述。\r\n\r\n#### 期望行为:\r\n\r\n自动采集MP4/MP3/JPG/PNG等媒体/图片格式。\r\n\r\n#### 解决方式:\r\n\r\n既然监听的 `<all_urls> ` 我们可以查看每一个请求的请求头从而可以键盘判断请求类型，使用 `chrome.webRequest.onResponseStarted` 事件即可。\r\n\r\n#### 其他说明:\r\n\r\n`zh-downloader` 专注于处理知乎站点，其他资源的采集并不是其核心功能，因此本次实现的功能相对较弱。比如以下功能不会做任何实现:\r\n\r\n+ 不会像知乎一样做数据的持久化，不做前后端数据通信(仅使用windows全局对象简单交互)\r\n+ 不会处理 TS文件的合成(因为各自请求的独立性, 除非监听m3u8并做解析,这不是我的初衷) \r\n+ 非标准多媒体格式(比如 coub.com中的视频某一字节是被修改过的，因此普通下载是无法播放的)\r\n+ 不会单独处理任何业务逻辑(比如抓取某个站点的API然后做解析之类的)\r\n\r\n另一方面，我会尝试增加一些灵活的配置方式:\r\n\r\n+ 指定需要采集的数据类型/文件大小\r\n+ 排除不想要采集的站点\r\n\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/shellvon/zh-downloader/issues/comments/420156471","html_url":"https://github.com/shellvon/zh-downloader/issues/11#issuecomment-420156471","issue_url":"https://api.github.com/repos/shellvon/zh-downloader/issues/11","id":420156471,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDE1NjQ3MQ==","user":{"login":"shellvon","id":3349696,"node_id":"MDQ6VXNlcjMzNDk2OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3349696?v=4","gravatar_id":"","url":"https://api.github.com/users/shellvon","html_url":"https://github.com/shellvon","followers_url":"https://api.github.com/users/shellvon/followers","following_url":"https://api.github.com/users/shellvon/following{/other_user}","gists_url":"https://api.github.com/users/shellvon/gists{/gist_id}","starred_url":"https://api.github.com/users/shellvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellvon/subscriptions","organizations_url":"https://api.github.com/users/shellvon/orgs","repos_url":"https://api.github.com/users/shellvon/repos","events_url":"https://api.github.com/users/shellvon/events{/privacy}","received_events_url":"https://api.github.com/users/shellvon/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T06:00:26Z","updated_at":"2018-09-11T06:00:26Z","author_association":"OWNER","body":"本次提交增加/修改以下功能:\r\n\r\n+ [Add] 增加删除采集的按钮\r\n+ [Add] 支持设置包含/排除站点/域名\r\n+ [Add] 支持正则表达式进行匹配\r\n+ [Update] 按照采集排序\r\n+ [Fixed] 当当前Tab设置 BadgeText 之后, 全局再设置不对此Tab生效，因此目前改为均使用TabId进行设置\r\n+ [Fixed] 自动决定展示数据页(不存在高级嗅探时展示知乎,否则展示高级嗅探当资源)\r\n\r\n具体细节参见\r\n[高级嗅探配置](https://github.com/shellvon/zh-downloader/wiki/配置说明）"}}
{"actor":{"display_login":"shellvon"}}