delete a recording while watching the recording
#1
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
Reply
#2
Found an alternative solution:

1) Browse to MythTV PVR Client addon settings (configure) and enable "Prompt to delete the watched recording"

2) Update the above  Python script to:
import xbmc
xbmc.Player().seekTime(xbmc.Player().getTotalTime())


Enjoy!

Chris
Reply

Logout Mark Read Team Forum Stats Members Help
delete a recording while watching the recording0