@@ -2023,7 +2023,7 @@ def isExists(fPath: str):
2023
2023
2024
2024
2025
2025
def assFontChange (newfont_name : dict , asspath : str , assInfo : dict , splitEvents : dict [int , list [dict ]], outdir : str = '' ,
2026
- cover : bool = True , embedded : bool = False ) -> str :
2026
+ cover : bool = False , embedded : bool = False ) -> str :
2027
2027
"""
2028
2028
更改ASS样式对应的字体
2029
2029
@@ -2224,7 +2224,8 @@ def ffASFMKV(file: str, outfile: str = '', asslangs: list = [], asspaths: list =
2224
2224
for i in range (0 , len (asspaths )):
2225
2225
s = asspaths [i ]
2226
2226
assfn = path .splitext (path .basename (s ))[0 ]
2227
- assnote = assfn [(assfn .find (fn ) + len (fn )):].replace ('.subset' , '' )
2227
+ assnote = assfn [(assfn .find (fn ) + len (fn )):]
2228
+ assnote = assnote [0 :assnote .find ('.subset' )]
2228
2229
# print(assfn, fn, assnote)
2229
2230
metadata = None
2230
2231
metadata = []
@@ -2324,7 +2325,8 @@ def ASFMKV(file: str, outfile: str = '', asslangs: dict = {}, asspaths: list = [
2324
2325
for i in range (0 , len (asspaths )):
2325
2326
s = asspaths [i ]
2326
2327
assfn = path .splitext (path .basename (s ))[0 ]
2327
- assnote = assfn [(assfn .find (fn ) + len (fn )):].replace ('.subset' , '' )
2328
+ assnote = assfn [(assfn .find (fn ) + len (fn )):]
2329
+ assnote = assnote [0 :assnote .find ('.subset' )]
2328
2330
# print(assfn, fn, assnote)
2329
2331
if len (assnote ) > 1 :
2330
2332
mkvargs .extend (['--track-name' , '0:{0}' .format (assnote .lstrip ('.' ))])
@@ -3823,7 +3825,7 @@ def cFontSubset(font_info):
3823
3825
3824
3826
def cLicense ():
3825
3827
cls ()
3826
- print ('''AddSubFontMKV Python Remake Preview 22
3828
+ print ('''AddSubFontMKV Python Remake Preview 23
3827
3829
3828
3830
Apache-2.0 License
3829
3831
https://www.apache.org/licenses/
@@ -4089,7 +4091,7 @@ def checkFF():
4089
4091
def loadMain (reload : bool = False ):
4090
4092
global extlist , no_mkvm , no_cmdc , dupfont , mkvmv , font_info , fontin , langlist , ffmv , insteadFF
4091
4093
# 初始化字体列表 和 mkvmerge 相关参数
4092
- os .system ('title ASFMKV Python Remake Pre22 ^| (c) 2022-2024 yyfll ^| Apache-2.0' )
4094
+ os .system ('title ASFMKV Python Remake Pre23 ^| (c) 2022-2024 yyfll ^| Apache-2.0' )
4093
4095
if not reload :
4094
4096
if not o_fontload :
4095
4097
font_list = getFontFileList (fontin )
@@ -4136,7 +4138,7 @@ def loadMain(reload: bool = False):
4136
4138
if not len (ffmv ) > 0 :
4137
4139
ffMessage = '\n [F] 检查并启用FFmpeg'
4138
4140
ffSelect = 'F'
4139
- print ('''ASFMKV Python Remake Pre22 | (c) 2022-2024 yyfll{0}{5}
4141
+ print ('''ASFMKV Python Remake Pre23 | (c) 2022-2024 yyfll{0}{5}
4140
4142
字体名称数: [\033 [1;33m{2}\033 [0m]({4})
4141
4143
请选择功能:
4142
4144
[A] 列出字幕所用字体
0 commit comments