Kodi Community Forum
TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) (/showthread.php?tid=282157)



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-24

(2017-08-24, 10:14)josegerez Wrote: OK. I've tried on a VM with LibreELEC 8.0.2 and it worked fine. I will try this version on my RPi.

Thx for your help.

That could be useful for me to do testing. How did you set up LibreELEC in a VM?


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Doctor Eggs - 2017-08-24

I'm having an issue setting up streams with Stream Searcher. I am using the Playon Browser add-on to create streams.

I go into Stream Searcher >> Folders. Here is the folder structure:

Code:
Playon Browser
>> Directv Now
>> >> Networks
>> >> >> AMC
>> >> >> >> All Shows
>> >> >> >> Live Channels
>> >> >> COMEDYCENTRAL
>> >> >> >> All Shows
>> >> >> >> Live Channels
>> >> >> Disney Channel
>> >> >> >> All Shows
>> >> >> >> Live Channels
>> >> >> ESPN
>> >> >> >> Live Channels

Inside each of the Live Channels folder is the stream. The stream is named "Live Channels" with the exception of ESPN which has three streams named "Live Channels", "Live Channels.", and "Live Channels.."

I right click on each of the Live Channels folders and select Add Folder.

When I then go into Stream Searcher >> Channels, I'm not sure what to enter in when I add a channel. I have tried "AMC" but that doesn't return anything. I enter "Live Channels" and that brings up all of them but I have no idea which is which.

Any help on this would be greatly appreciated.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-24

(2017-08-24, 23:04)Doctor Eggs Wrote: I'm having an issue setting up streams with Stream Searcher. I am using the Playon Browser add-on to create streams.

I go into Stream Searcher >> Folders. Here is the folder structure:

Code:
Playon Browser
>> Directv Now
>> >> Networks
>> >> >> AMC
>> >> >> >> All Shows
>> >> >> >> Live Channels
>> >> >> COMEDYCENTRAL
>> >> >> >> All Shows
>> >> >> >> Live Channels
>> >> >> Disney Channel
>> >> >> >> All Shows
>> >> >> >> Live Channels
>> >> >> ESPN
>> >> >> >> Live Channels

Inside each of the Live Channels folder is the stream. The stream is named "Live Channels" with the exception of ESPN which has three streams named "Live Channels", "Live Channels.", and "Live Channels.."

I right click on each of the Live Channels folders and select Add Folder.

When I then go into Stream Searcher >> Channels, I'm not sure what to enter in when I add a channel. I have tried "AMC" but that doesn't return anything. I enter "Live Channels" and that brings up all of them but I have no idea which is which.

Any help on this would be greatly appreciated.

What are the channels called in say "Networks\AMC\Live Channels"?

The Channels is a fuzzy search for all the channels in the Folders you added. It should match AMC to anything in Live Channels called *AMC* where * is anything.

I don't think it should get confused by the Live Channels folders having the same name but it might.

Have you tried the PVR Plugin Player addon? It is similar to Stream Searcher but probably easier if the folders don't change very often.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - josegerez - 2017-08-25

(2017-08-24, 18:01)primaeval Wrote:
(2017-08-24, 10:14)josegerez Wrote: OK. I've tried on a VM with LibreELEC 8.0.2 and it worked fine. I will try this version on my RPi.

Thx for your help.

That could be useful for me to do testing. How did you set up LibreELEC in a VM?

I've downloaded the OVA file from https://ftp.nluug.nl/mediaplayer/libreelec/LibreELEC-Virtual.x86_64-8.0.2.ova and deployed on vmware workstation (I suppose it will be possible to import in VirutalBox o Windows HyperV also, but I've not tried it)
Once imported you can start the VM and you have a functional LibreELEC machine.

Regards


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Doctor Eggs - 2017-08-25

(2017-08-24, 23:16)primaeval Wrote: What are the channels called in say "Networks\AMC\Live Channels"?

The Channels is a fuzzy search for all the channels in the Folders you added. It should match AMC to anything in Live Channels called *AMC* where * is anything.

I don't think it should get confused by the Live Channels folders having the same name but it might.

Have you tried the PVR Plugin Player addon? It is similar to Stream Searcher but probably easier if the folders don't change very often.

When I go in through the Playon Browser add-on, it says "Live AMC - National Lampoon's Christmas Vacation". When I go in through Stream Searcher, it says "Live Channels".

