Listing available SMB and NFS shares on a network in xbmcgui.Dialog()
#1
I am trying to implement the download feature in my xbmc add-on and I want to let user to choose a download folder (SMB or NFS shares).

Unfortunately the xbmc.Dialog() shows only local directories. I am wondering why I can see the list of shares if I add the Video or Audio sources.

The code:

Code:
dialog = xbmcgui.Dialog()
  path = dialog.browse(0, 'title', 'files', addon_path)

Can someone explain what is actually wrong?

Thanks in advance and sorry for my english.
Reply
#2
[RESOLVED] I have to use one of the shares from sources.xml in my case video or music instead of files:

Code:
path = dialog.browse(0, 'title', 'video')

or

Code:
path = dialog.browse(0, 'title', 'music')
Reply

Logout Mark Read Team Forum Stats Members Help
Listing available SMB and NFS shares on a network in xbmcgui.Dialog()0