Hi everyone,
Is it possible to generate a txt file with this information?
Line 1: album, albumartist, year.
Line two: artist name (number of tracks for that artist).
And this for my entire music folder.
So for instance:
Home Alone (John Williams, 2015)
John Williams (23), Mel Tormé (2).
Thank you!
Here is a quick and dirty attempt:
$filename(artistcount.txt,utf-8)
$loop(%album% %albumartist% %year%)%album%|%albumartist%|%year%
$loop(%artist%)$loopend()%artist%: %_total_files%
$loopend()
That sort of works, but it does not return artists that differ from the album artist.
Try if this is better:
$filename(artistcount.txt,utf-8)
$loop(%album%)%album%|%albumartist%|%year%$loop(%albumartist%)
$loop(%artist%)$loop(%artist%,1)
$loopend()%artist%: %_total_files%$loopend()
$loopend()$loopend()
One more question. Would there be a way to make this script work for albums that have different album artists? So in that case I'd like one album artist, then the artist count, then the second album artist, a new artist count etc.
You could add further sorting criteria in the first $loop() e.g.
$loop(%album% %albumartist%)
and see if you get the better results.