Skip to content

Commit

Permalink
Merge pull request #39 from YouKnowBlom/remove-more-imports
Browse files Browse the repository at this point in the history
Fix incorrect imports
  • Loading branch information
YouKnowBlom authored Jun 22, 2020
2 parents 2d05baf + 6b11e8d commit 0e62d38
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 0e62d38

Please sign in to comment.