by jkimrey » Wed Nov 15, 2006 6:56 pm
Trixmoto,
It doesn't appear to be doing anything. Here's what I've done:
I set MM to scan the folder C:\Documents and Settings\Compaq_Administrator\My Documents\My Music\My Received Podcasts. This is my folder that Juice is downloading the podcasts to.
I then went to file/clear library. This removed the podcasts from the MM library. Then I chose to scan for new files. The podcasts showed up in the MM library, but the Genre was not 'Podcast' for all of them; some of them still had 'Other'.
To try things out, I just put a simple msgbox command, and it doesn't seem to be executing either when files are scanned into the MM library.
Here's the actual code that I pasted in the /Auto directory as 'AddPodcast.vbs':
Code: Select all
Sub onStartup
Script.RegisterEvent SDB, "OnTrackAdded", "AddPodcast"
End Sub
Sub AddPodcast(track)
If InStr(UCase(track.Path),"C:\Documents and Settings\Compaq_Administrator\My Documents\My Music\My Received Podcasts") > 0 Then
track.Genre = "Podcast"
track.UpdateDB
End If
End Sub
Of course I restarted MM after creating this file and before clearing the library. My version of MM is showing as 2.5.4.978.
Any other suggestions? This is driving me CRAZY!
Thanks!
trixmoto wrote:This should be possible with a small auto-script.
Create a textfile called ..\MediaMonkey\Scripts\Auto\AddPodcast.vbs and paste in the following code...
Code: Select all
Sub onStartup
Script.RegisterEvent SDB, "OnTrackAdded", "AddPodcast"
End Sub
Sub AddPodcast(track)
If InStr(UCase(track.Path),"\PODCAST") > 0 Then
track.Genre = "Podcast"
track.UpdateDB
End If
End Sub
You'll need to correct the folder name of your podcasts in the script for this to you. Then start MM, scan for some new podcasts and see if it works.
Trixmoto,
It doesn't appear to be doing anything. Here's what I've done:
I set MM to scan the folder C:\Documents and Settings\Compaq_Administrator\My Documents\My Music\My Received Podcasts. This is my folder that Juice is downloading the podcasts to.
I then went to file/clear library. This removed the podcasts from the MM library. Then I chose to scan for new files. The podcasts showed up in the MM library, but the Genre was not 'Podcast' for all of them; some of them still had 'Other'.
To try things out, I just put a simple msgbox command, and it doesn't seem to be executing either when files are scanned into the MM library.
Here's the actual code that I pasted in the /Auto directory as 'AddPodcast.vbs':
[code]Sub onStartup
Script.RegisterEvent SDB, "OnTrackAdded", "AddPodcast"
End Sub
Sub AddPodcast(track)
If InStr(UCase(track.Path),"C:\Documents and Settings\Compaq_Administrator\My Documents\My Music\My Received Podcasts") > 0 Then
track.Genre = "Podcast"
track.UpdateDB
End If
End Sub[/code]
Of course I restarted MM after creating this file and before clearing the library. My version of MM is showing as 2.5.4.978.
Any other suggestions? This is driving me CRAZY!
Thanks!
[quote="trixmoto"]This should be possible with a small auto-script.
Create a textfile called ..\MediaMonkey\Scripts\Auto\AddPodcast.vbs and paste in the following code...[code]Sub onStartup
Script.RegisterEvent SDB, "OnTrackAdded", "AddPodcast"
End Sub
Sub AddPodcast(track)
If InStr(UCase(track.Path),"\PODCAST") > 0 Then
track.Genre = "Podcast"
track.UpdateDB
End If
End Sub[/code]
You'll need to correct the folder name of your podcasts in the script for this to you. Then start MM, scan for some new podcasts and see if it works.[/quote]