Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Commit ef5899c

Browse files
author
trazyn
authored
Merge pull request #217 from trazyn/dev
Release v1.2.6
2 parents bd2619c + 012c503 commit ef5899c

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
- High quality music(FLAC)
3535
- Track your listen to Last.fm
3636
- Fix dead music link [#3](https://github.com/trazyn/ieaseMusic/issues/3)(QQ music, Xiami music, Kugou music, MiGu music, Biadu music all in one)
37-
- Alfred 3 workflow([alfred-ieasemusic](https://github.com/trazyn/alfred-ieasemusic)), required v1.2.6+
37+
- Alfred 3 workflow([alfred-ieasemusic](https://github.com/trazyn/alfred-ieasemusic)), required [v1.2.6+](https://github.com/trazyn/ieaseMusic/releases/latest)
3838

3939
![Home](https://github.com/trazyn/ieaseMusic/blob/dev/screenshots/alfred.png?raw=true)
4040

@@ -43,27 +43,27 @@
4343
Download the last version on the [website](https://github.com/trazyn/ieaseMusic/releases/latest) or below.
4444

4545
#### Mac(10.9+)
46-
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.5/ieaseMusic-1.2.5-mac.dmg) the `.dmg` file, Or use `homebrew`:
46+
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.6/ieaseMusic-1.2.6-mac.dmg) the `.dmg` file, Or use `homebrew`:
4747
```
4848
brew cask install ieasemusic
4949
```
5050

5151
#### Linux
5252

53-
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.5/ieaseMusic-1.2.5-linux-amd64.deb) the `.deb` file for 'Debian / Ubuntu':
53+
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.6/ieaseMusic-1.2.6-linux-amd64.deb) the `.deb` file for 'Debian / Ubuntu':
5454
```
55-
$ sudo dpkg -i ieaseMusic-1.2.5-linux-amd64.deb
55+
$ sudo dpkg -i ieaseMusic-1.2.6-linux-amd64.deb
5656
```
5757

58-
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.5/ieaseMusic-1.2.5-linux-x86_64.rpm) the `.rpm` file for 'Centos/RHEL':
58+
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.6/ieaseMusic-1.2.6-linux-x86_64.rpm) the `.rpm` file for 'Centos/RHEL':
5959
```
60-
$ sudo yum localinstall ieaseMusic-1.2.5-linux-x86_64.rpm
60+
$ sudo yum localinstall ieaseMusic-1.2.6-linux-x86_64.rpm
6161
```
6262

63-
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.5/iease-music-1.2.5-x86_64.AppImage) the `.Appimage` file for other distribution:
63+
[Download](https://github.com/trazyn/ieaseMusic/releases/download/v1.2.6/iease-music-1.2.6-x86_64.AppImage) the `.Appimage` file for other distribution:
6464
```
65-
$ chmod u+x iease-music-1.2.5-x86_64.AppImage
66-
$ ./iease-music-1.2.5-x86_64.AppImage
65+
$ chmod u+x iease-music-1.2.6-x86_64.AppImage
66+
$ ./iease-music-1.2.6-x86_64.AppImage
6767
```
6868

6969
Archlinux `pacman` install:

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iease-music",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"description": "这应该是最好的网易云音乐播放器了,没有之一,如果有请打醒 🤘",
55
"main": "main.js",
66
"scripts": {

src/js/pages/Welcome/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ class Welcome extends Component {
196196
renderFavorite(favorite = {}) {
197197
var { classes, controller } = this.props;
198198

199+
if (favorite.size === 0) {
200+
return false;
201+
}
202+
199203
return (
200204
<Link
201205
className={classes.clearfix}

src/js/stores/home.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ class Home {
2323
// Save the songs of red heart
2424
me.rocking(favorite);
2525

26-
if (recommend.length) {
26+
if (favorite.size) {
27+
controller.setup(favorite);
28+
} else if (recommend.size) {
2729
// Play the recommend songs
2830
controller.setup(recommend);
2931
} else {
30-
controller.setup(favorite);
32+
// Some user no favorite and recommend, set a fallback playlist
33+
controller.setup(res.data.list[2]);
3134
}
3235
} else {
3336
res = await axios.get(`/api/home`);

0 commit comments

Comments
 (0)