« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/crawl-itunes.js3
-rw-r--r--todo.txt5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/crawl-itunes.js b/src/crawl-itunes.js
index 8e07165..5cc1b55 100755
--- a/src/crawl-itunes.js
+++ b/src/crawl-itunes.js
@@ -66,7 +66,8 @@ async function crawl(libraryXML) {
     album = album && album.val
     album = album || 'Unknown Album'
 
-    let artist = getDictValue(trackDict, 'Artist')
+    let artist = getDictValue(trackDict, 'Album Artist')
+    artist = artist || getDictValue(trackDict, 'Artist')
     artist = artist && artist.val
     artist = artist || 'Unknown Artist'
 
diff --git a/todo.txt b/todo.txt
index a65ad2f..d74bf4b 100644
--- a/todo.txt
+++ b/todo.txt
@@ -218,3 +218,8 @@ TODO: Figure out how man pages work, and update the syntax in those files.
       more consistent, and figure out when to use '\-' or '-'.
 
 TODO: Fix skip up-next..!
+
+TODO: Make iTunes crawler prefer album artist over artist.
+      (Done!)
+
+TODO: Make iTunes crawler take into account track numbers.