LiveTV, Recordings widget
#1
I wonder one thing regarding the LiveTV section, and don't know if it possible for the skin to do this or if it is Kodi/PVR client that should do it. But f.ex. MythTV has several recording groups. Where one of the groups is LiveTV. For MythTV a LiveTV event is a recording. But when you change channels a new recording is made every time.

If I choose to show Recordings in my widget, I don't want to have all these recordings from LiveTV. I only want to show recordings that I have actually selected to record. Is it possible for the skin to exclude recordings from the LiveTV group?
Reply
#2
Hmmm, you did select the recordings widget?
Reply
#3
Yes, and I don't want to see the LiveTV recordings. In my mind they are not recordings.
If I change channel 5 times they all show up in the recordings widget.

Or am I missing a setting again =)
Reply
#4
Hmm, I must say that you have a very strange PVR backend than ;-)
It should only list actual recordings. What happend if you navigate to Live TV --> recordings, does that only list the actual recordings or also that full list you're talking about ?
Reply
#5
Mythtv treats all live tv as a recording. There is a setting somewhere to group recordings, which means when you go into livetv|recordings you see two folders (recordings and livetv), so livetv will be sorted out of the way.
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.)
Reply
#6
(2015-11-02, 23:47)nickr Wrote: Mythtv treats all live tv as a recording. There is a setting somewhere to group recordings, which means when you go into livetv|recordings you see two folders (recordings and livetv), so livetv will be sorted out of the way.

Yes, the recordings is grouped into LiveTV and Default, where Default is the "real" recordings. That is how it looks if i select livetv|recordings.

But the widget Recordings in the Titan skin shows LiveTV recordings, and I would like to only show actual recordings, not LiveTV recordings. But I don't know if it possible for the Widget to see the difference between those two groups?
Reply
#7
(2015-11-02, 23:17)marcelveldt Wrote: Hmm, I must say that you have a very strange PVR backend than ;-)
It should only list actual recordings. What happend if you navigate to Live TV --> recordings, does that only list the actual recordings or also that full list you're talking about ?

There I have the two groups LiveTV and Default. I guess that for most people that uses MythTV as a PVR backend I think that everyone would like to filter out the group LiveTV.
As I understand it is possible to have other groups also with MythTV, they are called recording groups. But even if you have several groups I would think that no one would like to see the LiveTV group in the Recordings widget. But that is just my opinion.

If it is even possible to make the widget ignore recordings from the LiveTV group?
Reply
#8
The recordings widget gets It's content from the Kodi json API. I think I can filter out live tv entries but I have to code that in the dark because I don't have an mythtv backend.
Reply
#9
(2015-11-03, 19:03)marcelveldt Wrote: The recordings widget gets It's content from the Kodi json API. I think I can filter out live tv entries but I have to code that in the dark because I don't have an mythtv backend.

If you are willing to try I am willing to test =) Maybe you could have a setting, if it works, to include/exclude LiveTV recordings for Myth PVR. Maybe some people wants them.
Reply
#10
(2015-11-03, 19:25)raptorjr Wrote: If you are willing to try I am willing to test =) Maybe you could have a setting, if it works, to include/exclude LiveTV recordings for Myth PVR. Maybe some people wants them.

OK, testing time.... Big Grin

I have just uploaded version 1.0.2. of the skin helper service to the beta repo.
Please update to that version and test the recordings widget. I have coded it entirely blind so let's hope that iot does the magic ;-)

It might take a while to get it to flush the cache so to be sure wait 10 minutes after updating the addon.
Reply
#11
First attempt don't seem to work. Still see the LiveTV recordings in the widget. No change.

Is there some kind of log you need, or debugging I can do to help?
Reply
#12
(2015-11-05, 23:39)raptorjr Wrote: First attempt don't seem to work. Still see the LiveTV recordings in the widget. No change.

Is there some kind of log you need, or debugging I can do to help?

haha, time for step 2... you will have to get your hands dirty now Big Grin

Please navigate to your local Kodi userdata folder on the disk (close Kodi first)
Open the addons folder
Open the folder script.skin.helper.service --> resources --> lib
Open the file PluginContent.py in a proper texteditor, you are about to type python code now
Scroll to line 431 of that file, that's the place where I did put in a little hack in an attempt to filter the weird mythtv listings.
insert a new line so right before "channelname = ..."
add this exact line of code there:

