From 2680ea9126499fb775b699f1dbd4ac9aacbc4e4a Mon Sep 17 00:00:00 2001 From: liam4 Date: Thu, 20 Jul 2017 16:00:35 -0300 Subject: Prefer album artist over artist in iTunes crawler --- src/crawl-itunes.js | 3 ++- todo.txt | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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. -- cgit 1.3.0-6-gf8a5