Closed sohaoo closed 4 years ago
从日志来看 subfinder 不是最新版, 升级到最新版试试.
另外, 字幕匹配问题暂时无法完美解决.
$ subfinder /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv -m zimuku -l zh_en --debug --repeat
[10/05 09:56:43]-[INFO]: 开始
[10/05 09:56:43]-[INFO]: Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv:开始使用 <zimuku> 搜索字幕
[10/05 09:56:43]-[DEBUG]: keyword: Captain.Marvel.2019
[10/05 09:56:43]-[DEBUG]: videoinfo: {'title': 'Captain.Marvel.2019', 'season': 0, 'episode': 0, 'sub_title': '', 'resolution': '1080p', 'source': 'BluRay', 'audio_encoding': '', 'video_encoding': 'x264'}
[10/05 09:56:44]-[DEBUG]: subinfo_list: [{'title': '惊奇队长.Captain.Marvel.2019.1080p.BluRay.AVC.DTS-HD.MA.7.1.srt', 'link': 'http://www.zimuku.la/detail/123806.html', 'author': '', 'exts': ['srt'], 'languages': ['zh_chs'], 'rate': '0', 'download_count': 409}, {'title': '[公映字幕]惊奇队长 Captain.Marvel.2019.1080p.BluRay.REMUX.AVC.DTS-HD.MA.7.1-FGT.rar', 'link': 'http://www.zimuku.la/detail/119114.html', 'author': '', 'exts': ['srt'], 'languages': ['zh_chs'], 'rate': '9', 'download_count': 31000}, {'title': '[公映字幕]惊奇队长 Captain.Marvel.2019.2160p.BluRay.REMUX.HEVC.DTS-HD.MA.TrueHD.7.1.Atmos-FGT', 'link': 'http://www.zimuku.la/detail/119322.html', 'author': '', 'exts': ['sup'], 'languages': ['zh_chs'], 'rate': '10', 'download_count': 77000}, {'title': '【蓝光IMAX简英特效】惊奇队长 Captain Marvel 2019 1080p BluRay IMAX x264 AC3 • CHAOSPACE.zip', 'link': 'http://www.zimuku.la/detail/120954.html', 'author': '', 'exts': ['sup'], 'languages': ['zh_chs', 'en', 'zh_en'], 'rate': '6', 'download_count': 6952}, {'title': '【蓝光中英特效洗版】惊奇队长 Captain Marvel 2019 1080p BluRay x264 AC3 • CHAOSPACE.zip', 'link': 'http://www.zimuku.la/detail/119087.html', 'author': '', 'exts': ['sup'], 'languages': ['zh_chs', 'en', 'zh_en'], 'rate': '8', 'download_count': 33000}, {'title': '惊奇队长(简繁字幕)Captain.Marvel.2019.1080p.BluRay.rar', 'link': 'http://www.zimuku.la/detail/119913.html', 'author': '伊甸园字幕组', 'exts': ['srt'], 'languages': ['zh_chs', 'zh_cht'], 'rate': '8', 'download_count': 27000}, {'title': 'Captain Marvel.廣東話', 'link': 'http://www.zimuku.la/detail/119284.html', 'author': '', 'exts': ['srt'], 'languages': ['zh_cht'], 'rate': '10', 'download_count': 2996}, {'title': '惊奇队长 蓝光原盘字幕.rar', 'link': 'http://www.zimuku.la/detail/119316.html', 'author': '', 'exts': ['sup'], 'languages': ['zh_cht'], 'rate': '10', 'download_count': 9341}, {'title': 'Captain.Marvel.2019.2160p.UHD.BluRay.x265-TERMiNAL.ass', 'link': 'http://www.zimuku.la/detail/119264.html', 'author': '', 'exts': ['ass', 'ssa'], 'languages': ['zh_chs', 'zh_en'], 'rate': '10', 'download_count': 17000}, {'title': 'Captain.Marvel.2019.2160p.BluRay.x265.10bit.SDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.ass', 'link': 'http://www.zimuku.la/detail/119265.html', 'author': '', 'exts': ['ass', 'ssa'], 'languages': ['zh_chs', 'zh_en'], 'rate': '10', 'download_count': 10000}, {'title': 'Captain.Marvel.2019.1080p.BluRay.x264.TrueHD.7.1.Atmos-SWTYBLZ.ass', 'link': 'http://www.zimuku.la/detail/119252.html', 'author': '', 'exts': ['ass', 'ssa'], 'languages': ['zh_chs', 'zh_en'], 'rate': '10', 'download_count': 7633}, {'title': 'Captain.Marvel.2019.1080p.WEB-DL.DD5.1.H264-FGT.srt', 'link': 'http://www.zimuku.la/detail/119198.html', 'author': '', 'exts': ['srt'], 'languages': ['zh_chs'], 'rate': '10', 'download_count': 6479}, {'title': '惊奇队长【公映国译版 简英双语字幕】 Captain.Marvel.2019.BluRay.简体中英.ass', 'link': 'http://www.zimuku.la/detail/119043.html', 'author': '', 'exts': ['ass', 'ssa'], 'languages': ['zh_en'], 'rate': '10', 'download_count': 24000}, {'title': '惊奇队长.官方译本.中英字幕', 'link': 'http://www.zimuku.la/detail/119120.html', 'author': '', 'exts': ['ass', 'ssa'], 'languages': ['zh_chs'], 'rate': '10', 'download_count': 9309}, {'title': '惊奇队长数字特辑.Captain.Marvel.2019.Digital.Extras.1080P.ass', 'link': 'http://www.zimuku.la/detail/119107.html', 'author': '', 'exts': ['ass', 'ssa'], 'languages': ['zh_chs', 'en', 'zh_en'], 'rate': '10', 'download_count': 1449}, {'title': '惊奇队长【YYeTs字幕组 简繁英双语字幕】Captain.Marvel.2019.1080p.BluRay.x264-SPARKS.rar', 'link': 'http://www.zimuku.la/detail/119103.html', 'author': 'YYeTs字幕组', 'exts': ['srt', 'ass', 'ssa'], 'languages': ['zh_chs', 'zh_cht', 'en', 'zh_en'], 'rate': '10', 'download_count': 12000}, {'title': '惊奇队长Captain.Marvel.2019.2160p.WEB-DL.DD+5.1.HDR.HEVC-MOMA.rar', 'link': 'http://www.zimuku.la/detail/119080.html', 'author': 'YYeTs字幕组', 'exts': ['ass', 'ssa', 'sup'], 'languages': ['zh_chs', 'en', 'zh_en'], 'rate': '8', 'download_count': 8146}, {'title': '惊奇队长(Web版简繁英双语字幕)Captain.Marvel.2019.1080p.WEB-DL.DD5.1.H264-FGT.zip', 'link': 'http://www.zimuku.la/detail/119060.html', 'author': '', 'exts': ['srt', 'ass', 'ssa'], 'languages': ['zh_chs', 'zh_cht', 'en', 'zh_en'], 'rate': '0', 'download_count': 6399}, {'title': '惊奇队长【YYeTs字幕组 简繁英双语字幕】Captain.Marvel.2019.Web版本.rar', 'link': 'http://www.zimuku.la/detail/119036.html', 'author': 'YYeTs字幕组', 'exts': ['ass', 'ssa'], 'languages': ['zh_chs', 'zh_cht', 'en', 'zh_en'], 'rate': '10', 'download_count': 6808}, {'title': '惊奇队长【YYeTs字幕组 简繁英双语字幕】Captain.Marvel.2019.1080p.BluRay.x264-SPARKS.zip', 'link': 'http://www.zimuku.la/detail/119027.html', 'author': 'YYeTs字幕组', 'exts': ['srt', 'ass', 'ssa'], 'languages': ['zh_chs', 'zh_cht', 'en', 'zh_en'], 'rate': '9', 'download_count': 86000}, {'title': '驚奇隊長(台),Captain.Marvel.2019.1080p.BluRay.x264-SPARKS', 'link': 'http://www.zimuku.la/detail/119020.html', 'author': '', 'exts': ['srt'], 'languages': ['en'], 'rate': '10', 'download_count': 3116}, {'title': '【英文字幕】惊奇队长.Captain.Marvel.2019.1080p.WEB-DL.DD5.1.H264-FGT', 'link': 'http://www.zimuku.la/detail/118941.html', 'author': '', 'exts': ['srt'], 'languages': ['en'], 'rate': '10', 'download_count': 9584}]
[10/05 09:56:44]-[DEBUG]: subinfo: {'title': '惊奇队长【YYeTs字幕组 简繁英双语字幕】Captain.Marvel.2019.1080p.BluRay.x264-SPARKS.zip', 'link': 'http://www.zimuku.la/detail/119027.html', 'author': 'YYeTs字幕组', 'exts': ['srt', 'ass', 'ssa'], 'languages': ['zh_chs', 'zh_cht', 'en', 'zh_en'], 'rate': '9', 'download_count': 86000}
[10/05 09:56:44]-[DEBUG]: downloadpage_link: http://www.zimuku.la/dld/119027.html
[10/05 09:56:44]-[DEBUG]: subtitle_download_link: http://www.zimuku.la/download/MTE5MDI3fDk0YjE3MmI3MGQ2ZTkwY2U1YmE3MDM3Y3wxNTcwMjQwNjAzfDg5ZmM4YjBjfHJlbW90ZQ%3D%3D/svr/dx2
[10/05 09:56:47]-[DEBUG]: filepath: /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.zip
[10/05 09:56:47]-[DEBUG]: subs: ['/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&简体.ass', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&简体.srt', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.简体.ass', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.简体.srt', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&繁体.ass', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&繁体.srt', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.繁体.ass', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.繁体.srt', '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文.srt']
[10/05 09:56:47]-[INFO]: Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv:找到 1 个字幕, 准备下载
[10/05 09:56:47]-[INFO]: ====================下载完成====================
[10/05 09:56:47]-[INFO]: Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv: 下载 9 个字幕
$ l /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.*
-rw-r--r-- 1 vvv vvv 0 Oct 5 09:55 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv
-rw-r--r-- 1 vvv vvv 375K Oct 5 09:56 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.zip
-rw-r--r-- 1 vvv vvv 120K Oct 5 09:56 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.简体.ass
-rw-r--r-- 1 vvv vvv 91K Oct 5 09:56 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.简体.srt
-rw-r--r-- 1 vvv vvv 120K Oct 5 09:56 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.繁体.ass
-rw-r--r-- 1 vvv vvv 91K Oct 5 09:56 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.繁体.srt
-rw-r--r-- 1 vvv vvv 93K Oct 5 09:56 /tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文.srt
-rw-r--r-- 1 vvv vvv 190K Oct 5 09:56 '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&简体.ass'
-rw-r--r-- 1 vvv vvv 131K Oct 5 09:56 '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&简体.srt'
-rw-r--r-- 1 vvv vvv 190K Oct 5 09:56 '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&繁体.ass'
-rw-r--r-- 1 vvv vvv 131K Oct 5 09:56 '/tmp/Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.英文&繁体.srt'
我测试可以下载到正确的中英字幕.
感谢大神那么快回复,我是在win系统上使用的打包好的subfinder,在release哪里没找到到1.09的exe打包版,所以用的是1.08的老版本-_-||
麻烦大神上传下1.09的exe版本呢,多谢
刚刚使用1.09字幕库下双语是正常了,但是字幕组貌似还是不正常,同样是Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv,API直接搜索可以出来。
感谢大神提供这个工具,一直想对自己堆积成山的视频字幕做一个自动化、定制化的字幕下载,但苦于没有寻找到合适的工具,楼主的工具绝大部分实现要求,但是有几个小问题请大神看看来有问题:
1.射手网的字幕不管UI界面还是命令行都能正常下载,只是由于还存在顺便学口语的想法一般下字幕都是下“中英文”双语版,但是射手网没有。
2.尝试字幕库或者字幕组的的双语zh_en指定搜索,通过网页API地址搜索都能出来正确双语字幕 http://www.zimuku.la/search?q=Captain.Marvel.2019 http://www.zmz2019.com/search?keyword=Captain.Marvel.2019&type=subtitle 但通过subfinder 出现以下问题: A.字幕库直接报错“ Max retries exceeded with url: /search?q=Captain.Marvel.2019 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))” B.字幕组没报错但是无搜索结果
麻烦大神看看是不是这两个站的解析出问题了,十分感谢,GIThub已加星^_^
subfinder Z:\Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi -l zh_en -m zimuku zimuzu -debug
[10/04 23:04:16]-[INFO]: 找到 1 个视频文件
始使用 搜索字幕
[10/04 23:04:16]-[DEBUG]: keyword: Captain.Marvel.2019
[10/04 23:04:16]-[DEBUG]: videoinfo: {u'source': u'BluRay', u'episode': 0, u'vid
eo_encoding': u'x264', u'title': u'Captain.Marvel.2019', u'season': 0, u'audio_e
ncoding': u'', u'sub_title': u'', u'resolution': u'1080p'}
索字幕发生错误: Traceback (most recent call last): File "subfinder\subfinder.py", line 119, in _download File "subfinder\subsearcher\subsearcher.py", line 355, in search_subs File "subfinder\subsearcher\zimuku.py", line 225, in _search_subs File "subfinder\subsearcher\zimuku.py", line 160, in _get_subinfo_list File "site-packages\requests\sessions.py", line 521, in get File "site-packages\requests\sessions.py", line 508, in request File "site-packages\requests\sessions.py", line 618, in send File "site-packages\requests\adapters.py", line 506, in send SSLError: HTTPSConnectionPool(host='www.zimuku.la', port=443): Max retries excee ded with url: /search?q=Captain.Marvel.2019 (Caused by SSLError(SSLError("bad ha ndshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
始使用 搜索字幕
[10/04 23:04:16]-[DEBUG]: videoinfo: {u'source': u'BluRay', u'episode': 0, u'vid
eo_encoding': u'x264', u'title': u'Captain.Marvel.2019', u'season': 0, u'audio_e
ncoding': u'', u'sub_title': u'', u'resolution': u'1080p'}
[10/04 23:04:16]-[DEBUG]: subinfo_list: []
[10/04 23:04:16]-[DEBUG]: subinfo_list: []
[10/04 23:04:16]-[DEBUG]: subinfo: None
到 0 个字幕, 准备下载
[10/04 23:04:16]-[INFO]: Captain.Marvel.2019.1080p.BluRay.x264.DTS-WiKi.mkv: 下 载 0 个字幕