« get me outta code hell

rename handlePlaylistSource & let accept grouplike - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-09 14:40:25 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-09 16:19:17 -0300
commit8baf386abdf611acd855e61578f06cf7ac8f014f (patch)
tree357d36d07df7ce57a78394c942c7baa013ffc4f2 /index.js
parent0e0cb91ffc1e7a28a03428528d437e074145a72e (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 'index.js')
-rwxr-xr-xindex.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index c40bbb9..4b7654d 100755
--- a/index.js
+++ b/index.js
@@ -125,7 +125,7 @@ async function main() {
 
   const loadPlaylists = async () => {
     for (const source of playlistSources) {
-      await appElement.handlePlaylistSource(source, true)
+      await appElement.loadPlaylistOrSource(source, true)
     }
   }