从subscene下载字幕
ezsub的Python项目详细描述
埃兹布
ezsub
从subscene.com及其波斯语克隆体下载字幕
例如subf2m.co。
有关详细信息,请参见How ezsub Works。在
目录
安装
依赖项:
- Python3.7+
- unrar[可选]
使用pip3安装最新发布的版本
# linux and mac python3 -m pip install --user --upgrade ezsub # windows python -m pip install --user --upgrade ezsub
要从github安装最新的正在进行的版本(不推荐),请使用以下命令:
^{pr2}$有关详细信息,请参见here。在
如何使用
下载
ezsub dl -t|-T TITLE -l LNG1 [LANG2 ...] -d DESTINATION -s SITE1 [SITE2 ...] -a|-A -o|-O -S -g|G
有关每个开关的详细信息,请参见this
示例:
# if search keywords are distinctive enough, use auto select (-a) ezsub dl -t riverdale third season -l fa -a # determine site. If site is not responding, ezsub will choose first responding site automatically. ezsub dl -t game of thrones -s subscene # movies, tv series, video musics are not different. ezsub dl -t how to train your dragon # if you know exact title used in url use this -T# for example subscene page for first season of "the end of the f***ing world" is:# https://subscene.com/subtitles/the-end-of-the-fing-world#so: ezsub dl -T the-end-of-the-fing-world # extract here and relative to here (both windows and unix) ezsub dl -t aquaman -d . ezsub dl -t aquaman -d ./children/to/here ezsub dl -t aquaman -d ../sibling/to/here # absolute and relative path (unix) ezsub dl -t aquaman -d /absolute/path/to/a/destination ezsub dl -t aquaman -d ~/relative/path/to/home/directory # absolute path (windows) ezsub dl -t aquaman -d 'D:\Movies\Aquaman\'
摘录先前下载的字幕
ezsub unzip -t|-T Title of Movie or TV Series -l LNG1 [LNG2 ...] -d DESTINATION -a|-A -o|-O -g|-G
开关与ezsub dl
switches相同,只是没有-s
和{ezsub
搜索"cache"
文件夹。Rest与下载过程相同。在
登录
自2019年6月以来,谷歌添加了subscene。如果用户登录,则不再需要此验证码。
现在(2019年10月),即使没有用户和密码,也很容易获得令牌。此外,波斯语镜像,如“hassisub”和“subb2m”不需要登录。在
信息
ezsub info ezsub info -v {-t|-s|-n}
打印一些有用的信息,如版本和缓存文件夹详细信息。
With -v
列出所有下载的标题,并按标题(-t
)排序文件的大小和数量。要根据文件大小和数量(n)进行排序,请使用-s
和{
配置
ezsub config show
ezsub config set OPTION VALUE
显示或更改默认值的命令。在
ezsub config set Defaults.site hastisub # to reset to default ezsub config set Defaults.languages -
清洁
ezsub clean -t|-T TITLE -l LNG1 [LNG2 ...][-0] -a|-A ezsub clean --all -l LNG1 [LNG2 ...][-0] -a|-A
在缓存目录中搜索给定的标题和语言。然后:
- 使用
-0
或{}它将用空的zip文件替换每个下载的文件。在 - 如果没有
-0
,它将完全删除下载的文件。在
如果要删除或清空所有字幕,请使用--all
开关。在
更新
ezsub update
检查是否有新版本的ezsub可用。如果用户确认,将安装新版本。
另外,如果最后一次检查是在7天前,在下一次调用时,它会警告用户检查更新。在
备份
从缓存文件夹创建压缩存档。它接受目标文件夹的-d
选项和在备份完成后打开目标文件夹的-o|-O
。在
历史
检查以前调用的ezsub命令的历史记录。在
# show previous calls ezsub history show # or simply: ezsub history# select a previous call [its line number] to run again. ezsub history run NUMBER # short version ezsub h show|run
报告错误
ezsub
记录一些可以在ROOT/ezsub.log
文件中找到的消息。
如果出现错误,可以使用--loglevel=Debug
开关运行每个ezsub
命令。获取ezsub.log
内容并创建一个要报告的问题here。在
- 项目
标签: