This is probably a bit of a Simplistic question but for some reason I haven’t been able to get it to work. I would like to assign the release type to the grouping tag, ie deluxe version, remastered, live etc. what would the Picard script need to look like to achieve this?
It's far from simple.
There are many tags and variables available for such purposes.
See here for an overview:
https://picard-docs.musicbrainz.org/en/variables/variables.htmlHere is a testing script that retrieves tags that I know of that can provide such extra information on recordings and releases.
Make sure you have checked 'use track relationships' and 'use release relationships'.
Just load some tracks/albums in Picard, and see what content is available for these releases.
It should help you decide on which ones are useful to you.
(don't press 'Save' if you don't want to modify the files you are testing this on)
$set(001_recordingcomment,%_recordingcomment%)
$set(002_performance_attributes,%_performance_attributes%)
$set(003_releasecomment,%_releasecomment%)
$set(004_comment,%comment%)
$set(005_releasetype,%releasetype%)
$set(006_primaryreleasetype,%_primaryreleasetype%)
$set(007_secondaryreleasetype,%_secondaryreleasetype%)
$set(008_media,%media%)
$set(009_discsubtitle,%discsubtitle%)
$set(010_recording_series,%_recording_series%)
$set(011_recording_seriescomment,%_recording_seriescomment%)
$set(012_releaseannotation,%_releaseannotation%)
$set(013_release_series,%_release_series%)
$set(014_release_seriescomment,%_release_seriescomment%)
$set(015_releasegroupcomment,%_releasegroupcomment%)
$set(016_releasegroup_series,%_releasegroup_series%)
$set(017_work_series,%_work_series%)
$set(018_work_seriescomment,%_work_seriescomment%)
About writing the 'Grouping' tag:
Just do something like this:
$setmulti(grouping,%releasetype%)
Or if you want to go crazy and populate 'Grouping' with all that is available from the first script, use this:
$setmulti(grouping,%_recordingcomment%; %_performance_attributes%; %_releasecomment%; %comment%; %releasetype%; %_primaryreleasetype%; %_secondaryreleasetype%; %media%; %discsubtitle%; %_recording_series%; %_recording_seriescomment%; %_releaseannotation%; %_release_series%; %_release_seriescomment%; %_releasegroupcomment%; %_releasegroup_series%; %_work_series%; %_work_seriescomment%)
$copymerge(grouping,$cleanmulti(grouping))