Name | open-in-mpv JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | Host-side of the extension to open any link or page URL in mpv via the browser context menu. |
upload_time | 2023-06-12 06:15:41 |
maintainer | |
docs_url | None |
author | Andrew Udvare |
requires_python | >=3.10,<4.0 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Open in mpv
[![QA](https://github.com/Tatsh/open-in-mpv/workflows/QA/badge.svg)](https://github.com/Tatsh/open-in-mpv/actions?query=workflow%3AQA)
[![Lint Python](https://github.com/Tatsh/open-in-mpv/workflows/Lint%20python/badge.svg)](https://github.com/Tatsh/open-in-mpv/actions?query=workflow%3A%22Lint+python%22)
![Context menu item](context-item.png)
This browser extension displays a context menu item _Open in mpv_ for links. When clicked it will
pass the URL of the link to mpv (which must be `PATH`).
If you have yt-dlp installed and in `PATH`, then mpv will try to use it to resolve URLs it cannot
handle. This means you can right-click on any YouTube video page or link, choose `Open in mpv` and
view the video with mpv.
## Installation
First, [install the extension](https://chrome.google.com/webstore/detail/open-in-mpv/ggijpepdpiehgbiknmfpfbhcalffjlbj/).
Quit your browser.
There are many ways to perform the next step. Below is the most basic, assuming you have Pip
installed. Before running the commands below, quit your browser.
Gentoo users can simply install `media-video/open-in-mpv` from
[my overlay](https://github.com/Tatsh/tatsh-overlay).
```shell
pip install --user open-in-mpv
open-in-mpv-install --user
```
The above will install the native host JSON file to supported Chromium-based browsers whose paths are
known, but only if the browser has created the directories before. If you want to force the
installation you can pass `--force`.
See `open-in-mpv-install --help` for more options. Linux users can pass the `--system` option to
install the native host part of the extension system-wide.
## Uninstallation
```shell
open-in-mpv-uninstall
pip remove --user open-in-mpv
```
Uninstall the extension from your browser.
## Known issues
**Linux**: mpv is launched with `--gpu-api=opengl` because with Vulkan it starts but fails to open a
window.
At this time, Windows is not supported by the `open-in-mpv` Python script. It may work, but it is
not supported.
Raw data
{
"_id": null,
"home_page": "",
"name": "open-in-mpv",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Andrew Udvare",
"author_email": "audvare@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0d/1c/2820f26e08d4a8006b1328a5044811d90732b618dc4e2335ff6cfeea409b/open_in_mpv-0.1.0.tar.gz",
"platform": null,
"description": "# Open in mpv\n\n[![QA](https://github.com/Tatsh/open-in-mpv/workflows/QA/badge.svg)](https://github.com/Tatsh/open-in-mpv/actions?query=workflow%3AQA)\n[![Lint Python](https://github.com/Tatsh/open-in-mpv/workflows/Lint%20python/badge.svg)](https://github.com/Tatsh/open-in-mpv/actions?query=workflow%3A%22Lint+python%22)\n\n![Context menu item](context-item.png)\n\nThis browser extension displays a context menu item _Open in mpv_ for links. When clicked it will\npass the URL of the link to mpv (which must be `PATH`).\n\nIf you have yt-dlp installed and in `PATH`, then mpv will try to use it to resolve URLs it cannot\nhandle. This means you can right-click on any YouTube video page or link, choose `Open in mpv` and\nview the video with mpv.\n\n## Installation\n\nFirst, [install the extension](https://chrome.google.com/webstore/detail/open-in-mpv/ggijpepdpiehgbiknmfpfbhcalffjlbj/).\nQuit your browser.\n\nThere are many ways to perform the next step. Below is the most basic, assuming you have Pip\ninstalled. Before running the commands below, quit your browser.\n\nGentoo users can simply install `media-video/open-in-mpv` from\n[my overlay](https://github.com/Tatsh/tatsh-overlay).\n\n```shell\npip install --user open-in-mpv\nopen-in-mpv-install --user\n```\n\nThe above will install the native host JSON file to supported Chromium-based browsers whose paths are\nknown, but only if the browser has created the directories before. If you want to force the\ninstallation you can pass `--force`.\n\nSee `open-in-mpv-install --help` for more options. Linux users can pass the `--system` option to\ninstall the native host part of the extension system-wide.\n\n## Uninstallation\n\n```shell\nopen-in-mpv-uninstall\npip remove --user open-in-mpv\n```\n\nUninstall the extension from your browser.\n\n## Known issues\n\n**Linux**: mpv is launched with `--gpu-api=opengl` because with Vulkan it starts but fails to open a\nwindow.\n\nAt this time, Windows is not supported by the `open-in-mpv` Python script. It may work, but it is\nnot supported.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Host-side of the extension to open any link or page URL in mpv via the browser context menu.",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "932481835a779748397f01d36597aea6f7d7e8fa54d0dd5669548b741ec1ea6c",
"md5": "7e07c77c34d27738cdf4a889a3eb545d",
"sha256": "4457dabf0a2f26f760e15e60da12ce1cdf9c58562c1296c475d0b4dbc6ef71d3"
},
"downloads": -1,
"filename": "open_in_mpv-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7e07c77c34d27738cdf4a889a3eb545d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 8031,
"upload_time": "2023-06-12T06:15:39",
"upload_time_iso_8601": "2023-06-12T06:15:39.699652Z",
"url": "https://files.pythonhosted.org/packages/93/24/81835a779748397f01d36597aea6f7d7e8fa54d0dd5669548b741ec1ea6c/open_in_mpv-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0d1c2820f26e08d4a8006b1328a5044811d90732b618dc4e2335ff6cfeea409b",
"md5": "047be4ceb03fd7e661e1a1249438a459",
"sha256": "400bf74663d44e460df84498381342cf76d31b09f13b5a554f86ec8ac36434e2"
},
"downloads": -1,
"filename": "open_in_mpv-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "047be4ceb03fd7e661e1a1249438a459",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 6251,
"upload_time": "2023-06-12T06:15:41",
"upload_time_iso_8601": "2023-06-12T06:15:41.367795Z",
"url": "https://files.pythonhosted.org/packages/0d/1c/2820f26e08d4a8006b1328a5044811d90732b618dc4e2335ff6cfeea409b/open_in_mpv-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-12 06:15:41",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "open-in-mpv"
}