I haven't tried the PVR Plugin Player but will give it a go. I think it might be a problem as the stream name will be changing often since it follows the "Live [channelName] - [showThatIsPlaying]" naming scheme.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-25

(2017-08-25, 02:58)Doctor Eggs Wrote:
(2017-08-24, 23:16)primaeval Wrote: What are the channels called in say "Networks\AMC\Live Channels"?

The Channels is a fuzzy search for all the channels in the Folders you added. It should match AMC to anything in Live Channels called *AMC* where * is anything.

I don't think it should get confused by the Live Channels folders having the same name but it might.

Have you tried the PVR Plugin Player addon? It is similar to Stream Searcher but probably easier if the folders don't change very often.

When I go in through the Playon Browser add-on, it says "Live AMC - National Lampoon's Christmas Vacation". When I go in through Stream Searcher, it says "Live Channels".

I haven't tried the PVR Plugin Player but will give it a go. I think it might be a problem as the stream name will be changing often since it follows the "Live [channelName] - [showThatIsPlaying]" naming scheme.

It should have still found it if you made a channel called AMC in the Channels section.
Maybe there is something else going on.
Can you link directly to the "Live AMC - National Lampoon's Christmas Vacation" stream from "TVGF\Menu\Stream Setup\Browse" ?


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-25

(2017-08-25, 01:12)josegerez Wrote:
(2017-08-24, 18:01)primaeval Wrote:
(2017-08-24, 10:14)josegerez Wrote: OK. I've tried on a VM with LibreELEC 8.0.2 and it worked fine. I will try this version on my RPi.

Thx for your help.

That could be useful for me to do testing. How did you set up LibreELEC in a VM?

I've downloaded the OVA file from https://ftp.nluug.nl/mediaplayer/libreelec/LibreELEC-Virtual.x86_64-8.0.2.ova and deployed on vmware workstation (I suppose it will be possible to import in VirutalBox o Windows HyperV also, but I've not tried it)
Once imported you can start the VM and you have a functional LibreELEC machine.

Regards

Thanks. I tried using VirtualBox first but it looks like it isn't supported any more according to some forum posts and got stuck loading xorg.

I can't find any upgrades for LibreELEC-Virtual.x86_64 to 8.1.0. Do you know where they are?


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Blackbear199 - 2017-08-25

do you think that maybe the problem with the 8.1.0 might be related to the samba changes?
the release notes are here for 8.1.0..
Code:
https://libreelec.tv/downloads/preview/
it doesnt seem to be the issue as it shows in his log its trying to read the xml file but has issues.i would think that if its samba related it should error with something different like "cannot open file" or "file not found" or some thing other than whats he's getting but one never knows.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-25

(2017-08-25, 15:02)Blackbear199 Wrote: do you think that maybe the problem with the 8.1.0 might be related to the samba changes?
the release notes are here for 8.1.0..
Code:
https://libreelec.tv/downloads/preview/
it doesnt seem to be the issue as it shows in his log its trying to read the xml file but has issues.i would think that if its samba related it should error with something different like "cannot open file" or "file not found" or some thing other than whats he's getting but one never knows.

It might be.

I was wondering whether it was because LibreELEC use the system version of python rather than a standard one. I thought I read that somewhere.
The error I focused on was about unicode.
Quote:You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - josegerez - 2017-08-26

(2017-08-25, 10:48)primaeval Wrote:
(2017-08-25, 01:12)josegerez Wrote:
(2017-08-24, 18:01)primaeval Wrote: That could be useful for me to do testing. How did you set up LibreELEC in a VM?

I've downloaded the OVA file from https://ftp.nluug.nl/mediaplayer/libreelec/LibreELEC-Virtual.x86_64-8.0.2.ova and deployed on vmware workstation (I suppose it will be possible to import in VirutalBox o Windows HyperV also, but I've not tried it)
Once imported you can start the VM and you have a functional LibreELEC machine.

Regards

Thanks. I tried using VirtualBox first but it looks like it isn't supported any more according to some forum posts and got stuck loading xorg.

I can't find any upgrades for LibreELEC-Virtual.x86_64 to 8.1.0. Do you know where they are?

No sorry. But I think you can deploy a 8.0.2 VM and perform a manual upgrade using this file: http://releases.libreelec.tv/LibreELEC-Generic.x86_64-8.1.0.tar


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - BigOldBoy - 2017-08-26

Well, nothing major. Just maybe change some colors or move the PIP square.

There are two folders, the "media" one that contains the jpgs and the "720p" that has the xmls. Any direction with the xmls? I am guessing they define where the jpgs go?


