by ZvezdanD » Sat Nov 27, 2010 11:36 am
Well, if you read its page carefully, you would see that it is nothing really special. Firstly, you need to have already assigned lyrics to your tracks. Secondly, you need to specify which words are "explicit". Thirdly, that script just appends word "Explicit" to the Comment tag if it find some specified word in Lyrics tag, so you need to write some additional filter which will exclude such tracks during reproduction. If you ask me, this is all such nonsense - if I need to write some filter to exclude some tracks from reproduction, it would be same if I write filter with a condition: Comment contains "Explicit", or: Lyrics contains "bad_word_1" OR Lyrics contains "bad_word_2" OR ...
If you really insists on such solution, you could use Lyricator add-on to attach lyrics and RegExp Find & Replace add-on with following settings:
Preset: Append "Explicit" to Comment field if Lyrics contains some explicit word
Description: You need to specify which words are explicit, separated with "|"
Find what: $
Into: Comment
Regular expression 1: checked
Replace with:
Code: Select all
IIf(RegExp(oSongData.Lyrics, "<String Caption="Bad words" Value="bad_word_1|bad_word_2|bad_word_3">", 0) <> "" And InStr("$_", " Explicit") = 0, " Explicit", "")
VBScript expression: checked
However, if you already have attached lyrics, there is much better solution with Magic Nodes add-on:
Code: Select all
Tracks with explicit words in Lyrics|Filter: InStr(<Lyrics>, 'bad_word_1') > 0 OR InStr(<Lyrics>, 'bad_word_2') > 0 OR InStr(<Lyrics>, 'bad_word_3') > 0
Code: Select all
Tracks without explicit words in Lyrics|Filter: InStr(<Lyrics>, 'bad_word_1') = 0 AND InStr(<Lyrics>, 'bad_word_2') = 0 AND InStr(<Lyrics>, 'bad_word_3') = 0
Well, if you read its page carefully, you would see that it is nothing really special. Firstly, you need to have already assigned lyrics to your tracks. Secondly, you need to specify which words are "explicit". Thirdly, that script just appends word "Explicit" to the Comment tag if it find some specified word in Lyrics tag, so you need to write some additional filter which will exclude such tracks during reproduction. If you ask me, this is all such nonsense - if I need to write some filter to exclude some tracks from reproduction, it would be same if I write filter with a condition: Comment contains "Explicit", or: Lyrics contains "bad_word_1" OR Lyrics contains "bad_word_2" OR ...
If you really insists on such solution, you could use Lyricator add-on to attach lyrics and RegExp Find & Replace add-on with following settings:
Preset: Append "Explicit" to Comment field if Lyrics contains some explicit word
Description: You need to specify which words are explicit, separated with "|"
Find what: $
Into: Comment
Regular expression 1: checked
Replace with: [code]IIf(RegExp(oSongData.Lyrics, "<String Caption="Bad words" Value="bad_word_1|bad_word_2|bad_word_3">", 0) <> "" And InStr("$_", " Explicit") = 0, " Explicit", "")[/code]
VBScript expression: checked
However, if you already have attached lyrics, there is much better solution with Magic Nodes add-on:
[code]Tracks with explicit words in Lyrics|Filter: InStr(<Lyrics>, 'bad_word_1') > 0 OR InStr(<Lyrics>, 'bad_word_2') > 0 OR InStr(<Lyrics>, 'bad_word_3') > 0[/code]
[code]Tracks without explicit words in Lyrics|Filter: InStr(<Lyrics>, 'bad_word_1') = 0 AND InStr(<Lyrics>, 'bad_word_2') = 0 AND InStr(<Lyrics>, 'bad_word_3') = 0[/code]