2020-12-03, 16:58
Hello everybody,
I run my own Access-database for my optical media, and I would like to create a simple addon for my own use to be able to quickly search a title in this Access-database.
So far I am still in the first steps of learning the basics of Kodi addons. My first problem is: Contary to the tutorials that I found, Kodi does not seem to pass arguments, I run into an out-of-bounds-error when accessing sys.argv[1] as told in the tutorials (sys.argv[0] is fine), but since i probably would not need this it seems neglectible.
Far more important would be an input box (I am sure this will come up later in the tutorial) and, of course, database connection. And here I am stuck. I learn there is a python package (pypyodbc) to connect to an Access-DB, but afaik it is not part of the Kodi-python package and I'd prefer not to install extra packages, since I do not know how to install these on eg. LibreELEC or a Fire Stick (or if this is even possible), both platforms that I use to run Kodi on.
When I search for something like 'Kodi addon SQL' I find a lot of warnings not to mess with Kodi's DB, which I do not intend to do, but so far little else. So - what are my options here? I need help in the basics of accessing an existing database. I think I'd be able to export my DB into MySQL if this would make things easier. But I need some guidance how to start and where to look...
Thanks,
vonson
I run my own Access-database for my optical media, and I would like to create a simple addon for my own use to be able to quickly search a title in this Access-database.
So far I am still in the first steps of learning the basics of Kodi addons. My first problem is: Contary to the tutorials that I found, Kodi does not seem to pass arguments, I run into an out-of-bounds-error when accessing sys.argv[1] as told in the tutorials (sys.argv[0] is fine), but since i probably would not need this it seems neglectible.
Far more important would be an input box (I am sure this will come up later in the tutorial) and, of course, database connection. And here I am stuck. I learn there is a python package (pypyodbc) to connect to an Access-DB, but afaik it is not part of the Kodi-python package and I'd prefer not to install extra packages, since I do not know how to install these on eg. LibreELEC or a Fire Stick (or if this is even possible), both platforms that I use to run Kodi on.
When I search for something like 'Kodi addon SQL' I find a lot of warnings not to mess with Kodi's DB, which I do not intend to do, but so far little else. So - what are my options here? I need help in the basics of accessing an existing database. I think I'd be able to export my DB into MySQL if this would make things easier. But I need some guidance how to start and where to look...
Thanks,
vonson