Posts: 182
Joined: Feb 2015
Reputation:
1
I would like to run mythfilldatabase to update the Channel listings from Schedules Direct from within Kodi.
Most of the time, the mythbackend updates every 24 hours and that works, but occasionally, like today, I see a lot of sports programming not right, so I fixed it by ssh'ing to the backend and running it manually. But I had to exit Kodi, get out the keyboard to do the ssh. I'd love to be able to force this within Kodi using my remote.
Any ideas?
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
SSH can be scripted, so what I would do is write an add-on that ran a short python script to SSH into the backend and run mythfilldatabase. You'd need to set up password less login via keys.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
In fact I have never written an add-on and may have a play.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 548
Joined: Aug 2012
Reputation:
0
Wouldn't it be better to have the automatic run of mythfilldatabase closer to the time were most sport events are? I understand that if mythfilldatabase runs in the middle of the night that the times maybe change a bit for later that day. But if you run mythfilldatabase during the afternoon or something, maybe the times would be more correct?
Don't know when most sport is, but I'm guessing afternoon/evening.
I think it is always nice to have a system that manages itself. Otherwise, if you setup a recording rule to record something and you are not at home and can update the EPG manually you would maybe miss the beginning/end.
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
You could also use cron to schedule it whenever you like, even every 15 minutes, although I am not sure whether SD imposes any limits or quotas.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 182
Joined: Feb 2015
Reputation:
1
Thanks for all the help. I think I'll start with forcing the updates automatically at a better time for me.