2021-02-05, 04:53
I've just moved to mythtv on KODI from native mytthv frontend. Best addon ever! Thx!
I'm trying to emulate being able to delete a recording while watching the recording.
I've added the following entry in Kodi\userdata\keymaps\gen.xml
<FullscreenVideo>
<keyboard>
<!-- d -->
<key id="0xf044">runscript(special://masterprofile/addon_data/scripts/delete_active.py)</key>
</keyboard>
</FullscreenVideo>
And the Python script looks like below:
import xbmc
xbmc.Player().stop()
xbmc.executebuiltin("Action(Delete)")
This script works as long as the list of recordings is small. But it seems that if the number of recordings is more than there is space available on the screen, this fails. I believe that this is the case because there is no recording selected.
Question
- Is it possible to select a recording in the list of recordings from Python based on the recording name (xbmc.Player().getPlayingFile()) such that "Action(Delete)" works?
- Any other ideas to be able to delete a recording while watching the recording?
Thanks,
Chris
I'm trying to emulate being able to delete a recording while watching the recording.
I've added the following entry in Kodi\userdata\keymaps\gen.xml
<FullscreenVideo>
<keyboard>
<!-- d -->
<key id="0xf044">runscript(special://masterprofile/addon_data/scripts/delete_active.py)</key>
</keyboard>
</FullscreenVideo>
And the Python script looks like below:
import xbmc
xbmc.Player().stop()
xbmc.executebuiltin("Action(Delete)")
This script works as long as the list of recordings is small. But it seems that if the number of recordings is more than there is space available on the screen, this fails. I believe that this is the case because there is no recording selected.
Question
- Is it possible to select a recording in the list of recordings from Python based on the recording name (xbmc.Player().getPlayingFile()) such that "Action(Delete)" works?
- Any other ideas to be able to delete a recording while watching the recording?
Thanks,
Chris