Friday, June 12, 2009

Visual Studio 2010

Next major version of iTSfv (version 6) will be coded from scratch in C# using Visual Studio 2010.

My initial plans for iTSfv 6 are:

  1. Complete support for Multi-disc albums when adding new music to iTunes: automatic guessing of Disc Count and Disc Number from file system
  2. Ability to add a folder of tracks at once
  3. Prevent scanning iTunes Library.xml on startup to improve load time
  4. Zero errors while iTSfv is operating
  5. Making use of editable Location property
  6. Ability to prevent storing artwork in Artwork folder

Monday, April 27, 2009

Location property is writable since iTunes 8.1.1

I was notified about this by an iTSfv user in SourceForge. That’s great news! This means easier implementations of the following:

  • relocating existing files
  • setting new location for currently dead tracks

DateAdded property is still read-only but a desirable property to have write access.

Setting new location for dead tracks

Current implementation of most iTunes addons including iTSfv is to remove dead tracks. The following scenario can be done:

  1. iTSfv iterates through iTunes music library
  2. iTSfv reads dead track Location as Nothing. It is important to note that File.Exists(track.Location) will not cause a NullPointException. It would rate give False.
  3. It is also important to implement the iTunes naming convention. This is needed for generating the file name of the track so that it can be searched in the new folder location. However, if the music files are not iTunes managed then the file names will not follow the iTunes naming conventions.
  4. If iTSfv finds a track with empty Location then
  5. iTSfv forms the file name using the track tags
  6. iTSfv appends the new folder location, sub-folder structure and file name to form the new file path.
  7. iTSfv sets the new location to track and saves the track