style: auto-fix linting issues
This commit is contained in:
parent
ffdcc1d396
commit
108387ac7a
2 changed files with 5 additions and 5 deletions
|
|
@ -202,7 +202,8 @@ export function initializePlayerEvents(player, audioPlayer, scrobbler, ui) {
|
|||
console.error(`Media playback error (${element.id}):`, errorMsg, e);
|
||||
playPauseBtn.innerHTML = SVG_PLAY;
|
||||
|
||||
const canFallback = player.quality === 'HI_RES_LOSSLESS' &&
|
||||
const canFallback =
|
||||
player.quality === 'HI_RES_LOSSLESS' &&
|
||||
errorMsg.includes('Source not supported') &&
|
||||
errorMsg.includes('0x80004005') &&
|
||||
!player.isFallbackRetry;
|
||||
|
|
|
|||
|
|
@ -1047,9 +1047,8 @@ export class Player {
|
|||
}
|
||||
|
||||
const shuffledSeeds = [...this.radioSeeds].sort(() => 0.5 - Math.random());
|
||||
const seeds = shuffledSeeds.length > 0
|
||||
? shuffledSeeds.slice(0, 5)
|
||||
: this.currentTrack ? [this.currentTrack] : [];
|
||||
const seeds =
|
||||
shuffledSeeds.length > 0 ? shuffledSeeds.slice(0, 5) : this.currentTrack ? [this.currentTrack] : [];
|
||||
|
||||
if (seeds.length === 0) {
|
||||
return;
|
||||
|
|
@ -1068,7 +1067,7 @@ export class Player {
|
|||
]);
|
||||
|
||||
const recommendations = await this.api.getRecommendedTracksForPlaylist(seeds, 20, {
|
||||
knownTrackIds: knownTrackIds
|
||||
knownTrackIds: knownTrackIds,
|
||||
});
|
||||
|
||||
if (recommendations && recommendations.length > 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue