Closed zach-morris closed 2 years ago
Started implementation of this, and it seems to work. Need to do some more testing before it's ready to publish https://github.com/zach-morris/plugin.program.iagl/commit/1cfff8e6c3818508e90f1bcfa982765d87950b49
Implemented in 3.0.4
I'm attempting to incorporate multi threaded downloading into the addon. Functionality would work generally as follows: Download of a particular file is initialized Request is made to determine content-length of the file. Some files from archive.org provide this information and some dont If no content-length is provided or the file is sufficiently small (say less than a few MB), then just download the file as normal If the content-length is provided and the file is large enough, then:
I've got some of this down, but the thread safeness of steps 2 and 3 seem be not thread safe, so I'm struggling how to best tackle this issue without libraries that aren't available outside of the standard python 3 libaries in Kodi. All the research I've been doing bring up libraries like aiohttp or request-threads which aren't available...
Anyone have experience with this in Kodi?