yaksplat 58 Posted March 21, 2014 Share Posted March 21, 2014 I have over 1000 items that I want to remove the genres from. Is there an easy way to go about doing this? I still want the genres that I'm removing from these items to be available elsewhere, so I don't want to just use genre cleaner and map them to something else. Thoughts? 1 Link to comment Share on other sites More sharing options...
Luke 37272 Posted March 21, 2014 Share Posted March 21, 2014 Unfortunately we don't have bulk edit yet in the web interface. It's on the list, but not done yet. So you might have to rely on someone posting some mass xml updating tricks, which I've seen people do before. Link to comment Share on other sites More sharing options...
yaksplat 58 Posted March 21, 2014 Author Share Posted March 21, 2014 Time to write some powershell. Once I get it working I'll post the results here. Link to comment Share on other sites More sharing options...
bigjohn 656 Posted March 22, 2014 Share Posted March 22, 2014 Yeah, I did something similar with stripping tags out of the xml files, but did it with a regex in notepad++ http://mediabrowser.tv/community/index.php?/topic/3996-changes-to-tags/?p=61612 Thanks for posting the powershell, it will probably come in handy. Are you the same yaksplat that has a blog about custom MAME arcade mahines? Link to comment Share on other sites More sharing options...
Solution yaksplat 58 Posted March 22, 2014 Author Solution Share Posted March 22, 2014 (edited) powershell script to remove genres out of all xml files: $path = "<path goes here>" $files = Get-Childitem $path *.xml -Recurse | Where-Object { !($_.psiscontainer) } Function Editxml([string]$filename){ $xml = (get-content $filename) $genres = $xml.Genres $xml.Title.Genres.RemoveAll() $xml.save($filename)} Function FindFiles{ Foreach ($file In $files) { Editxml $file.FullName }} FindFiles Edited March 21, 2014 by yaksplat 3 Link to comment Share on other sites More sharing options...
yaksplat 58 Posted March 22, 2014 Author Share Posted March 22, 2014 That's me. As far as I know, I'm the only Yaksplat online, going back to when I made it up in '95 At the moment I'm in the process of restoring an old carnival digger. https://www.youtube.com/watch?v=sx3T78oLU0o Link to comment Share on other sites More sharing options...
pmac 132 Posted March 22, 2014 Share Posted March 22, 2014 At the moment I'm in the process of restoring an old carnival digger. https://www.youtube.com/watch?v=sx3T78oLU0o Do those things ever actually pick up any prizes?? haha Link to comment Share on other sites More sharing options...
bigjohn 656 Posted March 25, 2014 Share Posted March 25, 2014 That's me. As far as I know, I'm the only Yaksplat online, going back to when I made it up in '95 At the moment I'm in the process of restoring an old carnival digger. https://www.youtube.com/watch?v=sx3T78oLU0o Yeah, I figured that was you. Those arcade machines you built are awesome! I would love to have one of those. Link to comment Share on other sites More sharing options...
BATTLE DONKEY 98 Posted March 25, 2014 Share Posted March 25, 2014 I googled ur blog n have been reading up on ur mame cabinet build. I've wanted to make one myself for awhile, very informative. I never really put much thought into the power switch until I read ur blog, didn't realise there would be so much involved in having a single button to power everything up. Mind u I'm clueless to this stuff so to me it seems like a lot of work lol Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now