Jump to content

Help with Bulk Move and Renaming Extras?


Chyron

Recommended Posts

Chyron

Having previously used Plex primarily for my media usage, my extras (featurettes, behind the scenes, et al.) are labeled as:

 \Movies\[Movie (Year)]\[title]-featurette.m4v

How do I bulk move everything in bulk to subfolders relative to their present locations and rename them?

 

I'm aware that Bulk Rename Utility can maybe do this, but I can't figure out how to use it. I already accidentally made my Apollo 13 extras disappear to God-knows-where by telling Bulk Rename Utility to move them to .\Featurettes\, which apparently doesn't do what I thought it would.

 

Can anyone help me out?

Link to comment
Share on other sites

Happy2Play

Powershell

$Directories = GCI "ENTER YOUR MOVIES PATH"
Foreach($Directory in $Directories){
    $Featurette = GCI $Directory.FullName -Recurse -File -Filter *featurette*
    
    IF($Featurette){
        IF(!(Test-Path "$($Directory.FullName)\Featurettes")){
            New-Item "$($Directory.FullName)\Featurettes" -Type Directory
        }
    Move-Item $Featurette.FullName "$($Directory.FullName)\Featurettes"
    }
}

Tested on a dummy test library without issue.  Only tested moving featurette to Featurettes subfolder. But same concept for others as shown in like below.

 

Got from here

https://www.reddit.com/r/PowerShell/comments/9baick/this_seemed_like_a_simple_goal_but_turns_out_i/

Edited by Happy2Play
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...