kodi-plugin-routing icon indicating copy to clipboard operation
kodi-plugin-routing copied to clipboard

pass variable parts with splash at the end

Open ducvuong25 opened this issue 2 years ago • 1 comments

Hi, I am from Vietnam, sorry my writing English skill isn't very good. I face a problem in this library. when I pass an "url with slash at the end" as argument to plugin.url_for():

xbmcplugin.addDirectoryItem(plugin.handle, plugin.url_for(list_video, "http://qrt.vn/video/chuyen-muc-thoi-su/)", ListItem(subcate.string), True)

In list_video function:

@plugin.route("/listvideo/<path:url>")
def list_video(url):
     pass

now the argument url have value: "http://qrt.vn/video/chuyen-muc-thoi-su" (lost slash character at the end)

I wonder if this is a bug?

ducvuong25 avatar Dec 22 '21 01:12 ducvuong25

@tamland

ducvuong25 avatar Dec 25 '21 09:12 ducvuong25