Skip to content

Commit

Permalink
Fixes for PR #1648
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 15, 2019
1 parent 4b92783 commit afd3b84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/lib/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function getPreviousIndex (state) {

function getCurrentLocalURL (state) {
return state.server
? state.server.localURL + '/' + state.playing.fileIndex + '/' + encodeURIComponent(state.playing.fileName)
? state.server.localURL + '/' + state.playing.fileIndex + '/' +
encodeURIComponent(state.playing.fileName)
: ''
}

Expand Down
1 change: 1 addition & 0 deletions src/renderer/lib/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function getDefaultPlayState () {
return {
infoHash: null, /* the info hash of the torrent we're playing */
fileIndex: null, /* the zero-based index within the torrent */
fileName: null, /* name of the file that is playing */
location: 'local', /* 'local', 'chromecast', 'airplay' */
type: null, /* 'audio' or 'video', could be 'other' if ever support eg streaming to VLC */
currentTime: 0, /* seconds */
Expand Down

0 comments on commit afd3b84

Please sign in to comment.