Popular recipes by Kai Xia http://code.activestate.com/recipes/users/4168327/2011-10-12T05:29:30-07:00ActiveState Code RecipesConvert Audio CD track in iTunes with Python (Python) 2011-10-12T05:29:30-07:00Kai Xiahttp://code.activestate.com/recipes/users/4168327/http://code.activestate.com/recipes/577904-convert-audio-cd-track-in-itunes-with-python/ <p style="color: grey"> Python recipe 577904 by <a href="/recipes/users/4168327/">Kai Xia</a> (<a href="/recipes/tags/itunes/">itunes</a>, <a href="/recipes/tags/win32com/">win32com</a>). </p> <p>This script would do convert tracks from an audio cd into Apple lossless music using iTunes.</p> <p>When we have a bad cd rom or a bad disk, conversion would usually fail and iTunes would not complain about it. I usually have to check every converted track manually. This script would save the pain: it would check every converted track, if the duration of the converted track is less than the original track, the script would retry the conversion.</p> <p>This script is inspired by <a href="http://code.activestate.com/recipes/users/4010550/">Fabien C.</a> 's <a href="http://code.activestate.com/recipes/498241/">Recipe 498241</a>.</p>