Can this be done with a script?

Associate
Joined
23 Apr 2007
Posts
1,785
Location
Cardiff-ish, Wales
Hi guys,

I'm running XBMC as a front end for my HTPC and have set up my music videos with indvidual nfo files as I've had trouble automatically scraping them. I've also tried setting up smart playlists for just music videos (using Aeon65 skin) but if I select Mixed instead of Songs I can't add any rules. If I use Songs, and add rules then I get both CD songs as well as music videos. The best way I've found is to add a rule that contains the text "Music Video" within Genre. I've gone into the nfo files and added "Music Video" within the Genre line and tested it on a few videos and it works perfectly. I now need to go back into all my nfo files and add this identifier. Is there a way of doing this automatically? The script (assuming it is a script) would need to go through a standard tree structure eg:

\\Server\MyMusicVideos\Muse

Although some groups have album folders beneath the band e.g.

\\Server\MyMusicVideos\Whitesnake\1987

and

\\Server\MyMusicVideos\Whitesnake\Slip Of The Tongue

Also, I'm guessing I'd need to do add a find and replace <Genre> with <Genre>Music Video in the script somewhere

Any thoughts, pointers, general help would be greatfully appreciated.
 
It was part of the NT4 reskit but if you can get hold of it 'munge' was a good way of replacing strings in files. You'd probably need to wrap it in some other code like a FOR loop but it should do the trick.
If not I'm sure others have mentioned apps on here before for this very purpose. I think I may have some VB someone at work gave me that might do this as well. If I remember and can find it on Monday I'll post it.
 
Are there any free applications that you know of? I've downloaded MassFileEdit that works fine within a single folder, but I'm having trouble running it over multiple layers. Although the instructions say it should work ...
 
Back
Top Bottom