mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Fix rename/emoji scripts not working with INI
This commit is contained in:
parent
51a3b3ac76
commit
43223a4ec0
@ -502,7 +502,7 @@ std::string nodeRename(const nodeInfo &node, const string_array &rename_array)
|
||||
{
|
||||
if(startsWith(x, "!!script:"))
|
||||
{
|
||||
std::string script = x.substr(7);
|
||||
std::string script = x.substr(9);
|
||||
if(startsWith(script, "path:"))
|
||||
script = fileGet(script.substr(5), true);
|
||||
if(ctx)
|
||||
@ -563,7 +563,7 @@ std::string addEmoji(const nodeInfo &node, const string_array &emoji_array)
|
||||
{
|
||||
if(startsWith(x, "!!script:"))
|
||||
{
|
||||
std::string script = x.substr(7);
|
||||
std::string script = x.substr(9);
|
||||
if(startsWith(script, "path:"))
|
||||
script = fileGet(script.substr(5), true);
|
||||
if(ctx)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user