Guide artwork with TVHeadend and Schedules Direct?
#1
Hi,

I've been testing some backend PVR options for Kodi. For a few reasons, TVHeadend is my favorite option.

I have a question regarding the EPG. When using Kodi+NextPVR, in the TV Guide I get artwork for shows in the bottom left corner, like this : http://prntscr.com/l2sspy

When using TVHeadend, I don't have these artwork. It's nothing critical, but I think it looks nicer. Is there a way to get these to work?

Thanks
Reply
#2
Yes, but it depends on how and where you get your guide data.  For instance, I get mine from radiotimes.com and they supply show icons (which are the ones you are missing).  I use WebGrab+Plus to scrape my guide data and it automatically puts the links to the show icons into the guide and then tvh downloads them when it imports the guide. 

So, firstly you need a site or a supplier that carries the icons.  If you visit https://www.radiotimes.com/tv/tv-listings/  and hover over a show, you will get a more detailed description and an icon next to it, so you will need to find a site that does similar and setup WebGrab+Plus to scrape it, or find a ready-made guide provider that includes the links back to the icons.

Then your guide data will contain info like this

xml:
<programme start="20181006113000 +0100" stop="20181006120000 +0100" channel="BBC One">
    <title lang="en">Raymond Blanc: How to Cook Well</title>
    <desc lang="en">The chef gives a masterclass in poaching, one of his favourite techniques, because of the way it conserves and enhances the flavours of delicate ingredients while keeping them in perfect shape. He starts with a simple poached egg and tomato fondue, then demonstrates how to make chicken with morel mushrooms cooked with vin jaune wine from his native Jura region in France, before preparing a dessert of poached peach with peach granita</desc>
    <credits>
      <producer>Alan Brown</producer>
      <producer>Charlotte Reid</producer>
      <presenter>Raymond Blanc</presenter>
    </credits>
    <category lang="en">Food</category>
    <icon src="https://images.radiotimes.com/remote/static.radiotimes.com.edgesuite.net/pa/68/44/webANXrblanchowcookwellS1.jpg?quality=60&amp;mode=crop&amp;width=130&amp;height=100&amp;404=tv" />
    <episode-num system="onscreen">S6 E2</episode-num>
  </programme>

Note the link there back to the icon for that show at images.radiotimes.com
Learning Linux the hard way !!
Reply
#3
Thanks for the information.

I've been using Schedule Direct both on NextPVR and TVHeadend. Should I conclude that NextPVR is adding the information on its own from another source?

I have read about using zap2it as a source, I suppose I'll give this a try. I haven't found other solutions for EPG in Québec, Canada yet.

Edit :
That's what I get from Schedules Direct, I guess that explains stuffs
xml:
<programs>
<program id='EP000229822433'>
<series>EP00022982</series>
<title>Cityline</title>
<showType>Series</showType>
<originalAirDate>2018-10-03</originalAirDate>
<syndicatedEpisodeNumber>1314</syndicatedEpisodeNumber>
<description>Stress-free recipes for weekday dinners; a discussion on breast cancer and fertility; a discussion on the differences between a chiropractor, osteopath, physiotherapist and acupuncturist.</description>
</program>
Reply
#4
zap2xml will indeed provide those icons but there is a downside:  All those icons are stored and after a while it slows down Tvheadend's startup after a reboot - see https://twosortoftechguys.wordpress.com/...em-reboot/ for possible solutions.

However if you want to try it anyway this article may help you - it's written primarily for free-to-air satellite viewers but most of it is applicable to antenna users also: https://freetoairamerica.wordpress.com/2...-frontend/

This should work just fine for your Québec channels.
Reply
#5
I confirm, with zap2xml it works!

I'll look into the cache issue making TVHeadend longer to start at another time (I still have to figure out how to make zap2xml run daily or something and I'm quite a beginner when it comes to linux command line). I have a feeling I won't have much problem considering I have less than 10 channels available (or at least, it will much longer to happen)

