Posts: 123
Joined: Jan 2012
Reputation:
0
Hi,
I'm having trouble where recordings that are imported into my recordings table on MythTV are not appearing in the list on Kodi. The key thing here is that they're imports, not being scheduled via Myth (which I know is probably not supported and happy to be told that).
It looks like whilst the entries are added in the recordings table on MythTV and are viewable by MythWeb, the list on the plugin doesn't detect a change in the table. Unfortunately there's no debug being shown in any logs as the events that I would expect to trigger the addon to update don't get sent (e.g. BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE).
Is there a way to force an update of all recordings by the addon without restarting the backend (which works btw) or kodi (which also works)? Or - how are the updates triggered (is it something I can simulate with mythutil?)
Thanks!
Posts: 19,982
Joined: May 2009
Reputation:
452
nickr
Retired Team-Kodi Member
Posts: 19,982
I am not sure what you mean by "imports"?
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: 123
Joined: Jan 2012
Reputation:
0
I'm adding files from another PVR system directly to the recordings (etc.) table of mythtv
Posts: 123
Joined: Jan 2012
Reputation:
0
2015-01-02, 05:32
(This post was last modified: 2015-01-02, 05:35 by flitter2009.)
A little more troubleshooting and when I add the recordings to the database I see these events generated by MythTV
Jan 2 14:19:24 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(64) mythsocket.cpp:982 (ReadStringListReal) MythSocket(1b6dfd0:64): read <- 64 61 MESSAGE[]:[]MASTER_UPDATE_PROG_INFO 3583 2014-12-26T06:00:00Z
Jan 2 14:19:24 hollywood mythbackend: mythbackend[19277]: I ProcessRequest mythcorecontext.cpp:1533 (dispatch) MythEvent: MASTER_UPDATE_PROG_INFO 3583 2014-12-26T06:00:00Z
Jan 2 14:19:24 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(47) mythsocket.cpp:781 (WriteStringListReal) MythSocket(1b720d0:47): write -> 47 759 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE UPDATE[]:[] ProgNameRemovedForPosting[]:[]6....
Jan 2 14:19:24 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(75) mythsocket.cpp:781 (WriteStringListReal) MythSocket(1ab5000:75): write -> 75 759 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE UPDATE[]:[] ProgNameRemovedForPosting[]:[]6....
Jan 2 14:19:24 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(84) mythsocket.cpp:781 (WriteStringListReal) MythSocket(1b85160:84): write -> 84 759 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE UPDATE[]:[] ProgNameRemovedForPosting[]:[]6....
Jan 2 14:19:25 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(64) mythsocket.cpp:982 (ReadStringListReal) MythSocket(1b6dfd0:64): read <- 64 61 MESSAGE[]:[]MASTER_UPDATE_PROG_INFO 3583 2014-12-26T06:00:00Z
Jan 2 14:19:25 hollywood mythbackend: mythbackend[19277]: I ProcessRequest mythcorecontext.cpp:1533 (dispatch) MythEvent: MASTER_UPDATE_PROG_INFO 3583 2014-12-26T06:00:00Z
Jan 2 14:19:25 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(47) mythsocket.cpp:781 (WriteStringListReal) MythSocket(1b720d0:47): write -> 47 759 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE UPDATE[]:[] ProgNameRemovedForPosting[]:[]6....
Jan 2 14:19:25 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(75) mythsocket.cpp:781 (WriteStringListReal) MythSocket(1ab5000:75): write -> 75 759 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE UPDATE[]:[] ProgNameRemovedForPosting[]:[]6....
Jan 2 14:19:25 hollywood mythbackend: mythbackend[19277]: I MythSocketThread(84) mythsocket.cpp:781 (WriteStringListReal) MythSocket(1b85160:84): write -> 84 759 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE UPDATE[]:[]ProgNameRemovedForPosting[]:[]6....
The file then appears in MythWeb.
I see the addon occasionally run GET /Dvr/GetRecordedList?StartIndex=%1&Count=%32%30&Descending=%74%72%75%65 - in the output from that I do see the program but I don't see how that request is triggered and the new program doesn't appear in the listed programs (in the addon) after the GET occurs.
Edit - added clarification to last line
Posts: 123
Joined: Jan 2012
Reputation:
0
Additional debug from the Kodi end...
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 95
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: SYSTEM_EVENT CLIENT_CONNECTED HOSTNAME hollywood SENDER hollywood (6)
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 945
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: RECORDING_LIST_CHANGE UPDATE (2)
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 945
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: RECORDING_LIST_CHANGE UPDATE (2)
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 945
15:39:23 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: RECORDING_LIST_CHANGE UPDATE (2)
15:39:24 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: RunHouseKeeping
15:39:25 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 98
15:39:25 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: SYSTEM_EVENT CLIENT_DISCONNECTED HOSTNAME hollywood SENDER hollywood (6)
15:39:25 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvMessageLength: 98
15:39:25 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: (CPPMyth)RcvBackendMessage: SYSTEM_EVENT CLIENT_DISCONNECTED HOSTNAME hollywood SENDER hollywood (6)
15:39:26 T:4721762304 DEBUG: AddOnLog: MythTV PVR Client: RunHouseKeeping
It looks like the recording list update is triggered but for some reason it doesn't get the list. Is there more debug I can enable?