diff options
author | Florrie <towerofnix@gmail.com> | 2018-02-16 11:02:51 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-02-16 11:02:53 -0400 |
commit | 1b5d6f8f96baae53367a7a7d0f9485a42029eaa3 (patch) | |
tree | c5eeedd7e0bac198c4070c3cb688a5dfadc8fa77 /src/loop-play.js | |
parent | e249bda854212d9ba29015b0c895b72aa2ee3cad (diff) |
Make --track-display-file show SOURCE path to track
This also means we're keeping track of the source item of items, which is sure to be useful more later.
Diffstat (limited to 'src/loop-play.js')
-rw-r--r-- | src/loop-play.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/loop-play.js b/src/loop-play.js index e82e77e..83cbcfe 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -23,7 +23,7 @@ const { } = require('./downloaders') const { - getItemPathString, safeUnlink, parentSymbol + getItemPathString, safeUnlink, parentSymbol, sourceSymbol } = require('./playlist-utils') function createStatusLine({percentStr, curStr, lenStr}) { @@ -450,7 +450,9 @@ class PlayController extends EventEmitter { if (next) { if (this.trackDisplayFile) { - await writeFile(this.trackDisplayFile, getItemPathString(this.currentTrack)) + await writeFile(this.trackDisplayFile, + getItemPathString(this.currentTrack[sourceSymbol]) + ) } await this.playFile(next) |