Kodi Community Forum
saving to a SAMBA share from a python script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: saving to a SAMBA share from a python script (/showthread.php?tid=28395)



saving to a SAMBA share from a python script - bortoni - 2007-09-06

I was wondering, is it possible to save to a SAMBA share from a script (assuming it's writable of course)?

I'm working on a script that downloads files and would not like to save to the xbox HD. I used the dialog.browse to get to a SAMBA share... but urllib.urlretrieve didn't like that destination.

Any ideas?

Thanks,
-Ed


- Nuka1195 - 2007-09-06

the only way i was able to do this with larger files was with the httpapi. smb.py/nmb.py failed with files above 12MB.

You need to save it locally then copy it to the samba share.

link to manual in my signature