2019-02-12, 00:09
(2019-02-11, 20:42)AnonTester Wrote: problem is the xbmc.validatePath call in line 25 which strips the rest of the path.
Description of what validatePath does here and it doesn't appear that this is a particularly useful function:
https://alwinesch.github.io/group__pytho...f791d22c44
Fascinating stuff. It seems like you encountered a bug which seems to be there (in Kodi) for at least 9 years.. This specific line will remove all of the remaining path when a double slash is found: https://github.com/xbmc/xbmc/blob/379f5f....cpp#L1034
A simple fix for this would be using this instead:
cpp:result.erase(result.begin() + x);
On the other hand, your link gives this exactly as an example, Z://something becomes Z:. But why on earth would you want that? It makes more sense to strip double slashes and keep the rest of the path So I agree with you there is no need to validate through this (broken) function and will push out a fix soon. Thanks for mentioning!