(2017-08-23, 20:25)BigOldBoy Wrote: Without having to totally reverse engineer a skin, is there any documentation on skinning TV Guide Fullscreen?

I don't want to build my own, but just tweak one I am using.

Thanks,

Biggy

(2017-08-23, 20:31)primaeval Wrote:
(2017-08-23, 20:25)BigOldBoy Wrote: Without having to totally reverse engineer a skin, is there any documentation on skinning TV Guide Fullscreen?

I don't want to build my own, but just tweak one I am using.

Thanks,

Biggy

Not really but it's not too hard. There are a few skins around that you can grab the bits you like from.

The gotchas are really the hidden things in the code in gui.py that add controls or change the images.

The best way to see a control is to make the texture stand out by using something like "background-cover.png" which is a lurid green colour.

What sort of things are you trying to do?



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-26

@BigOldBoy I'll see if I can give you a Quick Start.

The main documentation about Kodi skinning is here:
http://kodi.wiki/view/Skinning
The Manual is the most important.
http://kodi.wiki/view/XBMC_Skinning_Manual

If you want to make your own skin copy Default or CatBar to:
userdata\addon_data\script.tvguide.fullscreen\resources\skins
and change Settings\Appearance\Skin to Yours

The textures are in the media folder.
Use an editor that can handle the transparency of the pngs.

The dialog layouts are in the 720p folder.
The main window and video osds are in script-tvguide-main.xml.
The main menu is in script-tvguide-menu.xml

The main window and osd windows are controlled by invisible controls that enable or disable the whole group.
eg This is the main epg window group:
Code:
<control type="label" id="5000">
            <description>visibility marker for TV Guide group</description>
        </control>
        <control type="group">
            <description>TV Guide group</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <visible>!Control.IsVisible(5000)</visible>

If you load up a texture that isn't used in the xml file in gui.py you need to declare it first in the xml like the ones at the top of main.
Code:
<control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <posy>-10000</posy>
            <width>1</width>
            <height>1</height>
            <texture>tvgf-timebar.png</texture>
        </control>

The main code that adds all the program controls in the epg is in gui.py in the onRedrawEPG function.

You can see the main program textures that are used in this bit of code.
Code:
if channel_playing and not (program.autoplaywithScheduled or program.autoplayScheduled or program.notificationScheduled):
                    noFocusTexture = 'tvg-playing-nofocus.png'
                    focusTexture = 'tvg-playing-focus.png'
                elif program.autoplaywithScheduled:
                    noFocusTexture = 'tvg-autoplaywith-nofocus.png'
                    focusTexture = 'tvg-autoplaywith-focus.png'
                elif program.autoplayScheduled:
                    noFocusTexture = 'tvg-autoplay-nofocus.png'
                    focusTexture = 'tvg-autoplay-focus.png'
                elif program.notificationScheduled:
                    noFocusTexture = 'tvg-remind-nofocus.png'
                    focusTexture = 'tvg-remind-focus.png'
                else:
                    noFocusTexture = 'tvg-program-nofocus.png'
                    focusTexture = 'tvg-program-focus.png'

You can already set the colour of some controls in Settings\Background like the timebar colour, fonts and background.

If you want to play around and need some more help let me know.
If you want a specific change for a skin and don't want to do it yourself let me know.
There are a few other expert skinners on here that might like to help too.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - BigOldBoy - 2017-08-26

Awesome!! thanks Primeval
(2017-08-26, 18:14)primaeval Wrote: @BigOldBoy I'll see if I can give you a Quick Start.

The main documentation about Kodi skinning is here:
http://kodi.wiki/view/Skinning
The Manual is the most important.
http://kodi.wiki/view/XBMC_Skinning_Manual

If you want to make your own skin copy Default or CatBar to:
userdata\addon_data\script.tvguide.fullscreen\resources\skins
and change Settings\Appearance\Skin to Yours

The textures are in the media folder.
Use an editor that can handle the transparency of the pngs.

The dialog layouts are in the 720p folder.
The main window and video osds are in script-tvguide-main.xml.
The main menu is in script-tvguide-menu.xml

The main window and osd windows are controlled by invisible controls that enable or disable the whole group.
eg This is the main epg window group:
Code:
<control type="label" id="5000">
            <description>visibility marker for TV Guide group</description>
        </control>
        <control type="group">
            <description>TV Guide group</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>1280</width>
            <height>720</height>
            <visible>!Control.IsVisible(5000)</visible>

