Emby-ScripterX icon indicating copy to clipboard operation
Emby-ScripterX copied to clipboard

%item.library.name% cannot be substituted when it is in Chinese

Open zsgcgrs opened this issue 2 years ago • 6 comments

Test on {On Media Item Added Complete}

zsgcgrs avatar Apr 20 '22 10:04 zsgcgrs

Thank you for reporting this issue! I'll look into it! :)

AnthonyMusgrove avatar Apr 20 '22 13:04 AnthonyMusgrove

I've just added a video file with a chinese simplified name, and checked the emby log for onMediaItemAddedComplete and it shows :-

2022-04-20 23:24:33.065 Info Emby ScripterX: onMediaItemAddedComplete: Movies - 局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问

The %item.library.name% here is 'Movies' and the movie title is '局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问'

Is the issue more so if the library name is in chinese?

image

AnthonyMusgrove avatar Apr 20 '22 13:04 AnthonyMusgrove

I've just now added another library, with a chinese simplified name, and copied this movie into it, and in my emby log it shows :-

2022-04-20 23:28:49.917 Info Emby ScripterX: onMediaItemAddedComplete: 局域网访问 - 局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问

AnthonyMusgrove avatar Apr 20 '22 13:04 AnthonyMusgrove

%item.library.name% cannot be substituted when the library where the media file is located is Chinese, but it is OK when the media library is English

zsgcgrs avatar Apr 20 '22 13:04 zsgcgrs

2022-04-20 21:56:03.341 Info HttpClient: GET https://api.day.app/XXXXXXXXXXX/电影入库:科拉尔金矿(2018)/库属:%item.library.name%

The library where the media is located is 电影, and %item.library.name% was not converted to 电影 at the time of request

zsgcgrs avatar Apr 20 '22 14:04 zsgcgrs

Sorry! I don't understand English! I can only use translation instead, which makes you very tired. I hope you can understand what I mean

zsgcgrs avatar Apr 20 '22 14:04 zsgcgrs