I'm sure this has been asked many times before, but when trying to search the forums I'm obviously not using just the right language to pick up the search results.
I'm looking to move my MM4 scripts to MM5. Understanding JavaScript isn't the issue.
All my scripts are based on selecting a number of file sand performing one or more actions on them.
I'd really like to see an example of how to do this (I'm happy with aSync) and to create a boilerplate addon I can use to start migrating.
I've looked at some of the stuff on GitHub (https://github.com/ventismedia/mediamon ... /tree/main), and it appears you only need to apply the track level callback and that MM5 will do the rest. Or I may have completely misread it.
Most of my scripts simply tidy up the tag and format things the way I want them, but a key one for me is removing and re-adding the album art (folder.jpg). I source as hi-res a file as possible, then have the script remove all existing artwork and then just add the one that I want.
Probably jumping in at the deep end, but if I can get that one working, then the rest will be very easy in comparison.
Even if an addon already exists, creating it from scratch will help my learning.
TIA...
My First AddOn
Moderators: jiri, drakinite, Addon Administrators
Re: My First AddOn
Hi,
as for addons creation see this: https://www.mediamonkey.com/docs/api/
Also some sample scripts are in MM5 install folder > sampleScripts subfolder, the pre-installed scripts are within scripts folder,
already existing addons for MM5: https://www.mediamonkey.com/addons/brow ... amonkey-5/
If you download the MMIP file you can rename it to ZIP and unpack to see the source code for inspiration..
https://www.mediamonkey.com/addons/brow ... album-art/
FYI: The newest beta version has addons installable/browseable from within MM5 > Tools > Addons :
https://www.mediamonkey.com/forum/viewt ... 86639&sd=d
as for addons creation see this: https://www.mediamonkey.com/docs/api/
Also some sample scripts are in MM5 install folder > sampleScripts subfolder, the pre-installed scripts are within scripts folder,
already existing addons for MM5: https://www.mediamonkey.com/addons/brow ... amonkey-5/
If you download the MMIP file you can rename it to ZIP and unpack to see the source code for inspiration..
As for the script/addon you are looking for, this one looks very similar:but a key one for me is removing and re-adding the album art (folder.jpg). I source as hi-res a file as possible, then have the script remove all existing artwork and then just add the one that I want.
https://www.mediamonkey.com/addons/brow ... album-art/
FYI: The newest beta version has addons installable/browseable from within MM5 > Tools > Addons :
https://www.mediamonkey.com/forum/viewt ... 86639&sd=d