A couple of decades ago — well before a $10 monthly fee would unlock access to virtually every song ever recorded through streaming services — digital music piracy was rampant around the world.