If you load up a texture that isn't used in the xml file in gui.py you need to declare it first in the xml like the ones at the top of main.
Code:
<control type="image">
            <description>workaround for texture not being loaded</description>
            <posx>-10000</posx>
            <posy>-10000</posy>
            <width>1</width>
            <height>1</height>
            <texture>tvgf-timebar.png</texture>
        </control>

The main code that adds all the program controls in the epg is in gui.py in the onRedrawEPG function.

You can see the main program textures that are used in this bit of code.
Code:
if channel_playing and not (program.autoplaywithScheduled or program.autoplayScheduled or program.notificationScheduled):
                    noFocusTexture = 'tvg-playing-nofocus.png'
                    focusTexture = 'tvg-playing-focus.png'
                elif program.autoplaywithScheduled:
                    noFocusTexture = 'tvg-autoplaywith-nofocus.png'
                    focusTexture = 'tvg-autoplaywith-focus.png'
                elif program.autoplayScheduled:
                    noFocusTexture = 'tvg-autoplay-nofocus.png'
                    focusTexture = 'tvg-autoplay-focus.png'
                elif program.notificationScheduled:
                    noFocusTexture = 'tvg-remind-nofocus.png'
                    focusTexture = 'tvg-remind-focus.png'
                else:
                    noFocusTexture = 'tvg-program-nofocus.png'
                    focusTexture = 'tvg-program-focus.png'

You can already set the colour of some controls in Settings\Background like the timebar colour, fonts and background.

If you want to play around and need some more help let me know.
If you want a specific change for a skin and don't want to do it yourself let me know.
There are a few other expert skinners on here that might like to help too.



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-31

Code:
version 0.0.360
- Catchup Urls for imdb/tvdb ids
- use "Settings\Lab1\Ask to Catchup = Always" for future programs too
- Settings \ Lab1 \ %B IMDb Id %V TVDb Id %W tv show title
- eg catchup.ini:
-   My Addon TV=plugin://plugin.video.MY_ADDON/?action=play&amp;year=%Y&amp;tvshowtitle=%W&amp;season=%S&amp;episode=%E&amp;tvdb=%V&amp;title=%T
-   My Addon Movie=plugin://plugin.video.MY_ADDON/?action=play&amp;imdb=%B&amp;year=%Y&amp;title=%T

I've added 3 new fields for the Catchup Url feature in Lab1. It can now search for the IMDb Id for Movies and TVDB Id for TV Shows.
Don't try to add the IMDb Id for TV Shows. If you really need it I'll try and add a workaround. Let me know.
I'm not sure how well this will work in anything but English. Try it and see. It uses bing.com for the imdb lookup.

MY_ADDON needs to be changed to whatever your catchup addon is.
The example urls can be added straight into the catchup.ini file in the addon_data folder or cut and pasted into the dialog as:

Code:
My Addon TV
plugin://plugin.video.MY_ADDON/?action=play&year=%Y&tvshowtitle=%W&season=%S&episode=%E&tvdb=%V&title=%T

My Addon Movies
plugin://plugin.video.MY_ADDON/?action=play&imdb=%B&year=%Y&title=%T



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2017-08-31

Code:
version 0.0.361
- MySearch additions
- [%ST%] tvdb id [%SI] imdb id [%SY%] year [%SS%] season [%SE%] episode
- eg copy favourites.xml to addon_data and add
<favourite name="My Addon TV" thumb="special://home/addons/plugin.video.MY_ADDON/icon.png">plugin://plugin.video.MY_ADDON/?action=play&amp;year=[%SY%]&amp;tvshowtitle=[%SF%]&amp;season=[%SS%]&amp;episode=[%SE%]&amp;tvdb=[%ST%]&amp;title=[%SF%]</favourite>
<favourite name="My Addon Movie" thumb="special://home/addons/plugin.video.MY_ADDON/icon.png">plugin://plugin.video.MY_ADDON/?action=play&amp;imdb=[%SI%]&amp;year=[%SY%]&amp;title=[%SF%]</favourite>

This is similar to the last post about the Catchup Urls in Lab1 but for the MySearch function.
The format follows spoyser's Super Favourites iSearch but with the new additions above for imdb/tvdb id and season/episode/year.
If the url starts with plugin:// it will use the xbmc.Player().play(url) function which is better for some addons.

TODO: The TV Show year isn't working right now but doesn't seem to matter. I'll try to fix it if it is a problem for anyone.