2015-09-26, 02:06
Yes you need to run them as two separate commands.
If you wanted to reduce the duration of the whole process you could consider processing each client in parallel, eg.:
Although caching specific movies is usually pretty quick, I've no idea how long Artwork Organizer takes to finish.
Knowing when a script like AD or AO has finished can also be a challenge as the JSON exec method isn't synchronous, unfortunately... If you need to wait until an add-on has finished before continuing with another stage of the process then tailing kodi.log is often the only solution and is best run directly on the remote client (using scp/ssh etc.)
If you wanted to reduce the duration of the whole process you could consider processing each client in parallel, eg.:
Code:
(tc1 c movies <moviename> && tc1 exec ...) &
(tc2 c movies <moviename> && tc2 exec ...) &
Although caching specific movies is usually pretty quick, I've no idea how long Artwork Organizer takes to finish.
Knowing when a script like AD or AO has finished can also be a challenge as the JSON exec method isn't synchronous, unfortunately... If you need to wait until an add-on has finished before continuing with another stage of the process then tailing kodi.log is often the only solution and is best run directly on the remote client (using scp/ssh etc.)