ExtractFields v0.1.4 [MM2+3]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Libelula
Posts: 2
Joined: Sat Mar 15, 2008 8:44 pm

Great Script!

Post by Libelula » Sat Mar 15, 2008 8:47 pm

Hi, just wanted to say thank you for the script. Really helped me out organizing a load of audio books. For some reason each cd had different tags & even the filenames didn't follow the same pattern.

BIG HUG :D

sommo

Post by sommo » Tue Mar 25, 2008 3:00 pm

Thanks for this!!!

Davo
Posts: 296
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo » Thu Mar 27, 2008 5:13 pm

Just started using this exellent script. I'm not that familiar with script parsing but using the examples in the posts i've picked up a fair bit of info. I'd appreciate some help with this situation:-

TITLE = [George Gershwin] The Man I Love

What i'd like to do is remove the parenthesis [ ] & copy the "George Gershwin" part of the title into the COMPOSER field leaving "The Man I Love" as the TITLE.

David

Davo
Posts: 296
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo » Thu Mar 27, 2008 6:34 pm

Exploring this a bit more i see that if i use:-
TITLE --> <Title>]<Skip> it will remove all the characters from ] to the end of the string. This works ok on the TITLE field but not the COMPOSER field.
A primer on all this stuff would be really good if anyone can point me in the right direction.

David

Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm
Location: Belgium
Contact:

Post by Steegy » Fri Mar 28, 2008 6:51 pm

Can't try for the moment, but
Title --> [<Composer>] <Title>
should do the trick.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).

Davo
Posts: 296
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo » Fri Mar 28, 2008 7:50 pm

Thanks Steegy that worked fine & simpler than i thought.

David

sommo

Post by sommo » Tue Apr 15, 2008 10:47 am

Handy!
Idea: What about replace Tag?

supremeox
Posts: 15
Joined: Thu Apr 17, 2008 1:53 am
Location: California

Network oddities.

Post by supremeox » Thu Apr 17, 2008 1:54 am

I ran this on all my "Various Artists" tracks so the artist is "various" and the album artist is the artist. My new iPod is now sorting correctly, so far so good.

But when I scanned my library into my second computer on the network, it's appearing the same as before running this script. Is this something that just messes with the database, or are the actual tags in the file changed, and if the tags are changed, what's the explanation for my networked PC finding the data the old way? Do I need to run the script on my other PC, or will that mess everything up?

Thanks.

nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan » Thu Apr 17, 2008 5:39 am

Have you saved your changes to the tag?? It reads like you have only made the changes in your original database which is why they are not being picked up in your secondary database.

Nyn
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

Davo
Posts: 296
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo » Mon May 05, 2008 6:18 pm

Steegy - Could the "Grouping" tag field be added to ExtractFields.

Thanks - David

Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm
Location: Belgium
Contact:

Post by Steegy » Tue May 06, 2008 3:59 pm

Sure. Using the information from here and here, you can add quite some new fields to be used with ExtractFields.

You need to be at the last part of the script code (the EXTRA ENUMERATIONS section).
For the grouping field, you can/should add "%ZO" to the CommonTags array, "Grouping" to the SongDataFields array and "%ZO", "Grouping" to the FieldDict dictionary.

See the example below:

Code: Select all

Dim CommonTags : CommonTags = Array("%A", "%L", "%S", "%G", "%T", "%Y", "%X", "%R", "%C", "%M", "%B", "%U", "%V", "%W", "%P", "%F", "%ZO") 


' Enumeration of the most important fields in the SongData object 
Dim SongDataFields : SongDataFields = Array( _ 
        "AlbumArtistName", _ 
        "AlbumName", _ 
        "ArtistName", _ 
        "Author", _ 
        "Band", _ 
        "Bitrate", _ 
        "BPM", _ 
        "Comment", _ 
        "Conductor", _ 
        "Copyright", _ 
        "Custom1", _ 
        "Custom2", _ 
        "Custom3", _ 
        "Encoder", _ 
        "Genre", _ 
        "InvolvedPeople", _ 
        "Lyricist", _ 
        "Lyrics", _ 
        "MediaLabel", _ 
        "Mood", _ 
        "MusicComposer", _ 
        "Occasion", _ 
        "OriginalArtist", _ 
        "OriginalLyricist", _ 
        "OriginalTitle", _ 
        "OriginalYear", _ 
        "Publisher", _ 
        "Quality", _ 
        "Rating", _ 
        "Tempo", _ 
        "Title", _ 
        "TrackOrder", _ 
        "Year", _
        "Grouping") 
        
Dim FieldDict : Set FieldDict = CreateObject("Scripting.Dictionary") 
With FieldDict 
  .Add "%A", "ArtistName" 
  .Add "%C", "Author" 
  .Add "%G", "Genre" 
  .Add "%L", "AlbumName" 
  .Add "%M", "BPM" 
  .Add "%R", "AlbumArtistName" 
  .Add "%S", "Title" 
  .Add "%T", "TrackOrder" 
  .Add "%U", "Custom1" 
  .Add "%V", "Custom2" 
  .Add "%W", "Custom3" 
  .Add "%Y", "Year" 
  .Add "%P", "Path"
  .Add "%ZO", "Grouping" 
End With
After that you can use the Grouping field in the same way as the other fields.

Cheers
Steegy
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).

Davo
Posts: 296
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo » Tue May 06, 2008 8:24 pm

Thanks for the info - I'll give it a go ( my first attempt at altering a script)

David

Davo
Posts: 296
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Post by Davo » Tue May 06, 2008 11:05 pm

Fantastic - worked first time. Thanks again for a great script & your help.

David

sperk
Posts: 90
Joined: Wed Oct 11, 2006 1:52 pm

Post by sperk » Sun Jun 01, 2008 10:13 pm

can you use this to remove trailing text from a song title?
e.g. title.artist and you want to remove .artist

thanks
Last edited by sperk on Tue Jun 03, 2008 12:18 am, edited 2 times in total.

nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Post by nohitter151 » Sun Jun 01, 2008 10:44 pm

Why would you want to remove the extension from the file? Doing so would make the file unplayable.
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.

Post Reply