This repository is responsible for maintaining commonly used js scripts and making them installable via @mpv-easy/mpsm. Each script can be used individually or in combination, and will try to avoid functional conflicts caused by multiple scripts.
Create a new JSON file in the scripts folder, using the script name as the filename (e.g. thumbfast.json).
The file content should follow this format:
{
"name": "thumbfast",
"download": "https://github.com/po5/thumbfast/archive/refs/heads/master.zip",
"description": "High-performance on-the-fly thumbnailer for mpv.",
"author": "po5",
"homepage": "https://github.com/po5/thumbfast"
}The download field supports the following link formats:
- GitHub ZIP:
https://github.com/{owner}/{repo}/archive/refs/heads/{branch}.zip - GitHub Gist:
https://gist.github.com/{owner}/{gist_id} - GitHub Release:
https://github.com/{owner}/{repo}/releases/download/{tag}/{filename}
Note: The script file name should be consistent with the script name in meta, in order to avoid problems in some extreme cases. If you encounter problems, please open an issue.
npm run update:fullThis will automatically update all related documentation.
Commit your changes and submit a PR.
run ci https://github.com/ahaoboy/mpv-easy-cdn/actions/workflows/update.yml on dev branch
Note: After the script is added, the CDN repository mpv-easy-cdn will automatically update
scripts-full.jsondaily, fetching the latest script content based on the download links.
https://github.com/mpv-easy/mpv-build
https://mpv-easy.github.io/mpv-build/
set -x MPV_SCRIPT_DIR=/your_mpv_dir/portable_config/scripts ; pnpm run devexport MPV_SCRIPT_DIR=/your_mpv_dir/portable_config/scripts && pnpm run dev