Skip to content

Instantly share code, notes, and snippets.

@grayatrox
Created August 2, 2013 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grayatrox/6138210 to your computer and use it in GitHub Desktop.
Save grayatrox/6138210 to your computer and use it in GitHub Desktop.
logic/pesudo code for rebuilding "iTunes Music Library.xml"
another program rearranged my music library, so I need to rebuild the itunes xml
without loosing playlists, so I can finish migrating to another media program
list files from xml that don't exist in listed posiston, including name, artist and album
find all files with old filename from xml (I want to keep duplicate songs from different albums)
if id3 matches xml, update file location (already written id3 function. It exctacts all meta data from id3 into an array)
fileselectfile any files that don't get automatically matched (most likely from missing id3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment