Auto play in MPV
Automatically redirect to mpv player when playing online video.
Installation / Usage
- install auto-play-in-mpv:
pip install auto-play-in-mpvoruv tool install auto-play-in-mpv, start the server by executingapimin your terminal. - install tampermonkey/violentmonkey in your browser
- install the script from greasyfork
- just click a video from supported sites. (this script mainly works on bilibili. youtube support is not tested yet)
mpv config
Note that this is just my config example. You may need to change some settings.
If you find mpv is not playing the video, you may need to run mpv https://bilibili.com/video/xxx to test if your mpv profile is working.
Autostart server
It's better to start the websocket server automatically at startup.
- On general platforms: please use my another script user-startup-rs!
- On NixOS: Add this to your
configuration.nixsystemd.user.services.apim = { enable = true; description = "Open online video in local mpv player"; script = "~/.local/bin/apim"; wantedBy = [ "default.target" ]; path = with pkgs; [ mpv yt-dlp ]; }; # do not forget to add your current user to some groups users.users.<your_user_name> = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" "video" "render" "audio" ]; };
Supported sites
- bilibili (video, live)
- youtube
TODO
- auto start
- fix behavior on youtube
License
MIT
Metadata
Release files for auto-play-in-mpv 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auto_play_in_mpv-0.1.4.tar.gz | 21.3 kB | Without provenance | Details for auto_play_in_mpv-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auto_play_in_mpv-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for auto_play_in_mpv-0.1.4-py3-none-any.whl |
Total release size: 25.7 kB
Release files / auto_play_in_mpv-0.1.4.tar.gz
| Download URL | auto_play_in_mpv-0.1.4.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
823653c2ebb17454bc2eec4b57dfd2934634f3abacc79fdf508619dc0b481e58
|
|
BLAKE2b-256 checksum How to use checksums |
61863e38f3831f53f6b0c4c19e631bc152a85eb51b88b6a841ec8a2070a5f2cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / auto_play_in_mpv-0.1.4-py3-none-any.whl
| Download URL | auto_play_in_mpv-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c669aedccbc76a8e10d14757d2cef233f1cb9c1f512b9afd1eb187d1f518848
|
|
BLAKE2b-256 checksum How to use checksums |
3395988fd464490f29e7605c4fe27f78da5e617bedf795be16f6bb0293ee8dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Security for auto-play-in-mpv 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.