dave-p / TVHadmin

PHP-powered web front-end for TVHeadend, inspired by VDRadmin.
GNU General Public License v3.0
29 stars 6 forks source link

Icon and tumb #7

Closed luis52627 closed 3 years ago

luis52627 commented 4 years ago

Hi Dave, can you consider put on What's on. the Icon of the channel, instead of channel name, and a thumb of the program..

I mean, the use of this: "channelIcon":"imagecache/15799", and "image":"http://url/xxx.jpg" Thanks

dave-p commented 4 years ago

I've never used icons with TVHeadend. Where do they come from, and what size are they?

luis52627 commented 4 years ago

Example: <img class="x-epg-chicon" src="imagecache/6208"> .x-epg-chicon { float: right; margin: 5px; width: 20%; max-height: 99px; } <img class="x-epg-image" src="http://xxx.jpg"> .x-epg-image { float: right; margin-left: 5px; margin-right: 5px; margin-bottom: 5px; width: 20%; }

dave-p commented 4 years ago

Do you have some real URLs so I can download images to test?

luis52627 commented 4 years ago

Sorry.. x-epg-chicon: https://github.com/gigablue-support-org/templates_PiconsUpdater/tree/master/picon_all x-epg-image: 558553_resized_352x198

http://images.amcnetworks.com/amctv.pt/wp-content/uploads/2019/12/FEATURe_Wisting.jpg

dave-p commented 4 years ago

OK thanks. I've done some experiments with picons and they seem to work from my local network. However there is a problem with using TVHadmin over the internet where the TVH server is not accessible from the internet; the web server running TVHadmin must proxy the images. I'll try to find a way forward.

dave-p commented 4 years ago

That was easier than expected. There is a new GitHub branch "icons" which will show the channel icons in place of the channel name, and a config screen item to switch it on.

The icon size is manually set to 80 x 48 which works well on my desktop and mobile (Android). Hope it works for you.

luis52627 commented 4 years ago

Ok try it but no image.. Code is: http://myphpserver/tvhadmin/icon.php?image=imagecache/6261 and image is on: http://iptvheadendserver:9981/imagecache/6261

Other thing what is "icon_public_url", we have to set any url?

dave-p commented 4 years ago

"icon_public_url" is what is shown under "Icon URL" under Configuration->Channel/EPG->Channels in the TVH GUI. It should be "imagecache/nnnn".

If you enter your image URL "http://iptvheadendserver:9981/imagecache/6261" into your web browser do you see the image?

Are there any errors in the webserver error log?

luis52627 commented 4 years ago

Yes I see image.. ON Configuration->Channel/EPG->Channels I have: http://myphpserver/picons/rtp.png ON General I have: http://myphpserver/picons/%C.png

Just a idea imagecache is the caching on Tvheadend (copy of the picon)... On json you have imagecache/6208, but the file is:

http://iptvheadendserver:9981/imagecache/6208

Difference for thumb's icon images, that use the url from web... Thanks for your time...

dave-p commented 4 years ago

These are my configuration settings: picons The "imagecache" files are just text files containing the URL of the icon, eg

{
        "url": "file:///home/hts/.hts/tvheadend/picons/1_0_1_C7A6_817_2_11A0000_0_0_0.png",
        "accessed": 1584178296,
        "updated": 1584178296
}
dave-p commented 4 years ago

If you're still not seeing the icons I've just pushed an update which may fix your problem.

DominiqueRT commented 4 years ago

It works for me. Can be usefull to have icons also for Timeline, Channels, Favourite Channels, .. Thanks

luis52627 commented 4 years ago

Sorry, but last days.... rrrrrrrrrrrrr... I have it and is working ok... Can you add thumbs on screen=now..

dave-p commented 4 years ago

I've added channel icons to the Recordings screen. I'm not sure about programme thumbnails. They would use up a lot of screen space, and TVHadmin is barely usable on mobile as it is. But you are welcome to experiment...