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.
(2019-03-01, 00:06)giaur Wrote: [ -> ]When I watch and record the same channel, will it open 2 connections to my iptv provider? I need to be sure I can prevent it from happening, otherwise I will get banned.
[EDIT] Yes  it will open 2 connections. You might be able to watch the recording from the Recordings folder at the same time but that might cause the recording to stop if your device gets overloaded.

I couldn't guarantee only opening one connection at once so I'm not going to even try adding it to the addon.

If your provider doesn't do its own connection limiting on its server and leaves it up to you, then it is time to get a better provider.

You can also use any of the other Kodi addons that provide TV channels, either in the official repo or elsewhere.
Use the plugin:// links that you get when you add a link to Kodi Favourites (without the PlayMedia command) in your m3u.
(2019-03-01, 08:52)Hoggens Wrote: [ -> ]Hi primaeval ! The last update everything loads but i cant start a channel inside iptvrecorder even tried ffplay. The channel doesnt start.
 Hi. Try version 0.0.108.
There was a bug that got introduced with the recent changes to handle formatting in channel names.
Hi,

is it possible to set timer with a remote like offical kodi app or is it the same problem because of no binary installation?
(2019-03-01, 15:13)mcxpert Wrote: [ -> ]Hi,

is it possible to set timer with a remote like offical kodi app or is it the same problem because of no binary installation?
 Hi. It is theoretically possible.
You can do normal program recording via the default Kodi web interface.
Doing a timed recording isn't possible that way without making a custom web interface.
If you or anyone else wants to do it you can send an rpc request to the record_once_time command.

If you really want to use a remote the easiest solution is to use the "xmltv Meld" addon to create dummy channels with dummy programs.
You can set the length of each program and the time of day starting offset in the settings.

However probably the best solution is to use tvheadend.
It's remote web interface is very comprehensive.
It even comes pre-installed as part of LibreELEC.
Now its working. I have a good provider and 6 lines. But now it works.
Hi, I can't get it to work. I did have it all working but just seems to have stopped. When I look at all groups there is nothing showing yet epg shows all channels.
(2019-03-02, 20:35)Nathcloud9 Wrote: [ -> ]Hi, I can't get it to work. I did have it all working but just seems to have stopped. When I look at all groups there is nothing showing yet epg shows all channels.
 That sounds like a problem with your m3u.
Are there any errors in kodi.log?
Is the contents of your m3u correct? It gets copied to:
"userdata\addon_data\plugin.video.iptv.recorder\channels1.m3u"
Do the tvg-id attributes in the m3u match the channel id values in the xml?
"userdata\addon_data\plugin.video.iptv.recorder\xmltv1.xml"
Hi Primaeval,

Is it possible to add support for the MOD of the ESTUARY skin?

306757 (thread)
(2019-03-04, 17:37)Laser78 Wrote: [ -> ]Hi Primaeval,

Is it possible to add support for the MOD of the ESTUARY skin?

306757 (thread)
 I expect so.

Look for the file called
DialogPVRInfo.xml
and add this to the grouplist control with an id of 9000.
ie after
<control type="grouplist" id="9000">
                    <include content="InfoDialogButton">
                        <param name="width" value="275" />
                        <param name="id" value="666" />
                        <param name="icon" value="icons/infodialogs/record.png" />
                        <param name="label" value="IPTV Recorder" />
                        <param name="onclick_1" value="Action(close)" />
                        <param name="onclick_2" value="RunScript(plugin.video.iptv.recorder,$ESCINFO[ListItem.ChannelName],$ESCINFO[ListItem.Title],$ESCINFO[ListItem.Date],$ESCINFO[ListItem.Duration],$ESCINFO[ListItem.Plot])" />
                        <param name="visible" value="System.hasAddon(plugin.video.iptv.recorder)" />
                    </include>
                    <include content="InfoDialogButton">
                        <param name="width" value="275" />
                        <param name="id" value="667" />
                        <param name="icon" value="icons/infodialogs/record.png" />
                        <param name="label" value="Recordings" />
                        <param name="onclick_1" value="Action(close)" />
                        <param name="onclick_2" value="ActivateWindow(10025,&quot;plugin://plugin.video.iptv.recorder/recordings&quot;,return)" />
                        <param name="visible" value="System.hasAddon(plugin.video.iptv.recorder)" />
                    </include>

