Compare commits

..

No commits in common. "master" and "v0.4.9" have entirely different histories.

7 changed files with 17 additions and 13 deletions

View file

@ -8,7 +8,7 @@
<p align="center">
高颜值的第三方网易云播放器
<br />
<a href="https://music.ineko.cc" target="blank"><strong>🌎 访问DEMO</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="https://music.qier222.com" target="blank"><strong>🌎 访问DEMO</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="#%EF%B8%8F-安装" target="blank"><strong>📦️ 下载安装包</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="https://t.me/yesplaymusic" target="blank"><strong>💬 加入交流群</strong></a>
<br />
@ -16,7 +16,7 @@
</p>
</p>
[![Library][library-screenshot]](https://music.ineko.cc)
[![Library][library-screenshot]](https://music.qier222.com)
## 全新版本

View file

@ -1,6 +1,6 @@
{
"name": "yesplaymusic",
"version": "0.4.9",
"version": "0.4.8",
"private": true,
"description": "A third party music player for Netease Music",
"author": "qier222<qier222@outlook.com>",

View file

@ -7,6 +7,7 @@ import i18n from '@/locale';
import '@/assets/icons';
import '@/utils/filters';
import './registerServiceWorker';
import { dailyTask } from '@/utils/common';
import '@/assets/css/global.scss';
import NProgress from 'nprogress';
import '@/assets/css/nprogress.css';
@ -37,6 +38,7 @@ Vue.use(
Vue.config.productionTip = false;
NProgress.configure({ showSpinner: false, trickleSpeed: 100 });
dailyTask();
new Vue({
i18n,

View file

@ -3,7 +3,7 @@ import { getArtist } from '@/api/artist';
import { trackScrobble, trackUpdateNowPlaying } from '@/api/lastfm';
import { fmTrash, personalFM } from '@/api/others';
import { getPlaylistDetail, intelligencePlaylist } from '@/api/playlist';
import { getLyric, getMP3, getTrackDetail } from '@/api/track';
import { getLyric, getMP3, getTrackDetail, scrobble } from '@/api/track';
import store from '@/store';
import { isAccountLoggedIn } from '@/utils/auth';
import { cacheTrackSource, getTrackSource } from '@/utils/db';
@ -130,8 +130,6 @@ export default class {
if (shuffle) {
this._shuffleTheList();
}
// 同步当前歌曲在列表中的下标
this.current = this.list.indexOf(this.currentTrackID);
}
get reversed() {
return this._reversed;
@ -309,6 +307,11 @@ export default class {
);
const trackDuration = ~~(track.dt / 1000);
time = completed ? trackDuration : ~~time;
scrobble({
id: track.id,
sourceid: this.playlistSource.id,
time,
});
if (
store.state.lastfm.key !== undefined &&
(time >= trackDuration / 2 || time >= 240)
@ -889,7 +892,7 @@ export default class {
if (autoPlayTrackID === 'first') {
this._replaceCurrentTrack(this.list[0]);
} else {
this.current = this.list.indexOf(autoPlayTrackID);
this.current = trackIDs.indexOf(autoPlayTrackID);
this._replaceCurrentTrack(autoPlayTrackID);
}
}

View file

@ -215,7 +215,7 @@
<script>
import { mapActions, mapMutations, mapState } from 'vuex';
import { randomNum } from '@/utils/common';
import { randomNum, dailyTask } from '@/utils/common';
import { isAccountLoggedIn } from '@/utils/auth';
import { uploadSong } from '@/api/user';
import { getLyric } from '@/api/track';
@ -310,6 +310,7 @@ export default {
activated() {
this.$parent.$refs.scrollbar.restorePosition();
this.loadData();
dailyTask();
},
methods: {
...mapActions(['showToast']),

View file

@ -90,14 +90,14 @@
</button>
</div>
<div class="other-login">
<!-- <a v-show="mode !== 'email'" @click="changeMode('email')">{{
<a v-show="mode !== 'email'" @click="changeMode('email')">{{
$t('login.loginWithEmail')
}}</a>
<span v-show="mode === 'qrCode'">|</span>
<a v-show="mode !== 'phone'" @click="changeMode('phone')">{{
$t('login.loginWithPhone')
}}</a>
<span v-show="mode !== 'qrCode'">|</span> -->
<span v-show="mode !== 'qrCode'">|</span>
<a v-show="mode !== 'qrCode'" @click="changeMode('qrCode')">
二维码登录
</a>

View file

@ -57,9 +57,7 @@ export default {
this.player.current + 1,
this.player.current + 100
);
return trackIDs
.map(tid => this.tracks.find(t => t.id === tid))
.filter(t => t);
return this.tracks.filter(t => trackIDs.includes(t.id));
},
playNextList() {
return this.player.playNextList;