Skip to content

Commit

Permalink
fix incorrect imports
Browse files Browse the repository at this point in the history
  • Loading branch information
YouKnowBlom committed Jun 13, 2020
1 parent cacccb2 commit 6b11e8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/commandHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
translateItems,
shuffle,
instantMix,
isPlaying,
setAudioStreamIndex,
setSubtitleStreamIndex,
seek
Expand Down Expand Up @@ -61,7 +60,7 @@ export class commandHandler {
}

displayContentHandler(data) {
if (!isPlaying()) {
if (!this.playbackManager.isPlaying()) {
jellyfinActions.displayItem($scope, data.serverAddress, data.accessToken, data.userId, data.options.ItemId);
}
}
Expand Down Expand Up @@ -107,7 +106,7 @@ export class commandHandler {
}

IdentifyHandler(data) {
if (!isPlaying()) {
if (!this.playbackManager.isPlaying()) {
jellyfinActions.displayUserInfo($scope, data.serverAddress, data.accessToken, data.userId);
} else {
// When a client connects send back the initial device state (volume etc) via a playbackstop message
Expand Down
4 changes: 2 additions & 2 deletions src/components/playbackManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
setAppStatus,
broadcastConnectionErrorMessage,
tagItems,
getReportingParams
getReportingParams,
createStreamInfo
} from "../helpers";

import {
Expand All @@ -15,7 +16,6 @@ import {
validatePlaybackInfoResult,
showPlaybackInfoErrorMessage,
supportsDirectPlay,
createStreamInfo,
createMediaInformation
} from "./maincontroller";

Expand Down

0 comments on commit 6b11e8d

Please sign in to comment.