Project

General

Profile

Tvheadend >4.0 with Kodi 17

Added by Sagar Kherdekar over 7 years ago

Hello

I want to use tvheadend 4.0 or 4.2 with Kodi 17.0 without tvheadend webui. Is it possible to add muxes/channels in tvheadend using either api or cli?

Please suggest...

Thanks in advance


Replies (40)

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

No, I don't. As there are no muxes in webui. I had tried with "file:///home/guest/iptv.m3u" and "http://127.0.0.1/iptv.m3u" both.

But still hard luck. One more thing I want to mention that I already know the process to add muxes, map services to channels using web interface but I want to avoid same as it will require human effort which is not usable for my target.

If you can check logs which I had sent you for some error in your python script then it might help you to correct me if I've forgot to configure something.

RE: Tvheadend >4.0 with Kodi 17 - Added by edit4ever ! over 7 years ago

What operating system are you running and what do you see as the location of the file when you look at it through a file manager?

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

I'm using Ubuntu OS and when I'm able to see m3u file in file manager.

RE: Tvheadend >4.0 with Kodi 17 - Added by edit4ever ! over 7 years ago

From the ubuntu file manager - navigate to the folder where you placed your file.

right click on the folder name at the top and get properties - you can see the path there.

In the attached screenshot - you can see I navigated to the Documents folder and that the parent folder is /home/jm - so if I had put your file in this folder - my full path would be:

file:///home/jm/Documents/iptv.m3u

Hopefully it's just the username part that was wrong for you. You might also have permissions issues if tvheadend is trying to access your home folder - but tvheadend acts as the hts user. In which case - you might want to put the file in the hts user directory.

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

Thanks
I tried copying m3u file in /home/hts/.hts/tvheadend folder then it worked for a while to scan just 1st channel only.

Now its giving same error again. One more thing that it stops where it doesn't find feed of next url.

Please update anything else I've to do because I'm leaving for today.

RE: Tvheadend >4.0 with Kodi 17 - Added by edit4ever ! over 7 years ago

outside of rebooting - I'm not sure what else you will need. I don't have a lot of experience with IPTV - hopefully someone else can provide more information.

Sorry.

--FYI I did update my tvh2kodi addon to handle a network with 0 muxes: [[https://tvheadend.org/boards/14/topics/27100]]

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

I'm using tvheadend version version 4.2.3-19~g490b6f2.

Which version you are using? I've tried multiple times but getting only one mux always.

RE: Tvheadend >4.0 with Kodi 17 - Added by edit4ever ! over 7 years ago

Try dropping the tvg-id="id" tvg-name="Channel" group-title="Movies" for now and see if that works. Maybe there's an issue with those all being the same. I would think the tvg-id and tvg-channel should be unique or not there.

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

I've tried with removing them only.
Currently my iptv.m3u looks like following:

#EXTM3U
#EXTINF:0 group-title="Movies",NHKWorldTV
udp://239.255.1.12:1234
#EXTINF:0 group-title="Movies",STarSportsHD1
udp://239.255.1.2:1234
#EXTINF:0 group-title="Movies",StarMoviesHD
udp://239.255.1.4:1234
#EXTINF:0 group-title="Movies",ServusTv
udp://239.255.1.5:1234

And all feeds are available if I run with adding muxes manually.

RE: Tvheadend >4.0 with Kodi 17 - Added by edit4ever ! over 7 years ago

change the #EXTINF:0 to #EXTINF:-1

RE: Tvheadend >4.0 with Kodi 17 - Added by edit4ever ! over 7 years ago

I think you should repost in this forum with the title - "need help with IPTV network and UDP stream"

That will likely get some people with more experience in this area.

Good luck!

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

Thanks a lot for your help with this addon.

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

Can anyone help me with tvheadend api ? So that I can add,delete network,muxes,channels,service mapping using API.

It will be helpful if I can get URLs and description.

RE: Tvheadend >4.0 with Kodi 17 - Added by Robert Cameron over 7 years ago

https://tvheadend.org/projects/tvheadend/wiki/HtspSagar Kherdekar wrote:

Can anyone help me with tvheadend api ? So that I can add,delete network,muxes,channels,service mapping using API.

It will be helpful if I can get URLs and description.

https://tvheadend.org/projects/tvheadend/wiki/Htsp

RE: Tvheadend >4.0 with Kodi 17 - Added by Sagar Kherdekar over 7 years ago

Hello edit4ever!,

Can you give me little bit information regarding tvheadend api ? What is minimum tvheadend version required for this API ? 
Will it work on tvheadend 4.0 ?

Thanks in advance.

(26-40/40)