Edit : It has not been easy but I think I finally succeeded! I managed to create a cron job for zap2xml, copy the resulting file to /home/hts/.xmltv/tv_grab_file.xmltv and TVHeadend with the tv_grab_file (that was missing for some reasons?) will successfully read it. I just wish I would have taken more notes during the process. Now I just have to remap my channels.
Reply
#6
Cool, glad you got it working Smile

And remember, everybody using Linux was once a beginner at the command line !  Plenty of info out there on the web though if you get stuck.  There is pretty much always someone that has had the same problem and asked somewhere how to resolve it.

Can't say I've ever had a problem with TVH being slow to start.  Just checked that directory given in the article and there are 9663 files in the data directory and 10931 in the meta directory.  I have never as far as I can remember, deleted anything from it.....  Might be a disk space issue at some point, but as TVH only downloads to that cache every so often, and only serves the icons currently in the guide, I can't really see why it would cause it to start slowly.  Not cleaning it up is something that needs addressing, but for the flexibility of having TVH update any channel names and icons that may change, I can live with it for now.  Besides, I have 4 kodi instances pointing at the server and it would be a pain to set up channel icons on each of them individually.
Learning Linux the hard way !!
Reply
#7
Oh well, I thought I was finally done, but it looks like I'm not.

I have have been testing everything with Kodi on my main computer. (No special add-dons installed, fresh v18 beta 3 install). Everything is working the way I want right now.

I just installed it on my HTPC, The PVR Settings and TVH Plugin settings on both, the HTPC can see the channels and guide text just fine but no picture will show up.

Edit : Found it! Kodi bug, I believe.

There was a difference in the end, for some reasons (probably clicked the wrong version) I installed the 32 bits version on my main computer where it works fine. On my HTPC, I installed the 64 bit version. I lost the full log but I had these lines in my log :

Code:
14:24:05.626 T:9168    INFO: Previous line repeats 2 times.
14:24:05.626 T:9168   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.626 T:9168   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.629 T:8976   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.629 T:8976   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.639 T:4008   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.639 T:4008   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.652 T:3664   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.652 T:3664   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.684 T:9168   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.684 T:9168   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.689 T:8976   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.689 T:8976   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.711 T:4008   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.712 T:4008   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.729 T:3664   ERROR: CCurlFile::Stat - Failed: SSL connect error(35) for https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png
14:24:05.729 T:3664   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url https://zap2it.tmsimg.com/h3/NowShowing/..._h3_aa.png

After a google search I have read that there was a past issue with the libcurl.dll file for the 64 bit version of Kodi. I simply reinstalled 32 bits instead and now everything works \o/

I'll try to report this at the correct place later today, if it isn't already a known issue.
Reply
#8
Ah, it could be this https://forum.kodi.tv/showthread.php?tid=335786 which is to do with python cryptography and python-openssl  Basically, it breaks ssl connections with Kodi even though the actual app is a c++ program and isn't using those libraries.  Solution is in the thread I linked to.

OFC, you might not be running Ubuntu 16.04.x and if not, ignore this.  **Actually, looking at your post again you mention libcurl.dll which makes me suspect you are running Windows (why ?) on that machine.
Learning Linux the hard way !!
Reply
#9
Yes, Windows 10 Pro.

