tamland / kodi-plugin-routing

A routing module for kodi plugins
GNU General Public License v3.0
40 stars 12 forks source link

pass variable parts with splash at the end #34

Open ducvuong25 opened 2 years ago

ducvuong25 commented 2 years ago

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

@tamland