CleanImport v1.1.0 [MM3+4]

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

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

Topic review
   

Expand view Topic review: CleanImport v1.1.0 [MM3+4]

Re: CleanImport v1.1.0 [MM3+4]

by skywalka » Sat Feb 07, 2015 4:26 am

Hi Steegy,

Would you consider making it possible to remove replay gain tags?

Thanx.

Re: CleanImport v1.1.0 [MM3+4]

by nohitter151 » Sat Feb 23, 2013 12:57 am

Tools > Extensions

Select the addon and press uninstall.

Re: CleanImport v1.1.0 [MM3+4]

by richjoh » Sat Feb 23, 2013 12:14 am

How do I UNinstall this script? What files do I delete?

Re: CleanImport v1.1.0 [MM3+4]

by Steegy » Sat Dec 15, 2012 10:39 am

You can add more fields (see leftmost column in SongData fields) in the Fields array.
But not all of them can be added though, only fields of type String, Long, Date, Boolean, ... (TEXT, REAL, INTEGER, BOOLEAN, DATE).
The database Value Type (TEXT, REAL, ...) can be seen in that table. If you click a field, a new page will open with more information about it, e.g. the field type (String, Long, ...) and possible values.
In the EmptyValues array then you also have to specify the default value you want, like the existing entries in the script.

Field Album can not be used (value type ISDBAlbum). Use AlbumName (value type String) instead.
Same for Artist. Instead of Artist use ArtistName.

Field Songwriter does not exist. Instead, maybe you mean Author, Lyricist, MusicComposer, ...?

Code: Select all

Fields = Array("Author", "Band", "Conductor", "InvolvedPeople", "Grouping", "Bookmark", "Genre", "Comment", "Lyrics", "Rating", "RatingString", "Tempo", "Quality", "Occasion", "Mood", "Publisher", "ISRC", "Encoder", "Copyright", "Lyricist", "OriginalLyricist")
    EmptyValues = Array("","","","","","0","","","","-1","","","","","","","","","","","")

Re: CleanImport v1.1.0 [MM3+4]

by dipe1 » Thu Dec 13, 2012 4:04 pm

Hey is there any chance to add all the missing Tags to this wonderful script?!
Like Album, Songwriter, ... etc.
I tried it myself but failed ;)

Would be a wonderful thing so i dont have to tick hundred of boxes to delete all the tags instead of title & artist.

Re: CleanImport v1.1.0 [MM3+4]

by Steegy » Thu Jun 14, 2012 1:52 pm

Brouwerik wrote:But this script could go godly if there was an option for fields to set "standard" values like a rating of 2,5.
In ...\MediaMonkey\Scripts\Auto\CleanImport.vbs:

Code: Select all

    Fields = Array("Author", "Band", "Conductor", "InvolvedPeople", "Grouping", "Bookmark", "Genre", "Comment", "Lyrics", "Rating", "RatingString", "Tempo", "Quality", "Occasion", "Mood", "Publisher", "ISRC", "Encoder", "Copyright", "Lyricist", "OriginalLyricist")
    EmptyValues = Array("","","","","","0","","","","-1","","","","","","","","","","","")
If you change the -1 value in the script (EmptyValue corresponding with the Field) to e.g. 50, then cleaning the Rating field would actually set it to 2,5 stars instead of none.
(see here for the rating values that can be used)



Kyle Maclean wrote:How can I use this extension with albums that I already have in my library?
As it is now you can't. MediaMonkey and some other scripts are powerful enough to do this, but maybe not as easy as select and click to get the job done.
For this, the script can be modified.
Add the following to ...\MediaMonkey\Scripts\Auto\CleanImport.vbs:

Code: Select all

Sub CleanSelectedTracks
    AllowCleaning = True
    Dim i
    For i = 0 To SDB.CurrentSongList.Count - 1
        CleanImportedTags SDB.CurrentSongList.Item(i)
    Next
End Sub
Add the following to ...\MediaMonkey\Scripts\Scripts.ini:

Code: Select all

[CleanSelectedTracks]
FileName=Auto\CleanImport.vbs
ProcName=CleanSelectedTracks
Order=1
DisplayName=Clean selected tracks
Description=Resets the chosen fields for the selected tracks
Language=VBScript
ScriptType=0
And (re)start MM. The entry "Clean selected tracks" is now added under menu Tools > Scripts.
If you want, you can set a shortcut key through menu Tools > Options... > General > Shortcut keys (or something like that). There add a new shortcut key for action 'General : Execute Script : Clean selected tracks' down at the bottom (you can also specify a shortcut key in Scripts.in, but that's not the correct way to do it anymore in MM3/4).

Cheers,
Steegy

Re: CleanImport v1.1.0 [MM3+4]

by Kyle Maclean » Thu Jun 14, 2012 10:53 am

How can I use this extension with albums that I already have in my library?

Re: CleanImport v1.1.0 [MM3+4]

by Brouwerik » Sat Aug 27, 2011 11:39 am

Another great script :D

But this script could go godly if there was an option for fields to set "standard" values like a rating of 2,5.

greetz

Re: CleanImport v1.1.0 [MM3+4]

by nynaevelan » Sun Jun 12, 2011 6:33 pm

Sheer Perfection, my first official new MM4 script. :D :D

Re: CleanImport v1.0.0 [MM3+4]

by Steegy » Sun Jun 12, 2011 5:42 pm

nynaevelan wrote:Nice, although I wish there was a way for it to save the settings without the confirmation each session, but I can live with that. Good job Steegy.
Ok, check out he new version.

Cheers,
Steegy

Re: CleanImport v1.0.0 [MM3+4]

by Dreadlau » Sun Jun 12, 2011 2:09 pm

Nice idea!

Thank you Steegy.

Re: CleanImport v1.0.0 [MM3+4]

by nynaevelan » Sun Jun 12, 2011 1:58 pm

Nice, although I wish there was a way for it to save the settings without the confirmation each session, but I can live with that. Good job Steegy.

Re: CleanImport v1.0.0 [MM3+4]

by heartofhate » Sun Jun 12, 2011 10:05 am

sounds really promissing. i'll try it out later

CleanImport v1.1.0 [MM3+4]

by Steegy » Sun Jun 12, 2011 9:20 am

:: Script CleanImport v1.1.0

When you import new tracks in your library, it can happen that some tags are added that you don't really want. Examples could be the song's Comments, Rating (your taste can be different than someone else's), fields that you don't care about like ISRC, Publisher, ... (of course this is all personal).
This script will automatically clear the specified fields when the tracks are added to the library.


Installation Package: CleanImport110.mmip


Information:

The script runs each time a new track is added in MediaMonkey.

Depending on your previous choice, you'll have to confirm that you want to clear the specified fields:
Image

The settings can be changed in the configuration panel:
Image
(Author being the composer)

The script will only clear the fields in the MediaMonkey library, so it will not change the files' tags (for this you can use MM's "synchronise tags" function). That means that, if you accidentally cleared some fields while importing, you can just import them again and all is well.


Note: If manually clearing a specific field is what you're looking for, then take a look at the Clear Field script.

Top