« get me outta code hell

Make --track-display-file show SOURCE path to track - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/play.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-02-16 11:02:51 -0400
committerFlorrie <towerofnix@gmail.com>2018-02-16 11:02:53 -0400
commit1b5d6f8f96baae53367a7a7d0f9485a42029eaa3 (patch)
treec5eeedd7e0bac198c4070c3cb688a5dfadc8fa77 /src/play.js
parente249bda854212d9ba29015b0c895b72aa2ee3cad (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/play.js')
-rwxr-xr-xsrc/play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/play.js b/src/play.js
index a3481ea..d5df591 100755
--- a/src/play.js
+++ b/src/play.js
@@ -158,7 +158,9 @@ async function main(args) {
 
     // ..And finally, we have to update the playlist format again, since
     // processSmartPlaylist might have added new (un-updated) items:
-    const finalPlaylist = updatePlaylistFormat(processedPlaylist)
+    const finalPlaylist = updatePlaylistFormat(processedPlaylist, true)
+    // We also pass true so that the playlist-format-updater knows that this
+    // is the source playlist.
 
     sourcePlaylist = finalPlaylist