Skip to content

Python script to scan iTunes library looking for files that have ID3 tags newer than the iTunes metadata

License

Notifications You must be signed in to change notification settings

varju/itunes-refresh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itunes-refresh

Update

This code is being imported for posterity, but I don't actually use it anymore, and don't know if it still works.

Overview

I have a decent amount of music stored on my computer, which gets shared between a number of different devices and media players. Recently I've become obsessed with retagging everything using the MusicBrainz database. Unfortunately, I found it very difficult to convince iTunes to reload the updated ID3 tags, and I wasn't willing to lose all my play count history.

Using the iTunes COM SDK, I've thrown together a tool that will examine all tracks in your iTunes library, looking for entries that have been changed on disk since the last time iTunes loaded the file. Any modified entries will be reloaded into iTunes, updating the track metadata while preserving play counts, etc. If an entry no longer exists on disk, it will be removed from the library.

This tool was written and tested against iTunes 7.0 on a Windows XP machine.

Usage

Start iTunes Run itunes-refresh

Known limitations

Currently I assume that all tracks represent files. Exceptions will probably be thrown for URL entries. Despite the exception, it should just move on to the next track and keep processing.

About

Python script to scan iTunes library looking for files that have ID3 tags newer than the iTunes metadata

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published