Giter Site home page Giter Site logo

mkvcleanup's Introduction

New PowerShell Version available

MKVCleanup-PowerShell

MKVCleanup

Edit "PATH\TO\YOUR\CLEANUP\FOLDER" accordingly and have fun. :)

This will delete all Titles and Tags from the files in the specified folder. It will also extract the Subtitles (if there are any), remove the first two lines and merge them back.

CAUTION: Do not use this on your movies/tv folder directly, it might remove desired subtitle lines.

mkvcleanup's People

Contributors

lavaground avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mkvcleanup's Issues

FileSystemWatcher

hi I'm using your script works really good for me. thank you very much
i was wondering if you can add a File System Watcher when ever we finish download any .mkv then the BATCH file get triggered.

i found something that's working for that with powershell, but because i am not a programmer i have no idea of what I'm doing but it think you can make it shine.

### SET FOLDER TO WATCH + FILES TO WATCH + SUBFOLDERS YES/NO
    $watcher = New-Object System.IO.FileSystemWatcher
    $watcher.Path = "Z:\media_downloads\downloads"
    $watcher.Filter = "*.mkv*"
    $watcher.IncludeSubdirectories = $true
    $watcher.EnableRaisingEvents = $true  

### DEFINE ACTIONS AFTER AN EVENT IS DETECTED
    $action = { start-process C:\tools\Cleanup_Eng.bat
              }    
### DECIDE WHICH EVENTS SHOULD BE WATCHED 
    Register-ObjectEvent $watcher "Changed" -Action $action
    while ($true) {sleep 5}

source:
https://itectec.com/superuser/how-to-monitor-a-folder-and-trigger-a-command-line-action-when-a-file-is-created-or-edited/
https://powershell.one/tricks/filesystem/filesystemwatcher
https://www.jamsscheduler.com/blog/how-to-execute-a-bat-file-within-a-powershell-job/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.