Pyton script
#1
Hi there,

Something is wrong with my script, please share your knowledge because i will go nuts soon.
The scenario is this:

I need on xbmc startup to run a script for syncing my subtitles from a ftp server.

In autoexec.py i added the following line:
xbmc.executescript('/private/var/mobile/Media/Subs/update.py')

In the update.py i have this lines:

import os

os.chdir('/private/var/mobile/Media/Subs')
os.system("wget -N -r -nd -A srt ftp://user:[email protected]/ftp/series/")
os.system("wget -N -r -nd -A srt ftp://user:[email protected]/ftp/movies/")

Tell me please what i'm doing wrong here.
I added first line because without it, the script is downloading the files in /private/var/mobile
But after i inserted os.chdir('/private/var/mobile/Media/Subs') the script is not working anymore, i mean is connecting to ftp but nothing is downloaded.
In log nothing seems to be wrong.

Thank you.

Apple TV2
IOs 4.2.1
XBMC PRE-10.0 Git:d651965 (compiled : Feb 18 2011)
Reply

Logout Mark Read Team Forum Stats Members Help
Pyton script0