-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[addons] fix stupid circumstance with addon settings on folder with file extension #17449
Conversation
…ile extension Found this when adding settings to vfs.rar. There called this place with "special: //profile/addon_data/vfs.rar", this was seen by "CFileDirectoryFactory::Create" as a file and tried to open with vfs.rar addon. This logically leads to an error because it is only a folder. The slash is left now on the folder so that it is recognized as a folder.
Is this OK? |
Would this also impact python addons? |
Actually not directly, since it only refers to the storage of the data at Use in this line only https://github.com/xbmc/xbmc/blob/5c96aaa455782c2842c123c7e40c665c8aa736c5/xbmc/addons/Addon.cpp#LL164-L171. But it would also be good if a second could test it, so that there is not something hidden in it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, I tried it locally and it worked.
Thanks a lot! |
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
[addons] fix stupid circumstance with addon settings on folder with file extension
Description
Found this when adding settings to vfs.rar.
There called this place with "special://profile/addon_data/vfs.rar", this was seen
by "CFileDirectoryFactory::Create" as a file and tried to open with vfs.rar addon.
This logically leads to an error because it is only a folder.
The slash is left now on the folder so that it is recognized as a folder.
Motivation and Context
Got a big question mark when I added the settings and they weren't saved but worked when addon was disabled.
That these slashes have been omitted has been in history since Kodi's "github". Do not see the need to leave them out and the test went well.
How Has This Been Tested?
Screenshots (if appropriate):
Types of change
Checklist: