2010-10-02, 02:56
Anyone done anything like this? Ive found a few python libraries for doing it, but I am hesitant to go down that path because of all the platform differences between Samba, XP, Vista, and Windows 7 - I have my doubts that the libraries I have found will reliably work across all platforms well enough to not cause users grief...
My needs are very very simple - download a file from a server with minimal fuss... I currently use urllib to do the fetches over http which works great - but requires the user to setup an http server. I would like to add an option to my plugin to operate in smb mode and just have it grab a file using a unc path.
XBMC has great builtin support for smb - but there doesn't appear to be a way to leverage it from python (or at least I don't see a way to). Is there something I'm missing, or is the library route the way to go?
Any suggestions welcome.
My needs are very very simple - download a file from a server with minimal fuss... I currently use urllib to do the fetches over http which works great - but requires the user to setup an http server. I would like to add an option to my plugin to operate in smb mode and just have it grab a file using a unc path.
XBMC has great builtin support for smb - but there doesn't appear to be a way to leverage it from python (or at least I don't see a way to). Is there something I'm missing, or is the library route the way to go?
Any suggestions welcome.