diff options
author | Florrie <towerofnix@gmail.com> | 2020-07-09 14:40:25 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2020-07-09 16:19:17 -0300 |
commit | 8baf386abdf611acd855e61578f06cf7ac8f014f (patch) | |
tree | 357d36d07df7ce57a78394c942c7baa013ffc4f2 /client.js | |
parent | 0e0cb91ffc1e7a28a03428528d437e074145a72e (diff) |
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.
Diffstat (limited to 'client.js')
-rw-r--r-- | client.js | 3 |
1 files changed, 1 insertions, 2 deletions
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) |