Why? Thinking about it and I don't see any reason that would force me to stick to Windows for this HTPC. Being a gamer I never considered installing another OS. I know Linux is slowly making progress but we're not quite there yet. I also use OneDrive and Office 365, so I always install Windows. It's an OS I know very well and since I don't do torrents or I don't really download shady software, I've never had any issues in the last few years (until last night... activating Windows 10 on the HTPC has been a pain in the ass. I changed some hardware, reinstalled the OS and it wouldn't let me move the licence)

But now that you mention it, this PC is going to be used only for Kodi, maybe some Steam in-home streaming but that works on Linux too. That could be a great opportunity to try Linux for other stuff than headless VMs.
Reply
#10
Hmm, maybe something to consider.  I switched out all my xbmc/Kodi stuff to Linux based OS's about 5 years ago.  Admittedly they are all standalone 'set-top' style boxes other than one, but I have never regretted that decision.  I do have stuff that runs Windows but that is now just because I need it for my day job.  Given a free choice, nothing in my house would run Windows, despite the fact that until I made the change I had always run Windows, right back since Windows 2.  Funny thing is, I really don't miss it.  Linux seems to be able to do pretty much everything I need with no issues - gaming is done on the xbox one so don't need a PC to be able to do that.  Also, some of my hardware on these systems is pretty old and running Windows on them would be a heavy load that I don't need.  I have Kodi 18 running on Ubuntu 16.04 server on a Pentium 4 in 1 Gig of memory and an 80G hdd.  Fine for my bedroom PC which doesn't need 4K and 5/7.1 audio etc.  Watching TV and listening to either streaming radio or mp3/flac files doesn't need a high end rig.

Office 365 is cloud based I think and as such there is no immediate Linux replacement, although if you don't need the cloud features, libreOffice does pretty much the same thing for no cost.

Gaming of course is a completely different animal, but I bought an Xbox, then a 360 and then a One to do that with.

Your kit and your call at the end of the day as to what you run, but in my (maybe limited) experience, Linux runs faster and in a smaller footprint than Windows, although Win 10 has made big strides in this area.


P.S. My day job involves 'fixing' issues with mainly Windows based PC's.  In the last 10 years I have looked at only 3 Linux based PC's.
Learning Linux the hard way !!
Reply
#11
(2018-10-06, 19:58)black_eagle Wrote: Can't say I've ever had a problem with TVH being slow to start.  Just checked that directory given in the article and there are 9663 files in the data directory and 10931 in the meta directory.  I have never as far as I can remember, deleted anything from it.....  Might be a disk space issue at some point, but as TVH only downloads to that cache every so often, and only serves the icons currently in the guide, I can't really see why it would cause it to start slowly.  Not cleaning it up is something that needs addressing, but for the flexibility of having TVH update any channel names and icons that may change, I can live with it for now.  Besides, I have 4 kodi instances pointing at the server and it would be a pain to set up channel icons on each of them individually.
You won't see the issue until you have been running Tvheadend for quite some time, but the issue is that in the current versions it never deletes anything - so if it ever saves an icon, even for something you only briefly look at in the guide, that icon will be there forever unless you clean it.  Supposedly this will be addressed in Tvheadend 4.4 but who knows when that will appear, of if they'll really fix it.  But rest assured the problem is real - I had a backend where Tvheadend was taking between 5-10 MINUTES to start up after a reboot, then I found that article and now it's back to coming up almost immediately after the system finishes rebooting.

As for it being "a pain" to store the channel icons on each system running Kodi, I'm not sure why, you just create the icon directory on one system and then copy the entire directory to the other systems over your local network.  The main problems I found with storing the TV channel icons on the backend were these:

- Slows Kodi startup and causes unexpected crashes.  But YMMV on this; some people say they have not seen this issue, but others have reported it.  And admittedly I haven't tried it since probably Kodi Isengard, or thereabouts.

- Tvheadend prefers "picons", most of which are low quality garbage in my personal opinion.  Seriously, maybe some people could not care less if their icons are fuzzy pieces of shit, but I do and I absolutely refuse to use them.  When you store the icons on each system individually they can be any size you like (despite what some Kodi documentation may tell you) and Kodi will scale them for you, so they appear the correct size (though obviously it doesn't make sense to use super huge images; they just need to be large enough so that the icons don't appear fuzzy or blocky in Kodi).

- And of course there is the problem that if you try to clean out all the old accumulated cruft because Tvheadend is getting slow to start, you may wipe out all your channel icons.

It's your system so you can do what you like; I'm just saying that the one time I tried storing the icons in Tvheadend I did not like the results at all!
Reply
#12
(2018-10-07, 10:06)xbmclinuxuser Wrote:
(2018-10-06, 19:58)black_eagle Wrote: Can't say I've ever had a problem with TVH being slow to start.  Just checked that directory given in the article and there are 9663 files in the data directory and 10931 in the meta directory.  I have never as far as I can remember, deleted anything from it.....  Might be a disk space issue at some point, but as TVH only downloads to that cache every so often, and only serves the icons currently in the guide, I can't really see why it would cause it to start slowly.  Not cleaning it up is something that needs addressing, but for the flexibility of having TVH update any channel names and icons that may change, I can live with it for now.  Besides, I have 4 kodi instances pointing at the server and it would be a pain to set up channel icons on each of them individually.
You won't see the issue until you have been running Tvheadend for quite some time, but the issue is that in the current versions it never deletes anything - so if it ever saves an icon, even for something you only briefly look at in the guide, that icon will be there forever unless you clean it.  Supposedly this will be addressed in Tvheadend 4.4 but who knows when that will appear, of if they'll really fix it.  But rest assured the problem is real - I had a backend where Tvheadend was taking between 5-10 MINUTES to start up after a reboot, then I found that article and now it's back to coming up almost immediately after the system finishes rebooting.

As for it being "a pain" to store the channel icons on each system running Kodi, I'm not sure why, you just create the icon directory on one system and then copy the entire directory to the other systems over your local network.  The main problems I found with storing the TV channel icons on the backend were these:

- Slows Kodi startup and causes unexpected crashes.  But YMMV on this; some people say they have not seen this issue, but others have reported it.  And admittedly I haven't tried it since probably Kodi Isengard, or thereabouts.

- Tvheadend prefers "picons", most of which are low quality garbage in my personal opinion.  Seriously, maybe some people could not care less if their icons are fuzzy pieces of shit, but I do and I absolutely refuse to use them.  When you store the icons on each system individually they can be any size you like (despite what some Kodi documentation may tell you) and Kodi will scale them for you, so they appear the correct size (though obviously it doesn't make sense to use super huge images; they just need to be large enough so that the icons don't appear fuzzy or blocky in Kodi).

- And of course there is the problem that if you try to clean out all the old accumulated cruft because Tvheadend is getting slow to start, you may wipe out all your channel icons.

It's your system so you can do what you like; I'm just saying that the one time I tried storing the icons in Tvheadend I did not like the results at all! 
Oh yes, I can see why it might possibly be an issue, but I've been running TVH for about 5 years now and never experienced it take more than a few seconds to start.  Admittedly, it runs on a server that is only rebooted if it has to be but it's never been an issue for me.  You can certainly tell TVH to prefer Picons but I've been down that road before and the results were not that good!  Now, my guide incorporates the channel icons as well as the show icons (handy as E4 have changed their channel logo this week) and all four systems update automatically from TVH.

In the end, it's whatever works best for the person using it.  For me, it's getting TVH to sync all the icons to all of my Kodi installs, for you it's getting Kodi to do the icon loading.  Both have their merits and disadvantages I guess, but the very fact that we have that flexibility and choice makes it a better system (in my view).

Uptime on my TVH server...

Code:
floyd@sapphire:~$ uptime
 09:22:00 up 54 days, 19:57,  1 user,  load average: 0.00, 0.05, 0.08
Learning Linux the hard way !!
Reply
#13
(2018-10-06, 22:11)BigBlarg Wrote: Yes, Windows 10 Pro.

Why? Thinking about it and I don't see any reason that would force me to stick to Windows for this HTPC. Being a gamer I never considered installing another OS. I know Linux is slowly making progress but we're not quite there yet. I also use OneDrive and Office 365, so I always install Windows. It's an OS I know very well and since I don't do torrents or I don't really download shady software, I've never had any issues in the last few years (until last night... activating Windows 10 on the HTPC has been a pain in the ass. I changed some hardware, reinstalled the OS and it wouldn't let me move the licence)

But now that you mention it, this PC is going to be used only for Kodi, maybe some Steam in-home streaming but that works on Linux too. That could be a great opportunity to try Linux for other stuff than headless VMs.
I'll give you my recommendation based on my experience.  First, if you think you may want to do ANYTHING in Linux other than run Kodi, and I mean ANYTHING AT ALL, then avoid distributions like LibreELEC or OpenELEC like the plague!  They actively try to keep you from doing anything in Linux, in fact you can't even get to a Linux command prompt.  I couldn't possibly hate those distributions more.

On the same site I mentioned in an earlier post there is an article called How to install Kodi media player to Ubuntu 18.04 (Bionic Beaver) Desktop but honestly if I were you I would install Ubuntu 16.04 (the previous Long Term Support version).  The reason is that 18.04 has a lot of weirdness because they abandoned the Unity desktop and changed a lot of things as a result.  So in 18.04 there are a few little tweaks that made need to be made that were not necessary in 16.04.  In Ubuntu 16.04, you would just install Kodi using the instructions at https://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux and if you had an infrared remote you would also install lirc and that would be just about it.  But none of that process seems to be quite as simple or easy in Ubuntu 18.04.  You CAN get Kodi to work in 18.04, it just requires a bit of additional effort.  Ubuntu 16.04 still has about 2½ years of support left, and hopefully by the time the next LTS release is available some of the kinks will have been worked out.

Also, if you have a multichannel receiver that supports 5.1 or 7.1 audio, getting it to work well requires a few configuration tricks that aren't covered in the official documentation (you generally get best results using ALSA audio rather than the Ubuntu default pulseaudio, and by using passthrough audio in Kodi) but that's a whole other subject.

Kodi does seem to work quite well in Ubuntu 16.04, and can be made to work well in 18.04 with a bit of effort.  One caveat though, I have not made the move to 4K yet, so don't have any idea how it works for that.
Reply
#14
Well, I'm not sure what's going on but my HTPC and Windows 10 decided they don't want to get along. I've been wasting hours on it and still can't get it to work fine. It really is my first time having annoying issues like that in Windows. The HTPC is built from an Asrock J3455-ITX motherboard with an integrated Intel Celeron J3455 CPU and an Intel HD 500 video card to which I added only some standard RAM (2x 4GB). It is weak but has no CPU fan, can be powered with a PicoPSU making it completely silent, and have a very low power consumption, which is perfect for an HTPC.
  • Windows 10 wouldn't active for unknown reasons despite trying to transfer a valid retail licence (previously upgraded from Win 7 on the hardware of my dead HTPC).
  • Had to install Windows 7 but the default installation medium doesn't have native USB 3 drivers and mouse/keyboard wouldn't work. (no USB2 chip on the motherboard despite having USB2 ports)
  • Found a way to patch in the drivers after 2 or 3 attempts. Installed Win 7, activated it, launched the upgrade to Win 10.
  • Windows 10 is activated, yay!
  • Installed Kodi, had issues with the 64 bit version, downgraded to 32 bit (as described above)
  • Kodi wasn't performing well in the menus (on average I had 30 fps) but figured it was just the weak motherboard/cpu/graphic card combo. Video playback seemed fine.
  • Tried to upgrade to the latest Intel HD 500 drivers downloaded from Intel and Windows 10 would boot loop until I uninstalled the drivers from safe mode.
For shit and giggles I decided to boot Linux Mint 19 from a USB key.
  • Only trouble was finding where to tell Mint to use the HDMI Audio output instead of the 3.5mm audio output.
  • Installed Kodi 64 bits without any issues.
  • Stable 60 FPS everywhere in Kodi and got the TVHeadend plugin to work fine on the first try.
So Linux Mint 19 it is! (once in a while I do mess with different linux distros in VMs and I never really liked Ubuntu)

I did think about LibreElec / OpenElec / OSMC but I wanted features that are only in Kodi v18 so far and I didn't want to waste time trying to figure out how to run beta version of Kodi on them, if possible at all. That and Steam In-Home streaming.

About 4k, I didn't buy into that hype yet. I even bought a 720p TV last year because it was very cheap and for the size of the TV and the distance from me and the TV, I wouldn't even had benefited from 1080p. I also don't have a surround audio system, I'm just using soundbars+subwoofers and I'm happy with that.

I do use an IR Remote. It's an old cable box remote and I built my own USB IR receiver with an Arduino. The computer sees it as a regular keyboard. I just have to edit the code to support the keyboard shortcuts used in Kodi and once that will be done, in theory it should work flawlessly just like it did in Windows Media Center.

Anyways, thanks for the recommendations!
Reply
#15
As long as you are happy with the result that's all that matters.  I'm glad you got it working!
Reply

Logout Mark Read Team Forum Stats Members Help
Guide artwork with TVHeadend and Schedules Direct?0