{"id":13427253,"url":"https://github.com/steinuil/mpv-livetweet","last_synced_at":"2025-12-25T04:55:48.672Z","repository":{"id":26386121,"uuid":"29835587","full_name":"steinuil/mpv-livetweet","owner":"steinuil","description":"Send screenshots to twitter directly from mpv","archived":false,"fork":false,"pushed_at":"2021-07-25T14:46:28.000Z","size":104,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-28T06:05:23.823Z","etag":null,"topics":["lua","mpv","screenshot","shitposting","twitter"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steinuil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-25T23:07:54.000Z","updated_at":"2023-09-02T21:05:19.000Z","dependencies_parsed_at":"2022-09-04T11:21:46.105Z","dependency_job_id":null,"html_url":"https://github.com/steinuil/mpv-livetweet","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinuil%2Fmpv-livetweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinuil%2Fmpv-livetweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinuil%2Fmpv-livetweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steinuil%2Fmpv-livetweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steinuil","download_url":"https://codeload.github.com/steinuil/mpv-livetweet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801604,"owners_count":20350105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","mpv","screenshot","shitposting","twitter"],"created_at":"2024-07-31T00:01:57.778Z","updated_at":"2025-12-25T04:55:48.664Z","avatar_url":"https://github.com/steinuil.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# mpv-livetweet\n\nBe that dick who tweets screenshots of their favourite anime spoiling everyone **without even having to leave your player!**\n\n\u003e _\"whoa, integrated tweeting in movie players. The relentless march of progress\"_ - **[@jons520](https://twitter.com/jons520/status/611668022902697984)**\n\n\u003e _\"lol straight to twitter, your followers probably hate you\"_ - **[ChrisK2](https://github.com/ChrisK2)**\n\n\u003e _\"you're creating a monster\"_ - **Cidoku**\n\n### Features\n\n- Text adding\n- Multi-screenshot drifting\n- Annie-May hashtag retrieving\n\n## Usage\n\nCreate your config using the `get_keys` binary. A browser window will open and you'll get a code after clicking Authorize. Write the code into the terminal and a file called `mpv-livetweet.conf` will be created.\n\nCreate a folder called `script-opts` in your mpv config folder (the one containing `mpv.conf`) and move the `mpv-livetweet.conf` file into it.\n\nCopy the `twitter` binary somewhere and copy its path.\n\nOpen `mpv-livetweet.conf` and configure the path to `curl` and to the `twitter` binary.\n\n```\n# On Windows 10 curl_path is C:\\Windows\\SysWOW64\\curl.exe\ncurl_path=/path/to/curl\ntwitter_path=/path/to/twitter/binary\n```\n\nCopy `mpv-livetweet.lua` to the `scripts` folder in your mpv config folder.\n\nDownload [`user-input.lua`](https://raw.githubusercontent.com/CogentRedTester/mpv-user-input/master/user-input.lua) and save it to the `scripts` folder in your mpv config folder.\n\nThe script tries to fetch the hashtag of the anime you're currently watching with the AniList API and appends it to the tweet text. If you don't want it to be fetched, set the `fetch_hashtag` option to `no` in the config file.\n\n```\nfetch_hashtag=no\n```\n\nBy default the script sends tweets as a reply to the last tweet it sent during the same session. You can clear the last tweet ID by exiting the player, using the keybind, or you can disable this functionality by setting the `as_reply` option to `no` in the config file.\n\n```\nas_reply=no\n```\n\n## Commands\n\n| Shortcut  | When queue is empty            | With screenshots in queue |\n| --------- | ------------------------------ | ------------------------- |\n| **Alt+s** | Queue a screenshot             | Queue a screenshot        |\n| **Alt+t** | Take a screenshot and tweet it | Tweet queued screenshots  |\n| **Alt+c** | -                              | Delete queued screenshots |\n| **Alt+x** | Clear the last tweet ID        | Clear the last tweet ID   |\n\nThe keybinds can be changed in the config file.\n\n```\nkeybind_queue_screenshot=Alt+s\nkeybind_tweet=Alt+t\nkeybind_cancel=Alt+c\nkeybind_clear_reply=Alt+x\n```\n\nTo increase the font size of the tweet input (which is really tiny by default), create a file called `user-input.conf` in the `script-opts` folder and set the `font_size` option to your preferred size. The default is `16`.\n\n```\nfont_size=24\n```\n\n### From source\n\nAcquire a consumer API key and secret from a twitter app, either from an existing one or by creating your own on https://developer.twitter.com/en/apps.\n\nCompile the `twitter` and `get_keys` crates with Rust with the CONSUMER_KEY and CONSUMER_SECRET env variables set to the tokens you acquired.\n\n```\nCONSUMER_KEY=foo CONSUMER_SECRET=bar cargo build --release\n```\n\nOr on Powershell:\n\n```\n$ENV:CONSUMER_KEY=\"foo\"; $ENV:CONSUMER_SECRET=\"bar\"; cargo build --release\n```\n\n---\n\nExcessive use of the script might cause butthurt and follower loss. Use responsibly and in small doses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteinuil%2Fmpv-livetweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteinuil%2Fmpv-livetweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteinuil%2Fmpv-livetweet/lists"}