Skip to content

Commit

Permalink
Merge pull request #1648 from hicom150/pass_title_metadata
Browse files Browse the repository at this point in the history
Pass title metadata in media url
  • Loading branch information
feross authored Aug 15, 2019
2 parents c5679d5 + 097fa9c commit 4b92783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/renderer/controllers/playback-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ module.exports = class PlaybackController {
// update state
state.playing.infoHash = infoHash
state.playing.fileIndex = index
state.playing.fileName = fileSummary.name
state.playing.type = TorrentPlayer.isVideo(fileSummary) ? 'video'
: TorrentPlayer.isAudio(fileSummary) ? 'audio'
: 'other'
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/lib/playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function getPreviousIndex (state) {

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

Expand Down

0 comments on commit 4b92783

Please sign in to comment.