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:
parent
c3614a0c8c
commit
bc7ec0e876
2 changed files with 6 additions and 21 deletions
|
@ -853,21 +853,8 @@ 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 = [];
|
||||
|
||||
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);
|
||||
|
@ -876,7 +863,6 @@ export class PlaybackManager {
|
|||
|
||||
return targets.sort(sortPlayerTargets);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
self.playerHasSecondarySubtitleSupport = function (player = self._currentPlayer) {
|
||||
|
|
|
@ -451,7 +451,6 @@
|
|||
"HeaderMetadataSettings": "Metadata Settings",
|
||||
"HeaderMoreLikeThis": "More Like This",
|
||||
"HeaderMusicQuality": "Music Quality",
|
||||
"HeaderMyDevice": "My Device",
|
||||
"HeaderMyMedia": "My Media",
|
||||
"HeaderMyMediaSmall": "My Media (small)",
|
||||
"HeaderNavigation": "Navigation",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue