Project

General

Profile

I have written a better EPG

Added by Paul M about 6 years ago

I'm sorry but I know this has been covered in various ways when discussing apps, but I don't think it's been specifically discussed about the web interface that you access from laptop or desktop.

The default EPG in TVH is useful if you want to look for a specific channel, or search for a specific program. However, unlike most DVRs, there doesn't appear to be a grid view with channels listed vertically and "now and next" listed horizontally.


Replies (66)

RE: I have written a better EPG - Added by David G over 2 years ago

Hi Paul M, to try and help I've attached Freesat channels 91 & 92 TV logos.

To keep things simple, I would just # out this line for now, at least things seem to work then on my setup?;

#   "'": "’" 

EDIT: Note the forum has changed the ' character to _ in logo file names so needs a rename ;-)

That_s Music.png (431 KB) That_s Music.png Freesat 92 logo
That_s TV (UK).png (489 KB) That_s TV (UK).png Freesat 91 logo

RE: I have written a better EPG - Added by Paul M over 2 years ago

I added a channel table feature which is much more convenient than having a list; the number of columns in the channel table is user-settable.

I also combined the channel list and epg function.

happy to receive ideas

RE: I have written a better EPG - Added by Paul M over 2 years ago

I added your fix, DavidG, for channels with apostrophes in the name

RE: I have written a better EPG - Added by David G over 2 years ago

All good, thanks Paul M.

RE: I have written a better EPG - Added by Paul M over 2 years ago

realised I'd created a few bugs because I was improving the score in pylint, fixed those. I think I'll stop that for the moment and try and do them all in one go and test better before pushing.

I enabled the discussions feature in github.

RE: I have written a better EPG - Added by Eyerex UK over 2 years ago

Big thanks a lot easier to use than the installed version

RE: I have written a better EPG - Added by Paul M over 2 years ago

Eyerex UK wrote:

Big thanks a lot easier to use than the installed version

Your thanks are much appreciated. And I'm happy to take ideas and contributions.

RE: I have written a better EPG - Added by Henri Matthijssen over 1 year ago

TVHAdmin works great on my system (Debian). However I have one annoyance. When I start a stream with TVHAdmin it is nicely forwarded to VLCPlayer on my system. However each time I also have to manually input my user-credentials of TVHeadEnd again in VLCPlayer otherwise it will not start the stream. When using the UI of TVHeadEnd itself this is not needed, thus there these seems implicitly included in the URL. What can I check/do to solve this. I have the feeling that TVHAdmin does not include the user-credentials in the URL.

I am running the latest version of TVHAdmin and TVHeadEnd (4.3-2098~g44bf691ac). I use as browser Firefox, but have the same issue with Chrome.

RE: I have written a better EPG - Added by Dave Pickles over 1 year ago

When you start a stream, with TVHadmin or the TVH UI, a .m3u file is downloaded which your browser then passes to your player to open. The URL in the file from the TVH UI includes a 'ticket' parameter which links to your user credentials, the one from TVHadmin does not.

The quick workaround is to remove the need for authentication when streaming, by giving the "*" user basic streaming rights. I'll check where the 'ticket' comes from, and if it might be possible for TVHadmin to supply one.

RE: I have written a better EPG - Added by Henri Matthijssen over 1 year ago

Thank you for your quick reaction Dave, really appreciated! However I do not exactly understand what you mean with { by giving the "*" user basic streaming rights }. Where and how can I do that?

I have 5 users in my TVHeadEnd installation which all have for 'streaming' setting all enabled (Basic, Advanced and HTSP). Further I have set 'Allowed networks' to: 0.0.0.0/0,::/0 for all configured users.

RE: I have written a better EPG - Added by Dave Pickles over 1 year ago

If you go to Configuration -> Users -> Access Entries and then open the Help screen, there is a description of the "*" user.

Of course anyone who has network access to your TVH server will have the rights granted to the "*" user, which might not be appropriate for your situation.

RE: I have written a better EPG - Added by Henri Matthijssen over 1 year ago

That did the trick Dave. Thank you very much!

Any plans to include 'ticket' parameter with TVHadmin as well like TVH does? This way I can remove the workaround with '*' user and do not have to take care of the implications I get with rights granted to '*' user.

RE: I have written a better EPG - Added by Dave Pickles over 1 year ago

Hmmm that was easier than expected...

I've created a new branch 'use-ticket' on GitHub with the fix. You'll need to delete your "*" user to see if it works.

One side-effect to watch. Firefox (and I believe Chrome) leave the m3u file in your 'downloads' directory. Since the 'ticket' is only valid for five minutes you won't be able to re-use an old m3u file.

RE: I have written a better EPG - Added by Henri Matthijssen over 1 year ago

git clone --branch use-ticket https://github.com/dave-p/TVHadmin-JS.git
Cloning into 'TVHadmin-JS'...
fatal: Remote branch use-ticket not found in upstream origin

When I check the branches in https://github.com/dave-p/TVHadmin-JS I see only:
  • master
  • advanced
  • timer-clash
  • timer-clash2

RE: I have written a better EPG - Added by Dave Pickles over 1 year ago

Ah you're using the Javascript version! Should be there now.

RE: I have written a better EPG - Added by Henri Matthijssen over 1 year ago

I can confirm that it works now without the '*' user workaround. Great Dave. Thank you very much!

(51-66/66)