mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: enhance (#1016)
This commit is contained in:
parent
7af0e09dd6
commit
5566b2e344
6 changed files with 21 additions and 12 deletions
|
|
@ -235,7 +235,9 @@ export default class {
|
|||
});
|
||||
if (autoplay) {
|
||||
this.play();
|
||||
document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`;
|
||||
if (this._currentTrack.name) {
|
||||
document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`;
|
||||
}
|
||||
}
|
||||
this.setOutputDevice();
|
||||
this._howler.once('end', () => {
|
||||
|
|
@ -485,7 +487,9 @@ export default class {
|
|||
if (this._howler?.playing()) return;
|
||||
this._howler?.play();
|
||||
this._playing = true;
|
||||
document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`;
|
||||
if (this._currentTrack.name) {
|
||||
document.title = `${this._currentTrack.name} · ${this._currentTrack.ar[0].name} - YesPlayMusic`;
|
||||
}
|
||||
this._playDiscordPresence(this._currentTrack, this.seek());
|
||||
if (store.state.lastfm.key !== undefined) {
|
||||
trackUpdateNowPlaying({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue