Add file name to state

This commit is contained in:
hicom150
2019-08-15 12:06:22 +02:00
parent c29deab728
commit 097fa9cc7c
2 changed files with 2 additions and 1 deletions

View File

@@ -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'