It looks like it is here from his repo
https://github.com/Guilouz/skin.estuary....fo.xml#L57

Look in the one that IPTV Recorder creates to make sure you understand where it should go:
"addons\skin.estuary.iptv.recorder\xml\DialogPVRInfo.xml"
It works well !

Can it be done with any skin?
(2019-03-04, 18:43)Laser78 Wrote: [ -> ]It works well !

Can it be done with any skin?
 I expect so.

The code above is for Estuary based skins.

Confluence ones are a bit different but similar.
Follow this post for details.
2824451 (post)

The main thing is you need to do is close the dialog boxes and do the RunScript for the program recording options,
Action(close)
RunScript(plugin.video.iptv.recorder,$ESCINFO[ListItem.ChannelName],$ESCINFO[ListItem.Title],$ESCINFO[ListItem.Date],$ESCINFO[ListItem.Duration],$ESCINFO[ListItem.Plot])
or do the ActivateWindow to reach the Recordings.
Action(close)
Code:
ActivateWindow(10025,plugin://plugin.video.iptv.recorder/recordings,return)
works ! thanks again  Wink
Hi,

In Windows 10 everything works ok but Android does not and I use the same list, I do not understand ... I have modified the list leaving only 1 channel and I also get error.

attached LOG

Code:
2019-03-04 21:54:42.630 T:5577  NOTICE: VideoInfoScanner: Starting scan ..

2019-03-04 21:54:43.226 T:5577  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00

2019-03-04 22:00:36.507 T:4861  NOTICE: GL_VENDOR = ARM

2019-03-04 22:00:36.507 T:4861  NOTICE: GL_RENDERER = Mali-450 MP

2019-03-04 22:00:36.507 T:4861  NOTICE: GL_VERSION = OpenGL ES 2.0

2019-03-04 22:00:36.508 T:4861  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00

2019-03-04 22:00:36.508 T:4861  NOTICE: GL_EXTENSIONS = GL_EXT_debug_marker GL_OES_texture_npot GL_OES_vertex_array_object GL_OES_compressed_ETC1_RGB8_texture GL_EXT_compressed_ETC1_RGB8_sub_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_depth24 GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_OES_vertex_half_float GL_EXT_blend_minmax GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_rgb8_rgba8 GL_EXT_multisampled_render_to_texture GL_EXT_discard_framebuffer GL_OES_get_program_binary GL_ARM_mali_program_binary GL_EXT_shader_texture_lod GL_EXT_robustness GL_OES_depth_texture_cube_map GL_KHR_debug GL_ARM_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_mapbuffer

2019-03-04 22:00:37.130 T:7738  NOTICE: VideoInfoScanner: Starting scan ..

2019-03-04 22:00:37.411 T:7738  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00

2019-03-04 22:00:43.485 T:5434  NOTICE: Trying to open: samplerate: 44100, channelMask: 12, encoding: 4

2019-03-04 22:00:43.499 T:5434  NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 60208 m_frames: 3763 m_frameSize: 8 channels: 2

2019-03-04 22:01:03.374 T:7741   ERROR: GetDirectory - Error getting

2019-03-04 22:01:05.002 T:7747   ERROR: Previous line repeats 6 times.

2019-03-04 22:01:05.002 T:7747 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:05.144 T:7747  NOTICE: [xbmcswift2] Request for "/" matches rule for function "index"

2019-03-04 22:01:05.148 T:7747 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:10.852 T:7756 WARNING: Previous line repeats 3 times.

2019-03-04 22:01:10.852 T:7756  NOTICE: [xbmcswift2] Request for "/select_groups" matches rule for function "select_groups"

2019-03-04 22:01:13.191 T:7756 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:13.197 T:7756 WARNING: Previous line repeats 1 times.

2019-03-04 22:01:13.197 T:7756   ERROR: {'confidence': 1.0, 'language': '', 'encoding': 'ascii'}

2019-03-04 22:01:13.198 T:7756 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:13.798 T:7756 WARNING: Previous line repeats 4 times.

2019-03-04 22:01:13.798 T:7756   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!

                                            Error Type: <type 'exceptions.IOError'>

                                            Error Contents: [Errno 22] Invalid argument

                                            Traceback (most recent call last):

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 3151, in <module>

                                                plugin.run()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 332, in run

                                                items = self._dispatch(self.request.path)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 306, in _dispatch

                                                listitems = view_func(**items)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 2962, in select_groups

                                                full_service()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 2217, in full_service

                                                xmltv()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 2588, in xmltv

                                                data = g.read()

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/gzip.py", line 261, in read

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/gzip.py", line 332, in _read

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/gzip.py", line 349, in _read_eof

                                            IOError: [Errno 22] Invalid argument

                                            -->End of Python script error report<--

2019-03-04 22:01:18.551 T:7764 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:18.665 T:7764  NOTICE: [xbmcswift2] Request for "/select_groups" matches rule for function "select_groups"

2019-03-04 22:01:21.684 T:7764 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:21.690 T:7764 WARNING: Previous line repeats 1 times.

2019-03-04 22:01:21.690 T:7764   ERROR: {'confidence': 1.0, 'language': '', 'encoding': 'ascii'}

2019-03-04 22:01:21.691 T:7764 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value

2019-03-04 22:01:22.149 T:7764 WARNING: Previous line repeats 4 times.

2019-03-04 22:01:22.150 T:7764   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!

                                            Error Type: <type 'exceptions.IOError'>

                                            Error Contents: [Errno 22] Invalid argument

                                            Traceback (most recent call last):

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 3151, in <module>

                                                plugin.run()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 332, in run

                                                items = self._dispatch(self.request.path)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 306, in _dispatch

                                                listitems = view_func(**items)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 2962, in select_groups

                                                full_service()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 2217, in full_service

                                                xmltv()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.iptv.recorder/main.py", line 2588, in xmltv

                                                data = g.read()

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/gzip.py", line 261, in read

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/gzip.py", line 332, in _read

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/gzip.py", line 349, in _read_eof

                                            IOError: [Errno 22] Invalid argument

                                            -->End of Python script error report<--
Hello forum..  great add-on!!  I have it working just fine in Win10 but I cannot seem to get it working with Linux-Mint.  I suspect the FFmpeg file that i'm selecting in settings is incorrect.  The .json and .ts files show in the selected share when a recording begins, however the .ts does not increase in size.  I have Kodi 18.1 and ffmpeg v7:2.8.15-0ubuntu0.16.04.1 installed on a VM.  I've tried pointing the "ffmpeg exe" to the following locations below w/o success.  My most recent log is attached.  Please advise if possible, thanks!!   

MyLog

/usr/bin/ffmpeg;
/usr/share/ffmpeg; and
/usr/share/man/man1/ffmpeg.1.gz
(2019-03-04, 23:25)Laser78 Wrote: [ -> ]Hi,

In Windows 10 everything works ok but Android does not and I use the same list, I do not understand ... I have modified the list leaving only 1 channel and I also get error.
 It can't uncompress your xml file after downloading it to a temporary file.
Change the name of
"userdata\addon_data\plugin.video.iptv.recorder\xmltv1.tmp"
to
"userdata\addon_data\plugin.video.iptv.recorder\xmltv1.gz"
and see if you can open it with a program like 7zip.

Check if the source of your xml is ok by opening its url in a browser.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75