2017-06-12, 21:01
Hey Montellese, I just wanted to let you know I saw your post. I should have time to take a look tomorrow.
(2017-06-13, 20:11)angelblue05 Wrote: Montellese,
We should create a dependency add-on in python, for the new api in the xbmcmediaimport module. Without anything else. Then, provider add-ons can just plug into it to use the new api. I think we would have more control over things this way, when/if the api is updated. Is this the direction you were thinking?
(2017-06-13, 20:46)angelblue05 Wrote: Ok,
Looking at the add-on you built, and trying to decide the best way to tackle this. Is it possible for me to view the api in your kodi fork?
(2017-06-13, 21:03)angelblue05 Wrote:(2017-06-13, 20:49)Montellese Wrote: Right now I'm looking into supporting "dynamic" settings for media providers and media imports from python.
Such as?
(2017-06-13, 21:53)angelblue05 Wrote: Ok, so technically, the python add-on would not make use of the settings.xml for this? If you don't mind me asking, what is the purpose of having this info within the xbmcmediaimport?
I don't want to complicate your life. I thought maybe all of this would be handled individually within the python add-on. Then, within the xbmcmediaimport, it would just use a provider id to refer to/retrieve the information provided by the add-on.
(2017-06-13, 23:42)angelblue05 Wrote: It's such a pain to work with XML in python, isn't it json is the easiest, in my opinion. Especially when dealing with string encoding.Yeah unfortunately I haven't written a JSON parser for the settings system/library yet (which is somewhere on my long TODO list).
(2017-06-13, 23:42)angelblue05 Wrote: Edit: I hope it's ok to use requests rather than urllib2, it's just easier to manage all around.Feel free to use whatever you want. The way I write this add-on is to google "python get current time", take the first code snippet and then I google "python http request" and so on. I'm sure there are a lot of "who wrote this piece of s**t code" moments in there for anyone with a bit of python coding experience.
(2017-06-14, 04:27)LongMan Wrote: @ Montellese Can you kick a new build of Kodi that matches the improvements that you have made to the plugin since the build above.I noticed an annoying bug in the settings handling (which makes it unusable) which I want to fix and then I can provide another build.