AnthonyMusgrove / Emby-ScripterX

Run custom external application or script (batch/bash/powershell/php/python/node.js/custom) on various events within the Emby Server.
https://emby-scripterx.com
76 stars 6 forks source link

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

Open zsgcgrs opened 2 years ago

zsgcgrs commented 2 years ago

Test on {On Media Item Added Complete}

AnthonyMusgrove commented 2 years ago

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

AnthonyMusgrove commented 2 years ago

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 commented 2 years ago

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: 局域网访问 - 局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问局域网访问

zsgcgrs commented 2 years ago

%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 commented 2 years ago

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 commented 2 years ago

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