diff options
author | liam4 <towerofnix@gmail.com> | 2017-07-20 16:00:35 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-07-20 16:00:35 -0300 |
commit | 2680ea9126499fb775b699f1dbd4ac9aacbc4e4a (patch) | |
tree | 3effd2dda6c682886787285858f19632c13f6635 /src | |
parent | 4bb2bcf5018d7a3e76de3df74c176f4330b19dbe (diff) |
Prefer album artist over artist in iTunes crawler
Diffstat (limited to 'src')
-rwxr-xr-x | src/crawl-itunes.js | 3 |
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' |