How to build an add-ons to download media files
#1
Hi,
I'm new here and I'm learning how to build an add-ons.
I have my own media server hosted a lot of mp3, mp4 files. I can write an simple add-ons to play online those files through HTTP using ListItem. But I don't now how to download it into local devices and play it without internet connection.
Can anyone show me a simple snippet that would do this?

Thanks in advance!

P/S: Can anyone move this topic to the Add-ons category?
Reply
#2
use culr/urllib/requests to download the file, then xbmc.player.play
Reply
#3
Thanks wsnipex, but where I can find the downloaded file ?
P/S: Could you please provide for an example in kodi add-ons?
Reply

Logout Mark Read Team Forum Stats Members Help
How to build an add-ons to download media files0