Copy a playlist file from a SMB share to the Xbox on XBMC startup?
#1
Hi,


I've searched the forum, but I'm overwhelmed with information and my n00bness holds me back to pick out the correct information.

- I've managed to install XBMC as my default dashboard.
- with the autostartmanager I managed to start a playlist on startup.
(files in this playlist are stored on an smb)


Now I want XBMC copy a playlist (general.m3u) from a location on smb to the playlist location on the xbox.

The idea is as follows. I edit a playlist on my pc and store it on the smb. The next time XBMC starts, it copies the one on the smb to the xbox and starts playing that playlist.

This way I'm able to edit the playlist on another location, and the next time I power up the xbox, my new/edited playlist is played.

What I've found from the forum is that I have to play a autoexec.py script, which basically calls another script which does the actual copying of the playlist.


Thanks in Advance !
Reply
#2
use xbmc.executehttpapi() to copy from a smb share. read the pydocs, link in my signature.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Hi Nuka,


Thanks for your input, I will read the info tonight ! and see if I manage to get it to work !

Many thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Copy a playlist file from a SMB share to the Xbox on XBMC startup?0