auto-play-in-mpv


Nameauto-play-in-mpv JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryAutomatically redirect to mpv player when playing online video
upload_time2024-08-30 10:44:43
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords mpv video
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Auto play in MPV

Automatically redirect to mpv player when playing online video.

## Installation / Usage

1. install auto-play-in-mpv: `pipx install auto-play-in-mpv`, start as `apim`.
2. install tampermonkey in your browser
3. [install the script from greasyfork](https://greasyfork.org/zh-CN/scripts/505562-auto-play-in-mpv)
4. just click a video from supported sites.

## mpv config

Note that this is just [my config example](https://github.com/lxl66566/nixos-config/tree/main/config/mpv/profile.conf). You may need to change some settings.

## Autostart server

It's better to start the websocket server at startup.

- On NixOS: Add this to your `configuration.nix`
  ```nix
  systemd.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
      kdePackages.kwallet
    ];
  };
  ```

## Supported sites

- [x] bilibili (video, live)
- [x] youtube

## TODO

- [ ] auto start
- [ ] fix behavior on youtube

## License

MIT

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "auto-play-in-mpv",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "mpv, video",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/8f/a8/6f8d96d8d7708f538cf656049e830706beb0a2a38ff32112da897efb7094/auto_play_in_mpv-0.1.2.tar.gz",
    "platform": null,
    "description": "# Auto play in MPV\n\nAutomatically redirect to mpv player when playing online video.\n\n## Installation / Usage\n\n1. install auto-play-in-mpv: `pipx install auto-play-in-mpv`, start as `apim`.\n2. install tampermonkey in your browser\n3. [install the script from greasyfork](https://greasyfork.org/zh-CN/scripts/505562-auto-play-in-mpv)\n4. just click a video from supported sites.\n\n## mpv config\n\nNote that this is just [my config example](https://github.com/lxl66566/nixos-config/tree/main/config/mpv/profile.conf). You may need to change some settings.\n\n## Autostart server\n\nIt's better to start the websocket server at startup.\n\n- On NixOS: Add this to your `configuration.nix`\n  ```nix\n  systemd.user.services.apim = {\n    enable = true;\n    description = \"Open online video in local mpv player\";\n    script = \"~/.local/bin/apim\";\n    wantedBy = [ \"default.target\" ];\n    path = with pkgs; [\n      mpv\n      yt-dlp\n      kdePackages.kwallet\n    ];\n  };\n  ```\n\n## Supported sites\n\n- [x] bilibili (video, live)\n- [x] youtube\n\n## TODO\n\n- [ ] auto start\n- [ ] fix behavior on youtube\n\n## License\n\nMIT\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Automatically redirect to mpv player when playing online video",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/lxl66566/auto-play-in-mpv",
        "Repository": "https://github.com/lxl66566/auto-play-in-mpv.git"
    },
    "split_keywords": [
        "mpv",
        " video"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4dd6ab37a83b6d6ade11e9001c6d5e291c62a4e9be45042bdcb633c3b0658599",
                "md5": "c16762f4623bb3296c685acb2fdc896b",
                "sha256": "64e31d3dda59b2c1203b179c8a9fbaf89e873fe09e40a9e6665fcb773ed015d6"
            },
            "downloads": -1,
            "filename": "auto_play_in_mpv-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c16762f4623bb3296c685acb2fdc896b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3865,
            "upload_time": "2024-08-30T10:44:40",
            "upload_time_iso_8601": "2024-08-30T10:44:40.707594Z",
            "url": "https://files.pythonhosted.org/packages/4d/d6/ab37a83b6d6ade11e9001c6d5e291c62a4e9be45042bdcb633c3b0658599/auto_play_in_mpv-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fa86f8d96d8d7708f538cf656049e830706beb0a2a38ff32112da897efb7094",
                "md5": "3cd9a435fd8b77f2b0a93eccea59e051",
                "sha256": "df2c80688b046b4d1d25a87cd151583a226c5859dc4c2cbfdf9e76350665873b"
            },
            "downloads": -1,
            "filename": "auto_play_in_mpv-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "3cd9a435fd8b77f2b0a93eccea59e051",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 13044,
            "upload_time": "2024-08-30T10:44:43",
            "upload_time_iso_8601": "2024-08-30T10:44:43.162801Z",
            "url": "https://files.pythonhosted.org/packages/8f/a8/6f8d96d8d7708f538cf656049e830706beb0a2a38ff32112da897efb7094/auto_play_in_mpv-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-30 10:44:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lxl66566",
    "github_project": "auto-play-in-mpv",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "auto-play-in-mpv"
}
        
Elapsed time: 1.09064s