PHP Code:
logMsg("pvr backend: %s - label: %s - file: %s" %(pvr_backend,item["label"],item["file"],0)) 

Take good care of the indentation, use the exact same amount of spaces before the line as for the channelname= entry

After you've added the above line of code you can start Kodi. Adding this line of code will result in the script spewing a load of loglines to the kodi log.
Please wait untill those lines are in your log and send that logfile or a portion of it to me...
I must found out what the filename is like of those mystery entries so I can filter them out somehow.
Reply
#13
I can't get it to work. I get a error:

14:52:29 T:8732 ERROR: File "C:\Users\Stefan\AppData\Roaming\Kodi\addons\script.skin.helper.service\resources\lib\PluginContent.py", line 432, in getPVRRecordings
14:52:29 T:8732 ERROR: logMsg("pvr backend: %s - label: %s - file: %s" %(pvr_backend,item["label"],item["file"],0))
14:52:29 T:8732 ERROR: TypeError: not all arguments converted during string formatting

Am I missing something? Tried to write the line myself, and tried copy/paste.
Reply
#14
Sorry, my mistake.. the is a small typo in the brackets...
It should be this:

logMsg("pvr backend: %s - label: %s - file: %s" %(pvr_backend,item["label"],item["file"]),0)
Reply
#15
Now it looks better. Here is some lines from the log. I believe it contains some useful information. But from what i can see in your code you already look for the word LiveTV in the filename. But maybe it is case sensitive?
The difference between "valid" recording and LiveTV recording seems to be "Default" or "LiveTV" in the filename.

Code:
17:44:21 T:8664  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: 24: Live Another Day - Amerikansk dramaserie från 2014 - file: pvr://recordings/active/Default/24: Live Another Day/24: Live Another Day - Amerikansk dramaserie från 2014, TV (TV3), 20140805_185900.pvr
17:44:21 T:8664  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: The Blacklist - Amerikansk dramaserie från 2015 - file: pvr://recordings/active/Default/The Blacklist/The Blacklist - Amerikansk dramaserie från 2015, TV (TV3), 20151105_210000.pvr
17:44:21 T:8664  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Mitt kök - Del 17 av 48 säsong 1 - file: pvr://recordings/active/LiveTV/Mitt kök/Mitt kök - Del 17 av 48 säsong 1, TV (TV4), 20151109_152947.pvr
17:44:21 T:4896  NOTICE: Thread FileCache start, auto delete: false
17:44:21 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Äntligen hemma - Del 15 av 15 säsong 16 - file: pvr://recordings/active/LiveTV/Äntligen hemma/Äntligen hemma - Del 15 av 15 säsong 16, TV (TV4), 20151109_155501.pvr
17:44:21 T:8680  NOTICE: Previous line repeats 1 times.
17:44:21 T:8680  NOTICE: Thread FileCache start, auto delete: false
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Almost Human - Pilot - file: pvr://recordings/active/LiveTV/Almost Human/Almost Human - Pilot, TV (Kanal 5), 20140403_203124.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Family Guy - Amerikansk animerad serie från 2013 - file: pvr://recordings/active/Default/Family Guy/Family Guy - Amerikansk animerad serie från 2013, TV (TV6), 20151102_205900.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Unknown - file: pvr://recordings/active/LiveTV/Unknown/Unknown, TV (TV6), 20151108_210941.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Unknown - file: pvr://recordings/active/LiveTV/Unknown/Unknown, TV (TV6), 20151108_213000.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Unknown - file: pvr://recordings/active/LiveTV/Unknown/Unknown, TV (TV6), 20151108_215600.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Unknown - file: pvr://recordings/active/LiveTV/Unknown/Unknown, TV (TV6), 20151108_220000.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Unknown - file: pvr://recordings/active/LiveTV/Unknown/Unknown, TV (TV6), 20151108_223000.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Unknown - file: pvr://recordings/active/LiveTV/Unknown/Unknown, TV (TV6), 20151108_230000.pvr
17:44:22 T:8172  NOTICE: Previous line repeats 1 times.
17:44:22 T:8172  NOTICE: Skin Helper Service --> pvr backend: MythTV (tvdator) - label: Brooklyn Nine-Nine - Charges and Specs - file: pvr://recordings/active/LiveTV/Brooklyn Nine-Nine/Brooklyn Nine-Nine - Charges and Specs, TV (TV6), 20151109_152901.pvr
Reply

Logout Mark Read Team Forum Stats Members Help
LiveTV, Recordings widget0