Skip to content

lavaground/FileCleanup-PowerShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileCleanup-PowerShell

A simple tool to remove titles, tags & subtiltes and RegEx search & replace the filename from multiple video files in a specified folder.

CAUTION:

Do not use this on your movies/tv folder directly, it might:

  • remove desired subtitles
  • and/or -->!!!delete your files!!!<--

Requirements

MKV

Setup

  • Add the MKVToolNix Folder to your PATH

    Optional - Default Parameters

    • Edit Line 02: RegEx patterns or leave them as they are
    • Edit Line 03: RegEx patterns or leave them as they are
    • Edit Line 04: Change file extension
    • Edit Line 05: "PATH\TO\YOUR\CLEANUP\FOLDER"

    Usefull RegEx Patterns

    For Movies

    • Search for: "(^.*720p).*"
    • Replace with: "`$1.x265.mkv"

    For TV Shows

    • Search for: "(^.*S[\d]+E[\d]+).*"
    • Replace with: "`$1.720p.x265.mkv"

Usage

Run the script via:

  • Right-Click -> "Run with PowerShell"

  • PowerShell .\_Cleanup.ps1

  • CMD powershell .\_Cleanup.ps1

    Optional Parameters

    • -FileExtension extension
    • -ReplaceWith regex
    • -SearchFor regex
    • -RootFolder PATH\TO\ROOT\FOLDER

Notes

  • This script will delete all titles, tags and subtitles from the files in a specified folder and regex search and replace the names.
  • The RegEx is set for TV Show filenames: *.S**E**.720p.x265.mkv.

CAUTION AGAIN:

Do not use this on your movies/tv folder directly, it might:

  • remove desired subtitles
  • and/or -->!!!delete your files!!!<--

About

A simple tool to remove tiltes, tags and subtiltes from multiple mkv containers and regex-rename afterwards

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published