Kodi Community Forum

Full Version: IPTV Recorder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I'm new to this topic and now I need your help.
My configuration:
Raspi 3B
Librelec 9.01
Kodi 18
m3u-list from http://bit.ly/kn-kodi-tv
EPG-list from http://bit.ly/2fm4nmf
FFMpeg-Tools installed


Up to this point everything worked fine.
So I installed IPTV Recorder as ZIP (from https://github.com/primaeval/plugin.video.iptv.recorder - "Download ZIP")
After rebooting in the upper right corner I can see the progress of the channels , Program Guide, Streams, unzipping xmltv, Finding channels...
But if there is displayed: "IPTV Recorder - Finding programmes" the system hangs up or after some minutes the system restarts.

Here's an extract (last lines) from kodi.log:
Quote:2019-03-14 15:50:05.057 T:1790935920   DEBUG: CFileCache::Open - opening <kn-kodi-tv-main> using cache
2019-03-14 15:50:05.057 T:1790935920   DEBUG: CurlFile::Open(0x376df70) http://bit.ly/kn-kodi-tv-main
2019-03-14 15:50:05.057 T:1790935920    INFO: easy_acquire - Created session to http://bit.ly
2019-03-14 15:50:05.678 T:1790935920   DEBUG: CCurlFile::Open - effective URL: <https://raw.githubusercontent.com/jnk22/kodinerds-iptv/master/iptv/kodi/kodi_tv_main.m3u>
2019-03-14 15:50:05.679 T:1799328624   DEBUG: Thread FileCache start, auto delete: false
2019-03-14 15:50:05.685 T:1799328624    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
2019-03-14 15:50:05.685 T:1799328624   DEBUG: Thread FileCache 1799328624 terminating
2019-03-14 15:50:05.688 T:1790935920   ERROR: {'confidence': 1.0, 'language': '', 'encoding': 'ascii'}
2019-03-14 15:50:05.689 T:1790935920 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-03-14 15:50:05.729 T:1790935920 WARNING: Previous line repeats 68 times.
2019-03-14 15:50:05.729 T:1790935920   DEBUG: CFileCache::Open - opening <2FM4nMF> using cache
2019-03-14 15:50:05.730 T:1790935920   DEBUG: CurlFile::Open(0x3a963d0) http://bit.ly/2FM4nMF
2019-03-14 15:50:05.881 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: loading setting definitions
2019-03-14 15:50:05.881 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: trying to load setting definitions from old format...
2019-03-14 15:50:05.885 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: loading setting values
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CSettingsManager: requested setting (last.update) was not found.
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: failed to find definition for setting last.update. Creating a setting on-the-fly...
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CSettingsManager: requested setting (version) was not found.
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: failed to find definition for setting version. Creating a setting on-the-fly...
2019-03-14 15:50:05.889 T:1723794288    INFO: CPythonInvoker(1, /storage/.kodi/addons/plugin.video.iptv.recorder/server.py): script successfully run
2019-03-14 15:50:05.889 T:1723794288   DEBUG: onExecutionDone(1, /storage/.kodi/addons/plugin.video.iptv.recorder/server.py)
2019-03-14 15:50:06.007 T:1723794288    INFO: Python interpreter stopped
2019-03-14 15:50:06.008 T:1723794288   DEBUG: Thread LanguageInvoker 1723794288 terminating
2019-03-14 15:50:06.524 T:1790935920   DEBUG: CCurlFile::Open - effective URL: <https://raw.githubusercontent.com/sunsettrack4/xmltv_epg/master/easyepg.gz>
2019-03-14 15:50:06.525 T:1723794288   DEBUG: Thread FileCache start, auto delete: false
2019-03-14 15:50:09.753 T:1723794288    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
2019-03-14 15:50:09.804 T:1723794288   DEBUG: Thread FileCache 1723794288 terminating
2019-03-14 15:50:13.669 T:1905259376   DEBUG: CAESinkPiBig Grineinitialize
2019-03-14 15:50:13.669 T:1905259376   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2019-03-14 15:50:13.679 T:1905259376   DEBUG: COMXCoreComponent:Big Grineinitialize : OMX.broadcom.audio_render handle 0x70f02f50
2019-03-14 15:50:25.844 T:1790935920 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

 

What's wrong?

Please be patient, I'm a Newbie.
(2019-03-14, 16:08)primaeval Wrote: [ -> ]
(2019-03-14, 15:52)ed_davidson01 Wrote: [ -> ]
(2019-03-14, 15:24)primaeval Wrote: [ -> ] It is failing at your tvg_shift values in the m3u file.
It can't convert them to floating point numbers.
Post an example.

You can schedule manual recordings in "Channel Groups" or in the Kodi PVR \ Channels context menu.
However you need some kind of xmltv file for IPTV Recorder to work.
It can be as minimal as the one in the tests folder.  


Hi there Primaeval,
To schedule a manual recording are you saying that you don’t need a complete guide?
If for example one of my channels had no data is it still possible to set the recording up at a certain time?

For example if I wanted to record the weekend news on BBC One on Saturdays but the guide had no data would it still be possible to record the name of the rule (BBC weekend News) at 18.00 on Saturdays?

Awesome addon by the way, love it.  
 You can add a one time or daily time rule in the context menu of channels in the Channel Groups or in the kodi pvr Channels menu.
You can't name them.
The daily time rule has to be every day because it can't match a program without program data.
I could add a way to add a name or specify days of the week but I won't because it is complicated enough as it is.
Any coders out there are welcome to try and I'll add it in.


Could I create a one time rule for a show on Saturday starting at 1800 and ending at 1900 on say Wednesday? Or does it need to be created on that day?
(2019-03-14, 17:04)ed_davidson01 Wrote: [ -> ]
(2019-03-14, 16:08)primaeval Wrote: [ -> ]
(2019-03-14, 15:52)ed_davidson01 Wrote: [ -> ]Hi there Primaeval,
To schedule a manual recording are you saying that you don’t need a complete guide?
If for example one of my channels had no data is it still possible to set the recording up at a certain time?

For example if I wanted to record the weekend news on BBC One on Saturdays but the guide had no data would it still be possible to record the name of the rule (BBC weekend News) at 18.00 on Saturdays?

Awesome addon by the way, love it.  
 You can add a one time or daily time rule in the context menu of channels in the Channel Groups or in the kodi pvr Channels menu.
You can't name them.
The daily time rule has to be every day because it can't match a program without program data.
I could add a way to add a name or specify days of the week but I won't because it is complicated enough as it is.
Any coders out there are welcome to try and I'll add it in. 


Could I create a one time rule for a show on Saturday starting at 1800 and ending at 1900 on say Wednesday? Or does it need to be created on that day? 
Maximum recording time would be 23 hours and 59 minutes.
(2019-03-14, 17:00)Gordon Bleu Wrote: [ -> ]Hello, I'm new to this topic and now I need your help.
My configuration:
Raspi 3B
Librelec 9.01
Kodi 18
m3u-list from http://bit.ly/kn-kodi-tv
EPG-list from http://bit.ly/2fm4nmf
FFMpeg-Tools installed


Up to this point everything worked fine.
So I installed IPTV Recorder as ZIP (from https://github.com/primaeval/plugin.video.iptv.recorder - "Download ZIP")
After rebooting in the upper right corner I can see the progress of the channels , Program Guide, Streams, unzipping xmltv, Finding channels...
But if there is displayed: "IPTV Recorder - Finding programmes" the system hangs up or after some minutes the system restarts.

Here's an extract (last lines) from kodi.log:
Quote:2019-03-14 15:50:05.057 T:1790935920   DEBUG: CFileCache::Open - opening <kn-kodi-tv-main> using cache
2019-03-14 15:50:05.057 T:1790935920   DEBUG: CurlFile::Open(0x376df70) http://bit.ly/kn-kodi-tv-main
2019-03-14 15:50:05.057 T:1790935920    INFO: easy_acquire - Created session to http://bit.ly
2019-03-14 15:50:05.678 T:1790935920   DEBUG: CCurlFile::Open - effective URL: <https://raw.githubusercontent.com/jnk22/kodinerds-iptv/master/iptv/kodi/kodi_tv_main.m3u>
2019-03-14 15:50:05.679 T:1799328624   DEBUG: Thread FileCache start, auto delete: false
2019-03-14 15:50:05.685 T:1799328624    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
2019-03-14 15:50:05.685 T:1799328624   DEBUG: Thread FileCache 1799328624 terminating
2019-03-14 15:50:05.688 T:1790935920   ERROR: {'confidence': 1.0, 'language': '', 'encoding': 'ascii'}
2019-03-14 15:50:05.689 T:1790935920 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
2019-03-14 15:50:05.729 T:1790935920 WARNING: Previous line repeats 68 times.
2019-03-14 15:50:05.729 T:1790935920   DEBUG: CFileCache::Open - opening <2FM4nMF> using cache
2019-03-14 15:50:05.730 T:1790935920   DEBUG: CurlFile::Open(0x3a963d0) http://bit.ly/2FM4nMF
2019-03-14 15:50:05.881 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: loading setting definitions
2019-03-14 15:50:05.881 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: trying to load setting definitions from old format...
2019-03-14 15:50:05.885 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: loading setting values
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CSettingsManager: requested setting (last.update) was not found.
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: failed to find definition for setting last.update. Creating a setting on-the-fly...
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CSettingsManager: requested setting (version) was not found.
2019-03-14 15:50:05.887 T:1723794288   DEBUG: CAddonSettings[plugin.video.iptv.recorder]: failed to find definition for setting version. Creating a setting on-the-fly...
2019-03-14 15:50:05.889 T:1723794288    INFO: CPythonInvoker(1, /storage/.kodi/addons/plugin.video.iptv.recorder/server.py): script successfully run
2019-03-14 15:50:05.889 T:1723794288   DEBUG: onExecutionDone(1, /storage/.kodi/addons/plugin.video.iptv.recorder/server.py)
2019-03-14 15:50:06.007 T:1723794288    INFO: Python interpreter stopped
2019-03-14 15:50:06.008 T:1723794288   DEBUG: Thread LanguageInvoker 1723794288 terminating
2019-03-14 15:50:06.524 T:1790935920   DEBUG: CCurlFile::Open - effective URL: <https://raw.githubusercontent.com/sunsettrack4/xmltv_epg/master/easyepg.gz>
2019-03-14 15:50:06.525 T:1723794288   DEBUG: Thread FileCache start, auto delete: false
2019-03-14 15:50:09.753 T:1723794288    INFO: CFileCache:Tonguerocess - Source read didn't return any data! Hit eof(?)
2019-03-14 15:50:09.804 T:1723794288   DEBUG: Thread FileCache 1723794288 terminating
2019-03-14 15:50:13.669 T:1905259376   DEBUG: CAESinkPiBig Grineinitialize
2019-03-14 15:50:13.669 T:1905259376   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000000
2019-03-14 15:50:13.679 T:1905259376   DEBUG: COMXCoreComponent:Big Grineinitialize : OMX.broadcom.audio_render handle 0x70f02f50
2019-03-14 15:50:25.844 T:1790935920 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

What's wrong?

Please be patient, I'm a Newbie. 
 I suspect you are running out of memory on the rpi. Someone else had a similar problem.
It works fine on Windows.
The xml link you posted is wrong but the one in the log works.
It is a huge xml file.
IPTV Recorder is a python addon and uses lots more memory to load xml files than a c addon like IPTV Simple Client.
Turn on debug logging and you might be able to spot it eating up all your memory before it crashes.
I don't know if you can easily add a swap file in libreelec.
See if there is a cutdown xml file available.
Many thanks for your quick reply.

The low memory may be the reason, because even without IPTV Recorder Kodi already consumes 650000 of 765000 KB.
So I have to wait until there is a new Raspi Version with more memory.

But even without recorder function: Kodi is fantastic Laugh
IPTV Recorder - version 0.0.115
- fixed some crappy m3u problems

WARNING - You may need to re-schedule your recordings!

I've fixed quite a few of the crappy m3u problems with missing attributes etc.
There are lots of internal database changes so you might need to re-add your previous jobs and rules.

This is the test data I have been using.
https://github.com/primaeval/plugin.vide...ter/tests/
If you have problems with your system try adding the m3u and xml into IPTV Recorder and IPTV Simple Client to see where the problem is.
(2019-03-14, 17:04)ed_davidson01 Wrote: [ -> ]Could I create a one time rule for a show on Saturday starting at 1800 and ending at 1900 on say Wednesday? Or does it need to be created on that day? 
 version 0.0.117 now includes WEEKLY timed recording.
See if that works.
Legend. Thank you.
(2019-03-15, 16:25)primaeval Wrote: [ -> ]
(2019-03-14, 17:04)ed_davidson01 Wrote: [ -> ]Could I create a one time rule for a show on Saturday starting at 1800 and ending at 1900 on say Wednesday? Or does it need to be created on that day? 
 version 0.0.117 now includes WEEKLY timed recording.
See if that works.


Now if we could name the rule we wouldn’t need the EPG Wink
(2019-03-15, 16:29)ed_davidson01 Wrote: [ -> ]
(2019-03-15, 16:25)primaeval Wrote: [ -> ]
(2019-03-14, 17:04)ed_davidson01 Wrote: [ -> ]Could I create a one time rule for a show on Saturday starting at 1800 and ending at 1900 on say Wednesday? Or does it need to be created on that day? 
 version 0.0.117 now includes WEEKLY timed recording.
See if that works.  


Now if we could name the rule we wouldn’t need the EPG Wink  
 version 0.0.118
You can now name your fecking Daily and Weekly timer rules when you create them. Tongue
(2019-03-15, 17:49)primaeval Wrote: [ -> ]
(2019-03-15, 16:29)ed_davidson01 Wrote: [ -> ]
(2019-03-15, 16:25)primaeval Wrote: [ -> ] version 0.0.117 now includes WEEKLY timed recording.
See if that works.  


Now if we could name the rule we wouldn’t need the EPG Wink  
 version 0.0.118
You can now name your fecking Daily and Weekly timer rules when you create them. Tongue


Lol. You are de man. Now I can record my fecking “GNS” on BBC One without an EPG
(2019-03-15, 17:49)primaeval Wrote: [ -> ]
(2019-03-15, 16:29)ed_davidson01 Wrote: [ -> ]
(2019-03-15, 16:25)primaeval Wrote: [ -> ] version 0.0.117 now includes WEEKLY timed recording.
See if that works.  


Now if we could name the rule we wouldn’t need the EPG Wink  
 version 0.0.118
You can now name your fecking Daily and Weekly timer rules when you create them. Tongue


Not quite working. It still records as the channel name (BBC One HD) although I typed “test”
Pleeease
(2019-03-16, 21:52)ed_davidson01 Wrote: [ -> ]
(2019-03-15, 17:49)primaeval Wrote: [ -> ]
(2019-03-15, 16:29)ed_davidson01 Wrote: [ -> ]Now if we could name the rule we wouldn’t need the EPG Wink  
 version 0.0.118
You can now name your fecking Daily and Weekly timer rules when you create them. Tongue 


Not quite working. It still records as the channel name (BBC One HD) although I typed “test”
Pleeease  
You asked to rename the rule and renaming the rule is what you got.
Version 0.0.120 should rename the title in the filename too. I expect that is what you really wanted. Try that. Smile
(2019-03-16, 22:47)primaeval Wrote: [ -> ]
(2019-03-16, 21:52)ed_davidson01 Wrote: [ -> ]
(2019-03-15, 17:49)primaeval Wrote: [ -> ] version 0.0.118
You can now name your fecking Daily and Weekly timer rules when you create them. Tongue 


Not quite working. It still records as the channel name (BBC One HD) although I typed “test”
Pleeease  
You asked to rename the rule and renaming the rule is what you got.
Version 0.0.120 should rename the title in the filename too. I expect that is what you really wanted. Try that. Smile


Hi, i get this syntax error:
23:32:09 T:1611537112   ERROR: [plugin.video.iptv.recorder] service started...
23:32:10 T:1674597664   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.SyntaxError'>
                                            Error Contents: ('invalid syntax', ('/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.iptv.recorder/main.py', 1804, 25, '    streams = {x[3]:x for x in streams}\n'))
                                            SyntaxError: ('invalid syntax', ('/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/plugin.video.iptv.recorder/main.py', 1804, 25, '    streams = {x[3]:x for x in streams}\n'))
                                            -->End of Python script error report<--