Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

子集封装内嵌ass问题 #38

Open
tb114514 opened this issue Jun 4, 2024 · 5 comments
Open

子集封装内嵌ass问题 #38

tb114514 opened this issue Jun 4, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@tb114514
Copy link

tb114514 commented Jun 4, 2024

[WARNING]
您输入的目录下只有字幕而无视频,每个字幕都将被当做单独对象处理
若是同一话有多个字幕,这话将会有多套子集化字体。
即便如此,您仍要继续吗? [Y,N]?Y
正在尝试从字幕所在文件夹载入字体...
正在读取字体信息...
7/7 100.00% 【缓存】D:\Desktop\银魂

Traceback (most recent call last):
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 4153, in
loadMain(True)
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 4038, in loadMain
cFontSubset(font_info)
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 3689, in cFontSubset
newasspaths, newfont_name, mkvr = main(font_info2, [subp],
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 2740, in main
if path.splitext(s)[1][1:].lower() not in ['ass', 'ssa']:
File "D:\Program Files\Python39\lib\ntpath.py", line 204, in splitext
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not tuple

@DYY-Studio DYY-Studio added the bug Something isn't working label Jun 5, 2024
@DYY-Studio DYY-Studio self-assigned this Jun 5, 2024
@DYY-Studio
Copy link
Owner

似乎是代码本身的问题,待晚上确认后再作进一步答复。

@tb114514
Copy link
Author

似乎是代码本身的问题,待晚上确认后再作进一步答复。

正在尝试从字幕所在文件夹载入字体...
正在读取字体信息...
7/7 100.00% 【缓存】D:\Desktop\银魂

Traceback (most recent call last):
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 4151, in
loadMain()
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 4038, in loadMain
cFontSubset(font_info)
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 3689, in cFontSubset
newasspaths, newfont_name, mkvr = main(font_info2, [subp],
File "D:\game\MKVToolNix\ASFMKV_pre21.py", line 2740, in main
if path.splitext(s)[1][1:].lower() not in ['ass', 'ssa']:
File "D:\Program Files\Python39\lib\ntpath.py", line 204, in splitext
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not tuple

单独子集化内嵌字体还是有这问题,子集化并封装视频没啥问题

@DYY-Studio
Copy link
Owner

抱歉,一直在忙,没空看这个问题。
我之前看错误就觉得应该是加功能的时候写错调用,但是我可能还要忙一周左右,抱歉。

@tb114514
Copy link
Author

抱歉,一直在忙,没空看这个问题。 我之前看错误就觉得应该是加功能的时候写错调用,但是我可能还要忙一周左右,抱歉。

@DYY-Studio
Copy link
Owner

结果忙了三周

检查发现是这里没有对新的getFileList函数的返回值做相应的处理。

现已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants