Code: Select all
Sub onStartup
Script.RegisterEvent SDB, "OnTrackAdded", "AddPodcast"
End Sub
Sub AddPodcast(track)
If UCase(track.Genre) = "PODCAST" Then
track.ArtistName = track.Genre
track.AlbumArtistName = track.Genre
track.UpdateArtist
track.UpdateAlbum
track.UpdateDB
End If
End SubI'd like to perform the following things automatically if not already set..
- volume analysis
- set rating to 2.5 stars
- clear genre or set to a user specified genre (ie _NewFiles_)
Now setting the rating doesn't seem too difficult, however I'm sure how (or if its possible) to programatically run volume analysis.
Further, when adding multiple tracks, I don't want to have a bunch of separate threads running one for each track added, having them queued together in the same manner as selecting an album and running the analysis normally sequentially in a single thread.
Any ideas?

