CleanImport v1.1.0 [MM3+4]
CleanImport v1.1.0 [MM3+4]
:: 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:
The settings can be changed in the configuration panel:
(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.
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:
The settings can be changed in the configuration panel:
(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.
Last edited by Steegy on Sun Jun 12, 2011 5:41 pm, edited 2 times in total.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
-
- Posts: 190
- Joined: Wed Jun 18, 2008 1:43 pm
- Location: berlin
Re: CleanImport v1.0.0 [MM3+4]
sounds really promissing. i'll try it out later
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Re: CleanImport v1.0.0 [MM3+4]
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.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Re: CleanImport v1.0.0 [MM3+4]
Nice idea!
Thank you Steegy.
Thank you Steegy.
Seven Ultimate X64 SP1 / Sansa Clip 2go (with RockBox)
Re: CleanImport v1.0.0 [MM3+4]
Ok, check out he new version.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.
Cheers,
Steegy
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
-
- Posts: 5559
- Joined: Wed Feb 07, 2007 11:07 pm
- Location: New Jersey, USA
- Contact:
Re: CleanImport v1.1.0 [MM3+4]
Sheer Perfection, my first official new MM4 script.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Link to Favorite Scripts/Skins
Join Dropbox, the online site to share your files
Re: CleanImport v1.1.0 [MM3+4]
Another great script
But this script could go godly if there was an option for fields to set "standard" values like a rating of 2,5.
greetz
But this script could go godly if there was an option for fields to set "standard" values like a rating of 2,5.
greetz
-
- Posts: 7
- Joined: Wed Jun 06, 2012 11:30 pm
Re: CleanImport v1.1.0 [MM3+4]
How can I use this extension with albums that I already have in my library?
Re: CleanImport v1.1.0 [MM3+4]
In ...\MediaMonkey\Scripts\Auto\CleanImport.vbs: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.
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","","","","","","","","","","","")
(see here for the rating values that can be used)
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.Kyle Maclean wrote:How can I use this extension with albums that I already have in my library?
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
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
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
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Re: CleanImport v1.1.0 [MM3+4]
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.
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]
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, ...?
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","","","","","","","","","","","")
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Re: CleanImport v1.1.0 [MM3+4]
How do I UNinstall this script? What files do I delete?
-
- Posts: 23640
- Joined: Wed Aug 09, 2006 10:20 am
- Location: NJ, USA
- Contact:
Re: CleanImport v1.1.0 [MM3+4]
Tools > Extensions
Select the addon and press uninstall.
Select the addon and press uninstall.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
Re: CleanImport v1.1.0 [MM3+4]
Hi Steegy,
Would you consider making it possible to remove replay gain tags?
Thanx.
Would you consider making it possible to remove replay gain tags?
Thanx.