Welcome Guest

Pages: 1
Help with action to remove extra comments and fix bad year
knuj225PostDecember 6, 2015, 16:16
Newbie
Posts: 2
Registered:
December 6, 2015, 17:51
Normal topicHelp with action to remove extra comments and fix bad year

I was wondering if you could help me create a couple of actions that I am having difficulty in figuring out?

The first is to remove additional comment fields. My tracks have have the following extra comment fields that I would like to remove:

Hex: 43 4F 4D 4D 00 00 00 26 00 00 00 65 6E 67 53 6F 6E 67 73 2D 44 42 5F 50 72 65 66 65 72 65 6E 63 65 00 45 78 63 65 6C 6C 65 6E 74 20 63 6F 70 79
Text: COMM & engSongs-DB_Preference Excellent copy

Hex: 43 4F 4D 4D 00 00 00 28 00 00 00 65 6E 67 4D 75 73 69 63 4D 61 74 63 68 5F 50 72 65 66 65 72 65 6E 63 65 00 45 78 63 65 6C 6C 65 6E 74 20 63 6F 70 79
Text: COMM ( engMusicMatch_Preference Excellent copy

The second is to clean-up the year. My tracks have the year duplicated separated by a NULL:

Year
Hex: 54 44 52 43 00 00 00 0A 00 00 03 31 39 37 39 00 31 39 37 39
Text: TDRC 1979 1979

Any help you could provide would be appreciated. I've looked through the documentation but don't know how to select for the additional comment fields, or how to parse the date field to determine if it is duplicated and then replace it with the single value.

Thanks.

2MR2PostDecember 6, 2015, 16:58
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Normal topicRe: Help with action to remove extra comments and fix bad year

I'm currently on a laptop which is running v3.10 so I can't send you an action which you can run. However I can give you the steps.

The year is the easiest: simply do the following:

Substring [0, 4] of Year -> Variable 1
Copy the Variable 1 field to the Year field

Your comment seems to have a unique description which appears to be 'engMusicMatch_Preference'. You can get rid of them via:

Remove all Comments with case insensitive name 'engMusicMatch_Preference'

The above statement is the pretty print form of a User Defined Fields statement.

Screenshot attached.
Image

knuj225PostDecember 8, 2015, 01:46
Newbie
Posts: 2
Registered:
December 6, 2015, 17:51
Normal topicRe: Help with action to remove extra comments and fix bad year

Thanks for your assistance. I created the following action to clean the year, as well as remove a number of tags that were no longer required.

Force Grouped Execution
Comment The following section will fix Year fields where the year has been duplicated.
Substring [0, 4] of Year -> Variable 1
Substring [4, 3] of Year -> Variable 2
Substring [7, 4] of Year -> Variable 3
Test if the Variable 1 field is equal to Variable 3 (Set result)
Test if the Variable 2 field is equal to ";;;" (And result)
if true
Set the Year field to "\V1"
endif

Comment The following will remove the unhandled tag 'RGAD - Replay Gain Adjustment'
http://id3.org/Replay%20Gain%20Adjustment
Clear Unhandled for type: RGAD

Comment The following will remove unwanted tags.
Remove all Comments with case insensitive name 'Songs-DB_Preference'
Remove all Comments with case insensitive name 'MusicMatch_Preference'
Remove all User Defined Text Items with case insensitive name 'replaygain_track_gain'
Remove all User Defined Text Items with case insensitive name 'replaygain_track_peak'

2MR2PostDecember 8, 2015, 08:28
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Normal topicRe: Help with action to remove extra comments and fix bad year

Good stuff. I don't think I've ever seen a track with multiple values in the Year field before.

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.021 seconds.