[feature] mpv / recently opened
This commit is contained in:
parent
cd1df46ba4
commit
6ef2505d71
27
win/bdiso-to-mkv.ps1
Normal file
27
win/bdiso-to-mkv.ps1
Normal file
|
@ -0,0 +1,27 @@
|
|||
param (
|
||||
[parameter(Mandatory=$false)] [switch] $Delete,
|
||||
[parameter(Mandatory=$false)] [string] $OutFormat=".mkv",
|
||||
[parameter(Mandatory=$true, Position=0)] [string] $InPath,
|
||||
[parameter(Mandatory=$true, Position=1)] [string] $OutPath
|
||||
)
|
||||
|
||||
if (-not (Test-Path -LiteralPath $InPath -Type Leaf)) {
|
||||
Write-Error "Invalid Input File Path $($InPath)"
|
||||
exit
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $OutPath)) {
|
||||
Write-Error "Invalid Output Path $($OutPath)"
|
||||
exit
|
||||
}
|
||||
if (Test-Path -LiteralPath $OutPath -PathType Container) {
|
||||
$OutPath = Join-Path $OutPath ((Split-Path -Leaf $InPath) + $OutFormat)
|
||||
}
|
||||
|
||||
$ConvertedInPath = Convert-Path -LiteralPath $InPath
|
||||
$InDrive = "bluray:$((Mount-DiskImage $ConvertedInPath | Get-Volume).DriveLetter):\\"
|
||||
ffmpeg.exe -i $InDrive -c:v copy $OutPath
|
||||
Dismount-DiskImage $ConvertedInPath
|
||||
if ($Delete) {
|
||||
Remove-Item -LiteralPath $InPath
|
||||
}
|
1
win/clear-recently-opened.ps1
Normal file
1
win/clear-recently-opened.ps1
Normal file
|
@ -0,0 +1 @@
|
|||
Remove-Item $env:AppData\Microsoft\Windows\Recent\* -Recurse
|
BIN
win/disable-recently-opened.reg
Normal file
BIN
win/disable-recently-opened.reg
Normal file
Binary file not shown.
4
win/mpv-bluray.ps1
Normal file
4
win/mpv-bluray.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
# https://sourceforge.net/projects/mpv-player-windows/files/
|
||||
$v = Mount-DiskImage $args[0] | Get-Volume
|
||||
D:\Programs\mpv\mpv.com "$($v.DriveLetter):\\"
|
||||
Dismount-DiskImage $args[0]
|
BIN
win/mpv-context-menu.reg
Normal file
BIN
win/mpv-context-menu.reg
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
# adminstration powershell:
|
||||
# adminstration powershell:
|
||||
# Set-ExecutionPolicy RemoteSigned
|
||||
# new-item -ItemType SymbolicLink -Target "D:\Nextcloud\klesh\config\win\profile.ps1" -Path $profile
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user