{"id":17126225,"url":"https://github.com/truebit/pygetsubtitle","last_synced_at":"2025-04-13T06:28:06.595Z","repository":{"id":15989527,"uuid":"18732691","full_name":"truebit/PyGetSubtitle","owner":"truebit","description":"download movie and tv file subtitles with right click","archived":false,"fork":false,"pushed_at":"2016-07-07T14:36:54.000Z","size":4282,"stargazers_count":28,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T23:04:16.576Z","etag":null,"topics":["download-subtitles","shooter","subtitle"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/truebit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-13T15:40:50.000Z","updated_at":"2024-04-16T16:03:43.000Z","dependencies_parsed_at":"2022-08-30T14:01:03.423Z","dependency_job_id":null,"html_url":"https://github.com/truebit/PyGetSubtitle","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/truebit%2FPyGetSubtitle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FPyGetSubtitle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FPyGetSubtitle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truebit%2FPyGetSubtitle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truebit","download_url":"https://codeload.github.com/truebit/PyGetSubtitle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248673736,"owners_count":21143552,"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":["download-subtitles","shooter","subtitle"],"created_at":"2024-10-14T18:47:21.867Z","updated_at":"2025-04-13T06:28:06.556Z","avatar_url":"https://github.com/truebit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PyGetSubtitle\r\n=============\r\n_Released under the [GNU General Public License version 3](./LICENSE.md) by [SeganW](http://fclef.wordpress.com/about)_\r\n\r\n_本软件由[SeganW](http://fclef.wordpress.com/about)开发，遵循[GPL V3](./LICENSE.md)协议_\r\n\r\n\r\n\r\nIntroduction 简介\r\n----------------\r\n\r\nIn Windows and Mac OS X, `PyGetSubtitle` downloads subtitles after selecting one or more video files, by using the API supplied by [Shooter.cn](https://docs.google.com/document/d/1ufdzy6jbornkXxsD-OGl3kgWa4P9WO5NZb6_QYZiGI0/preview) and [thesubdb.com](http://thesubdb.com/api/) \r\n\r\n* This script search from Shooter.cn database first. If no subtitles were found, then try thesubdb.com. As thesubdb.com seems do not contain much entries\r\n* It will download all subtitles found on shooter.cn,starting with a trailing number from 1\r\n* It will only download one subtitle found from thesubdb.com\r\n* The name of the subtitle is the same as the video file, e.g. `[饮食男女].eat.drink.man.woman.1994.720p.bluray.x264-publichd_1.srt`\r\n\r\n----------\r\n\r\n`PyGetSubtitle`支持在Windows和MacOSX中选中一个或多个的视频文件，通过[射手网](https://docs.google.com/document/d/1ufdzy6jbornkXxsD-OGl3kgWa4P9WO5NZb6_QYZiGI0/preview)和[thesubdb.com](http://thesubdb.com/api/)提供的API下载对应的字幕文件.\r\n\r\n* 现在的逻辑是先搜射手网字幕，如果搜不到的话才去thesubdb搜索。因为感觉thesubdb的数据不是很丰富。\r\n* 搜索射手网时如果找到多个字幕，会把所有字幕都下载下来，字幕名从1开始递增\r\n* 搜索thesubdb.com时只下载一个字幕文件\r\n* 字幕文件与视频文件名称相同，形如`[饮食男女].eat.drink.man.woman.1994.720p.bluray.x264-publichd_1.srt`\r\n\r\n\r\n\r\n\r\n\r\nHow to Use 如何使用\r\n------------------\r\n\r\n`PyGetSubtitle` supports both Windows and Mac OS X. You could watch below demo to know how it works:\r\n\r\n* [Windows demo](#demo-on-windows-动画演示)\r\n* [Mac OS X demo](#demo-on-macosx-动画演示)\r\n\r\nFor more details, please check the detailed step-by-step guide:\r\n\r\n* [Windows](#windows-7)\r\n* [Mac OS X](#mac-os-x)\r\n\r\n----------\r\n\r\n`PyGetSubtitle`同时支持Windows和Mac OS X。可以观看以下动画了解操作过程：\r\n\r\n* [Windows版本](#demo-on-windows-动画演示)\r\n* [Mac OS X版本](#demo-on-macosx-动画演示)\r\n\r\n详细安装和使用方式请看下面的详细步骤：\r\n\r\n* [Windows](#windows-7)\r\n* [Mac OS X](#mac-os-x)\r\n\r\n\r\n----------\r\n\r\n\r\n#### Windows 7\r\n\r\n* Install Python 安装Python:\r\n  * Download from https://www.python.org/downloads/ and you'd better choose Python2.7 as I did not test on Python3, although I wrote the compatability code.\r\n  * 从https://www.python.org/downloads/ 下载， 最好选择Python2.7。因为虽然考虑了Python3，但是没有做过测试，不保证可以使用\r\n\r\n* Put `PyGetSubtitle.py` file to `SendTo...` 把PyGetSubtitle.py文件放到“发送到... ”中\r\n  * input ·shell:sendto` in searchbar after hit Windows key, and press Enter key to enter \"SendTo\" directory\r\n  * copy the `PyGetSubtitle.py` to the directory\r\n  * 按Windows键，在搜索框中输入`shell:sendto`,按回车后进入“SendTo”文件夹\r\n  * 把 `PyGetSubtitle.py`文件复制到这个文件夹中\r\n\r\n* Use it! 开始使用\r\n    * Select one or more video files and click right mouse, hover on `send to` and then choose `PyGetSubtitle.py`.\r\n    * Enjoy~\r\n    * 选择一个或多个视频文件，点击鼠标右键，选择“发送到”，选择`PyGetSubtitle.py`\r\n    * 大功告成\r\n\r\n##### demo on Windows 动画演示\r\n![WindowsDemoGif](https://raw.github.com/truebit/PyGetSubtitle/gif/PyGetSubtitle_Win.gif)\r\n\r\n----------\r\n\r\n#### Mac OS X\r\n\r\nIt's easier to integrate this script as a service in Mac OS X [Automator](http://support.apple.com/kb/ht2488)\r\nI already added a service workflow, so that you need not create one from scratch.\r\n\r\n在MacOSX中使用[Automator工具](http://support.apple.com/kb/ht2488)集成Python脚本作为一个服务使用甚至更方便些。\r\n我已经做好了一个服务的workflow，这样你就不需要从头创建这个服务了\r\n\r\n* Double click `PyGetSubtitle.workflow` and then click \"install\" to install the service workflow\r\n* Now you could right click on one or many video files, under `Service` there should be a `PyGetSubtitle` to use\r\n* 双击`PyGetSubtitle.workflow`，然后点击“安装”\r\n* 成功后选择一个或多个视频文件，点击鼠标右键，选择“服务”，选择`PyGetSubtitle`\r\n\r\n##### demo on MacOSX 动画演示\r\n![MacDemoGif](https://raw.github.com/truebit/PyGetSubtitle/gif/PyGetSubtitle_Mac.gif)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruebit%2Fpygetsubtitle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruebit%2Fpygetsubtitle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruebit%2Fpygetsubtitle/lists"}