getsubtitle
下载
pip install getsubtitle
使用
说明
搜索规则
getsubtitle会抽取视频名中包含的一下信息进行多次组合搜索,直到候选字幕包数达到设定值(默认为 10 条,可以通过 -n 参数设定)。
- 美剧名(电影名)
- 剧集信息(美剧)
- 年份(电影)
- 分辨率
- 视频格式
- 音频编码格式
- 压制组信息
如视频名为 Game.of.Thrones.s07e01.1080p.web.h264-tbs.mkv, 所有组合如下,按搜索顺序先后排列:
Game of Thrones s07 e01 1080p WEB-DL tbs
Game of Thrones s07 e01 1080p WEB-DL
Game of Thrones s07 e01 1080p
Game of Thrones s07 e01
Game of Thrones s07
Game of Thrones
如视频名为 The.Notebook.2004.720p.BluRay.x264.AC3.3Audio-HDWinG.mkv, 所有组合如下,按搜索顺序先后排列:
The Notebook 2004 720p BluRay 3Audio-HDWinG
The Notebook 2004 720p BluRay
The Notebook 2004 720p
The Notebook 2004
The NoteBook
标准视频名:
全英文组成,包含美剧名(电影名), 分辨率, 视频格式, 音频编码格式, 压制组等信息。
如: Game.of.Thrones.s07e01.1080p.web.h264-tbs.mkv , T2_ Trainspotting (1080p HD).mp4
其余视频名:
其余一般为包含了中文的视频名。
对于包含中文的视频名:
- 若视频名的美剧名(电影名)中中文字数大于英文字数,选取中文作为视频的 title
- 若视频名的美剧名(电影名)中英文字数大于等于中文字数,选取英文作为视频的 title
其中若名称中英混合,只能作简单过滤中文(英文)字符。
若视频名为 [SPS辛普森一家字幕组].[丑陋的美国人.第一季].Ugly.Amricans.S01E01.rmvb 这类, 无法抽取准确的名称。
下载来源
关于下载来源,现在首选是从subhd下载字幕,若搜索结果数太少,会继续搜索zimuzu、zimuku的字幕。
关于下载频率,zimuzu 与 zimuku 目前都没有明显的下载频率限制,拖入一个视频文件夹下载一般不会报错。而 subhd 有下载频率限制,一般每次只能下载一两个视频的字幕,之后需要滑动验证码验证。
若下载出现 unknown error,可能就是下载频率过高,可以等一段时间再试。
Metadata
Release files for getsubtitle 2019.12.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| getsubtitle-2019.12.5.tar.gz | 15.7 kB | Without provenance | Details for getsubtitle-2019.12.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| getsubtitle-2019.12.5-py3-none-any.whl | Python 3 | none | any | Details for getsubtitle-2019.12.5-py3-none-any.whl |
Total release size: 35.6 kB
Release files / getsubtitle-2019.12.5.tar.gz
| Download URL | getsubtitle-2019.12.5.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73ee83e861e8927254251daf4863a3a41a86d1f54852038cd02e7f490b69dea4
|
|
BLAKE2b-256 checksum How to use checksums |
802b798839386943afe6d74e562b90260e08e7d40aa749dcea9447ab413d0324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5
|
Release files / getsubtitle-2019.12.5-py3-none-any.whl
| Download URL | getsubtitle-2019.12.5-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10d35a221919edc7cb8faac55029fe4cefc9e3f7d23cdcb3e2c9626b01ebc5ab
|
|
BLAKE2b-256 checksum How to use checksums |
ff446d36536764e631ce9424e8a28e465907b77ad5e2f30180b88c945bc5db3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5
|
Security for getsubtitle 2019.12.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.