2016-02-02, 19:12
(2016-02-02, 18:20)lstar337 Wrote: Now if I want a button to update the imdb ratings etc. then this:
Should work?Code:RunScript(special://profile/shell.py,./texturecache.py, imdb movies |special://profile/texturecache.py set)
No, you'll need to write a simple script, /storage/.kodi/userdata/imdb.sh, that encapsulates all that pipeline activity:
Code:
#!/bin/bash
/storage/.kodi/userdata/texturecache.py imdb movies | /storage/.kodi/userdata/texturecache.py set
don't forget to give it execute permission:
Code:
chmod +x /storage/.kodi/userdata/imdb.sh
then call imdb.sh via shell.py:
Code:
RunScript(special://profile/shell.py,./imdb.sh)
There's only so much you can do with RunScript() - it's not a general purpose command line substitute.