Simple OnTrackAdded Tagging script

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Simple OnTrackAdded Tagging script

Re: Simple OnTrackAdded Tagging script

by TheAlfred » Sat Apr 10, 2010 3:21 am

Thanks, I must have missed that. The next steps are easy...

Re: Simple OnTrackAdded Tagging script

by Teknojnky » Fri Apr 09, 2010 2:34 pm

see
http://www.mediamonkey.com/wiki/index.p ... TrackAdded

the obj passed back to your script should be a SDBSongData object

Simple OnTrackAdded Tagging script

by TheAlfred » Fri Apr 09, 2010 2:23 pm

Hi guys,

i was trying to do a script on my own for a problem I couldn't find a proper solution anywhere. But I find it pretty hard to get started.

I want to do the following:
- OnTrackAdded
- check if track is of the type Podcast
- if yes, copy the "album" tag to the "artist" and "album artist" tag.

I want to do this because I want to transfer the podcasts to my portable media player and I really do not care what the person is called who read the podcast and if these tags are set to the name of every individual reader, this spoils it's library.

I managed to get my "script" called on the "OnTrackAdded" event, but I don't know of what kind this passed object is. I can't find a documentation for this.

How would I update the fields in the tags and the database once I could access the object?

Any help would be greatly appreciated...

Best regards
A.

Top