-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
6,287 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
d3dcompiler_43.dll | ||
mpv.com | ||
mpv.exe | ||
yt-dlp.exe | ||
portable_config/recent.json | ||
portable_config/cache | ||
portable_config/scripts/uosc | ||
portable_config/fonts | ||
portable_config/scripts/menu.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# mpv-hero | ||
|
||
mpv media player from zero to hero. | ||
|
||
mpv-hero consists of: | ||
|
||
- Original/Vanilla mpv. | ||
- Some user scripts and tools that make mpv more feature rich, useful and beginner friendly. | ||
There is a feature rich and easy to use context menu. | ||
- Reasonable default values. | ||
|
||
Included user scripts and tools: | ||
|
||
- [mpv-menu-plugin](https://github.com/tsl0922/mpv-menu-plugin) - The context menu. | ||
- [uosc](https://github.com/tomasklaen/uosc) - Feature-rich minimalist proximity-based UI for MPV player. | ||
- [thumbfast](https://github.com/po5/thumbfast) - High-performance on-the-fly thumbnailer script. | ||
- [recent-menu](https://github.com/natural-harmonia-gropius/recent-menu) - Showing recently played files. | ||
- [command_palette](https://github.com/stax76/mpv-scripts) - A searchable menu. | ||
|
||
![](screenshot.webp) |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
@echo off | ||
setlocal enableextensions enabledelayedexpansion | ||
path %SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem | ||
|
||
:: Unattended install flag. When set, the script will not require user input. | ||
set unattended=no | ||
if "%1"=="/u" set unattended=yes | ||
|
||
:: Make sure the script is running as admin | ||
call :ensure_admin | ||
|
||
:: Delete "App Paths" entry | ||
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\mpv.exe" /f >nul | ||
|
||
:: Delete HKCR subkeys | ||
set classes_root_key=HKLM\SOFTWARE\Classes | ||
reg delete "%classes_root_key%\Applications\mpv.exe" /f >nul | ||
reg delete "%classes_root_key%\SystemFileAssociations\video\OpenWithList\mpv.exe" /f >nul | ||
reg delete "%classes_root_key%\SystemFileAssociations\audio\OpenWithList\mpv.exe" /f >nul | ||
|
||
:: Delete AutoPlay handlers | ||
set autoplay_key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers | ||
reg delete "%autoplay_key%\Handlers\MpvPlayDVDMovieOnArrival" /f >nul | ||
reg delete "%autoplay_key%\EventHandlers\PlayDVDMovieOnArrival" /v "MpvPlayDVDMovieOnArrival" /f >nul | ||
reg delete "%autoplay_key%\Handlers\MpvPlayBluRayOnArrival" /f >nul | ||
reg delete "%autoplay_key%\EventHandlers\PlayBluRayOnArrival" /v "MpvPlayBluRayOnArrival" /f >nul | ||
|
||
:: Delete "Default Programs" entry | ||
reg delete "HKLM\SOFTWARE\RegisteredApplications" /v "mpv" /f >nul | ||
reg delete "HKLM\SOFTWARE\Clients\Media\mpv\Capabilities" /f >nul | ||
|
||
:: Delete all OpenWithProgIds referencing ProgIds that start with io.mpv. | ||
for /f "usebackq eol= delims=" %%k in (`reg query "%classes_root_key%" /f "io.mpv.*" /s /v /c`) do ( | ||
set "key=%%k" | ||
echo !key!| findstr /r /i "^HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\\.[^\\][^\\]*\\OpenWithProgIds$" >nul | ||
if not errorlevel 1 ( | ||
for /f "usebackq eol= tokens=1" %%v in (`reg query "!key!" /f "io.mpv.*" /v /c`) do ( | ||
set "value=%%v" | ||
echo !value!| findstr /r /i "^io\.mpv\.[^\\][^\\]*$" >nul | ||
if not errorlevel 1 ( | ||
echo Deleting !key!\!value! | ||
reg delete "!key!" /v "!value!" /f >nul | ||
) | ||
) | ||
) | ||
) | ||
|
||
:: Delete all ProgIds starting with io.mpv. | ||
for /f "usebackq eol= delims=" %%k in (`reg query "%classes_root_key%" /f "io.mpv.*" /k /c`) do ( | ||
set "key=%%k" | ||
echo !key!| findstr /r /i "^HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\io\.mpv\.[^\\][^\\]*$" >nul | ||
if not errorlevel 1 ( | ||
echo Deleting !key! | ||
reg delete "!key!" /f >nul | ||
) | ||
) | ||
|
||
:: Delete start menu link | ||
del "%ProgramData%\Microsoft\Windows\Start Menu\Programs\mpv.lnk" | ||
|
||
echo Uninstalled successfully | ||
if [%unattended%] == [yes] exit 0 | ||
pause | ||
exit 0 | ||
|
||
:die | ||
if not [%1] == [] echo %~1 | ||
if [%unattended%] == [yes] exit 1 | ||
pause | ||
exit 1 | ||
|
||
:ensure_admin | ||
:: 'openfiles' is just a commmand that is present on all supported Windows | ||
:: versions, requires admin privileges and has no side effects, see: | ||
:: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights | ||
openfiles >nul 2>&1 | ||
if errorlevel 1 ( | ||
echo This batch script requires administrator privileges. Right-click on | ||
echo mpv-uninstall.bat and select "Run as administrator". | ||
call :die | ||
) | ||
goto :EOF |
Oops, something went wrong.