Forums » Tutorial and setups »
Need some help with IPTV provider's xml url link in tvheadend
Added by johnny smith almost 7 years ago
I have a iptv provider and they have channels from all over the world and over 3000+ channels. They provide us with a epg link url in the form of http://IPTVprovider:port/xmltv.php?username=xxxxxxxxxx.com&password=xxxxxxxxx. I have a tvheadend server stable-4.2 running in ubuntu 16.04. I am using kodi clients but I dont see anywhere to put the epg url link in tvheadend addon. Have they changed the addon? Only thing referencing epg is a box you check for "epg asynchronous transfer". Can somebody help me with this? also since there are channels from all over the world this would take multiple epg's would it not? Also does tvheadend expect the user to set a grabber for all 3000+ channels one at a time? What if a channel gets added or subtracted? Another thing is they have movie channels. There is no way for grabber services to know what is scheduled to play on these channels. So I kind of have to use my providers url link. There just isnt alot of info on this subject. The one I found here on these forums that matches it closely talks about tvheadend SERVER does not do direct xml url links and to use the tvheadend kodi addon and plug the info in there. But I guess they may have changed the addon because i dont see anywhere to enter that info. The post on the forums i read was from like 5 or 7 months ago. So i guess any changes to the addon must have happened recently. How can this be accomplished? So I can click on my epg url link and save it as xmltv.xml file i reckon but how to keep it updating? And then you have to click on each channel on the server (3000+)to assign it the xml file? Surely there is an easier way right? NEXTPVR does exactly what I need it to do but it is windows based and I was hoping to run the server on a small android box with a octo-core processor. I have everything working except the epg. If the epg isnt right then recording scheduling wont be right either. I really could use your guys help with this one. I am sooooo ready to cut the cord with direct tv. Thanks
edit the forum topic i am referring to is here: https://tvheadend.org/boards/4/topics/27110
Replies (5)
RE: Need some help with IPTV provider's xml url link in tvheadend - Added by Robert Cameron almost 7 years ago
The Kodi addon has never supported entry of XMLTV URLs. You need to set up your xmltv grabber outside of Tvheadend, and then tell Tvheadend about the grabber in its webui.
RE: Need some help with IPTV provider's xml url link in tvheadend - Added by johnny smith almost 7 years ago
so what grabber do i use for this kind of xml url i posted above and how do i keep it current and updated?
RE: Need some help with IPTV provider's xml url link in tvheadend - Added by Robert Cameron almost 7 years ago
You can either use tv_grab_file
, or pipe your XMLTV into the xmltv.sock socket using curl
, socat
, nc
or similar.
RE: Need some help with IPTV provider's xml url link in tvheadend - Added by K Shea almost 7 years ago
I have found that using tv_grab_file is a lot easier than trying to understand sockets. You may find this article, starting at the third paragraph and continuing to the first "EDIT:" useful - ignore the parts about free-to-air and about zap2xml, they do not apply in your case - you are only really interested in the parts about using tv_grab_file:
Note especially the paragraph that begins, "NOTE: There are some people that find that for whatever reason, they cannot run the tv_grab_file script. This most often happens on systems or devices where bash is not installed (to determine whether that is the case, enter which bash at a Linux command prompt and if bash is installed it will display the path, typically /bin/bash). ..." That may apply to you if you are running on Android.
I'm not sure if Tvheadend will automatically assign listings data to channels, but I don't think so, at least not in all cases. You're probably not going to watch all 3000+ channels and the list is likely going to change over time, so just map the listings to the channels you actually watch. Ignore the ones that are in languages you don't speak, or that cover topics of no interest to you.
You have to keep in mind that when Tvheadend was originally written, there was no such thing as IPTV, and even in the existing settings there are many things I wish were easier to set (for example, all newly created services default to "auto check enabled", which is not the setting you want with transponders that can go down for an entire weekend or for hours or days at a time. My preference would be to have them all set initially to disabled, or to be able to select a group and change them all at once, but you can't do that and it's really annoying). I think just about everyone that uses Tvheadend wishes it were easier to use in some way or another, but it's really the only program of its type that works well under Linux. I can't tell say anything about Android; I've always run Tvheadend on a system with an Intel CPU, using Debian or Ubuntu Server as the OS.
RE: Need some help with IPTV provider's xml url link in tvheadend - Added by johnny smith almost 7 years ago
K Shea wrote:
I have found that using tv_grab_file is a lot easier than trying to understand sockets. You may find this article, starting at the third paragraph and continuing to the first "EDIT:" useful - ignore the parts about free-to-air and about zap2xml, they do not apply in your case - you are only really interested in the parts about using tv_grab_file:
Note especially the paragraph that begins, "NOTE: There are some people that find that for whatever reason, they cannot run the tv_grab_file script. This most often happens on systems or devices where bash is not installed (to determine whether that is the case, enter which bash at a Linux command prompt and if bash is installed it will display the path, typically /bin/bash). ..." That may apply to you if you are running on Android.
I'm not sure if Tvheadend will automatically assign listings data to channels, but I don't think so, at least not in all cases. You're probably not going to watch all 3000+ channels and the list is likely going to change over time, so just map the listings to the channels you actually watch. Ignore the ones that are in languages you don't speak, or that cover topics of no interest to you.
You have to keep in mind that when Tvheadend was originally written, there was no such thing as IPTV, and even in the existing settings there are many things I wish were easier to set (for example, all newly created services default to "auto check enabled", which is not the setting you want with transponders that can go down for an entire weekend or for hours or days at a time. My preference would be to have them all set initially to disabled, or to be able to select a group and change them all at once, but you can't do that and it's really annoying). I think just about everyone that uses Tvheadend wishes it were easier to use in some way or another, but it's really the only program of its type that works well under Linux. I can't tell say anything about Android; I've always run Tvheadend on a system with an Intel CPU, using Debian or Ubuntu Server as the OS.
thank you for your response. I will give it a thorough read later after work. Thanks again. Will post results as soon as i can. o7