« get me outta code hell

Prefer album artist over artist in iTunes crawler - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-07-20 16:00:35 -0300
committerliam4 <towerofnix@gmail.com>2017-07-20 16:00:35 -0300
commit2680ea9126499fb775b699f1dbd4ac9aacbc4e4a (patch)
tree3effd2dda6c682886787285858f19632c13f6635 /src
parent4bb2bcf5018d7a3e76de3df74c176f4330b19dbe (diff)
Prefer album artist over artist in iTunes crawler
Diffstat (limited to 'src')
-rwxr-xr-xsrc/crawl-itunes.js3
1 files changed, 2 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'