This commit is contained in:
Feross Aboukhadijeh
2020-10-21 13:50:42 -10:00
parent 748b996522
commit 80b86b5693
4 changed files with 31 additions and 21 deletions

View File

@@ -284,8 +284,10 @@ module.exports = class PlaybackController {
state.playing.infoHash = infoHash
state.playing.fileIndex = index
state.playing.fileName = fileSummary.name
state.playing.type = TorrentPlayer.isVideo(fileSummary) ? 'video'
: TorrentPlayer.isAudio(fileSummary) ? 'audio'
state.playing.type = TorrentPlayer.isVideo(fileSummary)
? 'video'
: TorrentPlayer.isAudio(fileSummary)
? 'audio'
: 'other'
// pick up where we left off