From 8baf386abdf611acd855e61578f06cf7ac8f014f Mon Sep 17 00:00:00 2001 From: Florrie Date: Thu, 9 Jul 2020 14:40:25 -0300 Subject: rename handlePlaylistSource & let accept grouplike It's called loadPlaylistOrSource now, and can take a grouplike (which it will process with processSmartPlaylist as usual) instead of a URL to pass to a crawler. This is so that all functionality for loading a playlist can be collected in and accessed through one interface, so that modifications to the way playlists are loaded will be reflected across everywhere that loads a playlist. --- client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'client.js') diff --git a/client.js b/client.js index 33cc62a..645fe42 100644 --- a/client.js +++ b/client.js @@ -70,8 +70,7 @@ const setupClient = async ({backend, writable, interfacer, appConfig}) => { ' or pass mtui your own playlist.json file!)'), source: ['crawl-local', os.homedir() + '/Music'] } - grouplike = await processSmartPlaylist(grouplike) - appElement.tabber.currentElement.loadGrouplike(grouplike) + await appElement.loadPlaylistOrSource(grouplike, true) root.select(appElement) -- cgit 1.3.0-6-gf8a5 From 05d29dff7b14bc1a1ea641bbb03314ec308610df Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 15 Sep 2020 17:01:58 -0300 Subject: rename "song" terminology to "track" We've always used "track" as the proper term, but these managed to slip by over time anyway. Oops! --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.js') diff --git a/client.js b/client.js index 645fe42..aa854ed 100644 --- a/client.js +++ b/client.js @@ -66,7 +66,7 @@ const setupClient = async ({backend, writable, interfacer, appConfig}) => { let grouplike = { name: 'My ~/Music Library', comment: ( - '(Add songs and folders to ~/Music to make them show up here,' + + '(Add tracks and folders to ~/Music to make them show up here,' + ' or pass mtui your own playlist.json file!)'), source: ['crawl-local', os.homedir() + '/Music'] } -- cgit 1.3.0-6-gf8a5