mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove redundant Promise.resolve
This commit is contained in:
parent
040b2d4901
commit
e4c20df5ae
1 changed files with 2 additions and 2 deletions
|
@ -405,7 +405,7 @@ function setStreamUrls(items, deviceProfile, maxBitrate, apiClient, startPositio
|
|||
|
||||
async function getPlaybackInfo(player, apiClient, item, deviceProfile, mediaSourceId, liveStreamId, options) {
|
||||
if (!itemHelper.isLocalItem(item) && item.MediaType === 'Audio' && !player.useServerPlaybackInfoForAudio) {
|
||||
return Promise.resolve({
|
||||
return {
|
||||
MediaSources: [
|
||||
{
|
||||
StreamUrl: getAudioStreamUrlFromDeviceProfile(item, deviceProfile, options.maxBitrate, apiClient, options.startPosition),
|
||||
|
@ -413,7 +413,7 @@ async function getPlaybackInfo(player, apiClient, item, deviceProfile, mediaSour
|
|||
MediaStreams: [],
|
||||
RunTimeTicks: item.RunTimeTicks
|
||||
}]
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
if (item.PresetMediaSource) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue