You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those assignments should have an URL encode conversion call when logo source is configured as Remote Path/Internet address (logoPathType is 1).
It's working fine as long as channel name is ASCII only. In case of UTF-8 names http requests mostly fail as CCurlFile's ::Open ::Stat fetching logo files in the end, doesn't do any URL encoding by itself.
For example, if logo base url is http://192.168.1.1/logos, and a channel tvg-logo is UTF-8 Cyrillic "Логотип Канала HD.png", that's what I have in kodi.log:
Considering #156 I think tvg-logo attribute should be left alone as it is up to user what to put in it.
Channel logo filename autogenerated from channel name is the place where urlencode must happen along with CHANNEL_LOGO_EXTENSION append (for logo Remote Path).
As you seem familiar with the code...why don't you provide the patch (submit PR) directly?
I slapped something together but the need to reinvent UrlEncode function (kodi/Network.h URLEncode cannot be used due to legacy api?) does not please me. Perhaps someone experienced in kodi internals can suggest a better solution/approach.
According to the docs, channel logo file name is set from tvg-logo attribute ( https://github.com/kodi-pvr/pvr.iptvsimple/blob/master/src/PVRIptvData.cpp#L400 ) or autogenerated from channel name if tvg-logo is missing ( https://github.com/kodi-pvr/pvr.iptvsimple/blob/master/src/PVRIptvData.cpp#L414 ).
Those assignments should have an URL encode conversion call when logo source is configured as Remote Path/Internet address (logoPathType is 1).
It's working fine as long as channel name is ASCII only. In case of UTF-8 names http requests mostly fail as CCurlFile's ::Open ::Stat fetching logo files in the end, doesn't do any URL encoding by itself.
For example, if logo base url is http://192.168.1.1/logos, and a channel tvg-logo is UTF-8 Cyrillic "Логотип Канала HD.png", that's what I have in kodi.log:
And that's what web server gets:
It can be worked around by preprocessing playlist to URL encode tvg-logo attributes, but that doesn't feel right.
The text was updated successfully, but these errors were encountered: