1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove self cast target

This commit is contained in:
Bill Thornton 2024-10-30 16:01:58 -04:00
parent c3614a0c8c
commit bc7ec0e876
2 changed files with 6 additions and 21 deletions

View file

@ -853,29 +853,15 @@ export class PlaybackManager {
const promises = players.filter(displayPlayerIndividually).map(getPlayerTargets);
return Promise.all(promises).then(function (responses) {
return ServerConnections.currentApiClient().getCurrentUser().then(function (user) {
const targets = [];
const targets = [];
targets.push({
name: globalize.translate('HeaderMyDevice'),
id: 'localplayer',
playerName: 'localplayer',
playableMediaTypes: ['Audio', 'Video', 'Photo', 'Book'],
isLocalPlayer: true,
supportedCommands: self.getSupportedCommands({
isLocalPlayer: true
}),
user: user
});
for (const subTargets of responses) {
for (const subTarget of subTargets) {
targets.push(subTarget);
}
for (const subTargets of responses) {
for (const subTarget of subTargets) {
targets.push(subTarget);
}
}
return targets.sort(sortPlayerTargets);
});
return targets.sort(sortPlayerTargets);
});
};