2015-10-30, 12:12
Okay, so I've started my first plugin (made a view other addons already) a few weeks ago and was
working my way through the wiki on how to implement the navigation between pages
I quickly ended up with bulky if ... elif ... blocks to determine what page to show and what function to call and decided
that that's not the way to go.
Hence I started a small side-project... ... to make all this easier.
So my concerns now...
The way the wiki (which is the entry point for new add-on developers like me) suggests how to implement page navigation seems not quite right to me.
Especially how e.g. the plugin urls are built plugin://plugin.video.myaddon/?mode=folder&foldername=Folder+One.
That's not how a URL should look like, that's how one should look like plugin://plugin.video.myaddon/folder-one?param=value
If a developer follows the wiki he will end up with bulky if ... elif ... blocks making the source hard to maintain and read.
I'm not quite sure if modules (like the one I made) already exist.
IF they do, they really should be mention in the wiki.
I know the wiki is only supposed to get you started and the rest is up to you, but still, there should be at least some mentioning on how to properly proceed
once you understood how the basics work and e.g. mention modules that really can help you with your implementation.
I can not (and will not) believe that I'm the first one to create such a module for Kodi. I couldn't fine one though so I had to reinvent the wheel and make a new one ^^
(I found some stuff that pretty much sounded like it would do something similar but there was no readme, no documentation so I just wrote one myself)
Please keep in mind that all this are just my thoughts and that I might be well and truly wrong.
I'm really looking forward to all of your thoughts on this
working my way through the wiki on how to implement the navigation between pages
I quickly ended up with bulky if ... elif ... blocks to determine what page to show and what function to call and decided
that that's not the way to go.
Hence I started a small side-project... ... to make all this easier.
So my concerns now...
The way the wiki (which is the entry point for new add-on developers like me) suggests how to implement page navigation seems not quite right to me.
Especially how e.g. the plugin urls are built plugin://plugin.video.myaddon/?mode=folder&foldername=Folder+One.
That's not how a URL should look like, that's how one should look like plugin://plugin.video.myaddon/folder-one?param=value
If a developer follows the wiki he will end up with bulky if ... elif ... blocks making the source hard to maintain and read.
I'm not quite sure if modules (like the one I made) already exist.
IF they do, they really should be mention in the wiki.
I know the wiki is only supposed to get you started and the rest is up to you, but still, there should be at least some mentioning on how to properly proceed
once you understood how the basics work and e.g. mention modules that really can help you with your implementation.
I can not (and will not) believe that I'm the first one to create such a module for Kodi. I couldn't fine one though so I had to reinvent the wheel and make a new one ^^
(I found some stuff that pretty much sounded like it would do something similar but there was no readme, no documentation so I just wrote one myself)
Please keep in mind that all this are just my thoughts and that I might be well and truly wrong.
I'm really looking forward to all of your thoughts on this