{"id":13835349,"url":"https://github.com/davidde/mpv-autosub","last_synced_at":"2025-04-06T05:15:41.375Z","repository":{"id":38978936,"uuid":"186068229","full_name":"davidde/mpv-autosub","owner":"davidde","description":"Fully automatic subtitle downloading for the MPV media player","archived":false,"fork":false,"pushed_at":"2023-12-24T21:02:55.000Z","size":50,"stargazers_count":326,"open_issues_count":21,"forks_count":44,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-30T04:08:37.851Z","etag":null,"topics":["autosub","lua","mpv","mpv-player","mpv-script","srt","subliminal","subtitles"],"latest_commit_sha":null,"homepage":"https://mpv.io/","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/davidde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-10T23:59:51.000Z","updated_at":"2025-03-21T11:50:14.000Z","dependencies_parsed_at":"2024-11-08T08:29:27.306Z","dependency_job_id":"f7a27883-154d-461b-9d74-82a108c649b6","html_url":"https://github.com/davidde/mpv-autosub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidde%2Fmpv-autosub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidde%2Fmpv-autosub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidde%2Fmpv-autosub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidde%2Fmpv-autosub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidde","download_url":"https://codeload.github.com/davidde/mpv-autosub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247436285,"owners_count":20938533,"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":["autosub","lua","mpv","mpv-player","mpv-script","srt","subliminal","subtitles"],"created_at":"2024-08-04T14:01:00.084Z","updated_at":"2025-04-06T05:15:41.208Z","avatar_url":"https://github.com/davidde.png","language":"Lua","funding_links":[],"categories":["Subtitle","HarmonyOS","lua"],"sub_categories":["Windows Manager"],"readme":"# [Automatic subtitle downloading for MPV](https://github.com/davidde/mpv-autosub)\n* Cross-platform: **Windows, Mac and Linux**\n* Multi-language support\n* Subtitle provider login support\n* **No hotkeys required**: opening a video will automatically trigger subtitles to download  \n  (Only when the right subtitles are not yet present)\n\n## Dependencies\nThis Lua script uses the [Python](https://www.python.org/downloads/) program\n[subliminal](https://github.com/Diaoul/subliminal) to download subtitles.\nMake sure you have both installed:  \n```bash\npip install subliminal\n```\n\n## Setup\n1. Copy autosub.lua into:\n\n   |       OS      |                      Path                           |\n   |---------------|-----------------------------------------------------|\n   | **Windows**   | [Drive]:\\Users\\\\[User]\\AppData\\Roaming\\mpv\\scripts\\ |\n   | **Mac/Linux** | ~/.config/mpv/scripts/                              |\n\n   ```bash\n   mkdir ~/.config/mpv/scripts\n   cat \u003e ~/.config/mpv/scripts/autosub.lua\n   [Paste script contents and CTRL+D]\n   ```\n2. Specify the correct subliminal location for your system:  \n   - To determine the correct path, use:  \n\n     |       OS      |      App       |        Command          |\n     |---------------|----------------|-------------------------|\n     | **Windows**   | Command Prompt |    where subliminal     |\n     | **Mac/Linux** | Terminal       |    which subliminal     |\n\n   - Copy this path to the subliminal variable at the start of the script:\n     ```lua\n     local subliminal = '/path/to/your/subliminal'\n     ```\n     On Windows, the backslashes in the path need to be escaped, e.g.:  \n     **C:\\\\\\\\Users\\\\\\\\Administrator\\\\\\\\AppData\\\\\\\\Local\\\\\\\\Programs\\\\\\\\Python\\\\\\\\Python37\\\\\\\\Scripts\\\\\\\\subliminal.exe**\n\n## Customization\n* Optionally change the subtitle languages / [ISO codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\n  Be sure to put your preferred language at the top of the list.  \n  If necessary, you can manually trigger downloading your first choice language by pressing `b`,  \n  or your second choice language by pressing `n`.\n* Optionally specify the login credentials for your preferred subtitle provider(s), if you have one.\n* If you do not care for the automatic downloading functionality, and only wish to use the hotkeys,  \n  simply change the `auto` bool to `false`.\n* For added convenience, you can specify the locations to exclude from auto-downloading subtitles, or alternatively,  \nthe *only* locations that *should* auto-download subtitles.\n\nThis script is under the [MIT License](./LICENSE-MIT),\nso you are free to modify and adapt this script to your needs:  \ncheck out the [MPV Lua API](https://mpv.io/manual/stable/#lua-scripting) for more information.\n\nIf you find yourself unable to find the correct subtitles for some niche movies/series,\nyou might be interested in the [submod](https://github.com/davidde/submod_rs)\ncommand line tool I've written to manually correct subtitle timing.\n\n## Credits\nInspired by [selsta's](https://gist.github.com/selsta/ce3fb37e775dbd15c698) and\n[fullmetalsheep's](https://gist.github.com/fullmetalsheep/28c397b200a7348027d983f31a7eddfa) autosub scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidde%2Fmpv-autosub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidde%2Fmpv-autosub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidde%2Fmpv-autosub/lists"}