Skip to content

Commit

Permalink
Fix migu (#256)
Browse files Browse the repository at this point in the history
* fix migu play url not working
  • Loading branch information
listen1 committed Sep 7, 2019
1 parent b4c259e commit 762a13d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Listen 1 (Chrome Extension) V2.5.0
Listen 1 (Chrome Extension) V2.5.1
==========
最后更新于2019年08月09日
最后更新于2019年09月07日

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)

Expand Down Expand Up @@ -46,6 +46,9 @@ Firefox打包安装

更新日志
-------
`2019-09-07`
* 修复migu无法播放的bug

`2019-08-09`
* 增加深色主题

Expand Down
7 changes: 5 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Listen 1 (Chrome Extension) V2.5.0
Listen 1 (Chrome Extension) V2.5.1
==========
(Last Update 08/09/2019)
(Last Update Sep 7th, 2019)

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)

Expand Down Expand Up @@ -33,6 +33,9 @@ Install (Firefox)

Changelog
-------
`2019-09-07`
* fix migu

`2019-08-09`
* add dark theme

Expand Down
4 changes: 2 additions & 2 deletions js/provider/migu.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function build_migu() {
} = response;
const {
playUrl
} = res_data.walkmanInfo;
} = res_data.data.hqPlayInfo;
if (playUrl != null) {
sound.url = playUrl; // eslint-disable-line no-param-reassign
success();
Expand Down Expand Up @@ -241,4 +241,4 @@ function build_migu() {
};
}

const migu = build_migu(); // eslint-disable-line no-unused-vars
const migu = build_migu(); // eslint-disable-line no-unused-vars
2 changes: 1 addition & 1 deletion listen1.html
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ <h2> {{ backup.id }} {{backup.description}}</h2>
<p> Listen 1 {{_HOMEPAGE}}: <a open-url="'http://listen1.github.io/listen1/'"> http://listen1.github.io/listen1/ </a> </p>
<p> Listen 1 {{_EMAIL}}: githublisten1@gmail.com </p>
<p> {{_DESIGNER}}: iparanoid </p>
<p> {{_VERSION}}: 2.5.0 {{_LICENSE_NOTICE}}</p>
<p> {{_VERSION}}: 2.5.1 {{_LICENSE_NOTICE}}</p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"manifest_version": 2,
"name": "Listen 1",
"permissions": [ "notifications", "unlimitedStorage", "downloads", "storage", "contextMenus", "tabs", "cookies", "*://music.163.com/*", "*://*.xiami.com/*", "*://*.qq.com/*", "*://*.kugou.com/", "*://*.kuwo.cn/", "*://*.bilibili.com/*", "*://*.migu.cn/*", "*://api.github.com/*", "*://github.com/*", "*://gist.githubusercontent.com/*", "webRequest", "webRequestBlocking"],
"version": "2.5.0",
"version": "2.5.1",
"web_accessible_resources": [ "images/*" ],
"commands": {
"play_next": {
Expand Down
2 changes: 1 addition & 1 deletion manifest_firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"manifest_version": 2,
"name": "Listen 1",
"permissions": [ "notifications", "unlimitedStorage", "downloads", "storage", "contextMenus", "tabs", "cookies", "*://music.163.com/*", "*://*.xiami.com/*", "*://*.qq.com/*", "*://*.kugou.com/", "*://*.kuwo.cn/", "*://*.bilibili.com/*", "*://*.migu.cn/*", "*://api.github.com/*", "*://github.com/*", "*://gist.githubusercontent.com/*", "webRequest", "webRequestBlocking"],
"version": "2.5.0",
"version": "2.5.1",
"web_accessible_resources": [ "images/*" ],
"content_scripts": [{
"matches": ["https://listen1.github.io/listen1/*"],
Expand Down

0 comments on commit 762a13d

Please sign in to comment.