mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-14 12:18:06 +00:00
去除听歌打卡功能
This commit is contained in:
parent
f6735c9c26
commit
71817baad0
1 changed files with 1 additions and 6 deletions
|
|
@ -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, scrobble } from '@/api/track';
|
||||
import { getLyric, getMP3, getTrackDetail } from '@/api/track';
|
||||
import store from '@/store';
|
||||
import { isAccountLoggedIn } from '@/utils/auth';
|
||||
import { cacheTrackSource, getTrackSource } from '@/utils/db';
|
||||
|
|
@ -309,11 +309,6 @@ 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue