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 - 2016-11-26

(2016-11-26, 09:22)GriffeyJuni0r Wrote: A few quick questions as I'm switching over to make this my main guide:

- Is there any way to remove (what I assume are) the timestamps on each guide listing? They don't show up in the other guides I use the same XML file with:
Image

- Any way to save the current stream that's playing when entering the TV Guide? I'd like to be able to swap between 'Previous Channels' if something is playing as I enter the guide and then select something within the guide. Right now the feature only works if you select two streams after entering the guide.

- There doesn't seem to be a way to go back to Fullscreen when something is playing in the PIP window and the setting where 'BACK' exits the addon is on. Maybe clicking on the currently playing channel in the guide could simply go Fullscreen instead of reloading the stream? Or pressing 'c' when something is currently playing will swap back and forth between Fullscreen and Guide?

- Any thoughts on making the 'hotkeys' user configurable? For instance, it would be cool to be able to map the Number 1-9 keys to different categories.

Thanks!

Send me a link here or in a pm to your xmltv guide and I'll have a look.
I expect you have a strange format in the date field.
If it is a 4 digit number only it will be used to class the program as a Movie, so the features like Meta Search, imdb images etc will work.
It looks like the regex isn't being picky enough.

I really don't want to start working out the logic to guess what stream is playing when you enter the guide.
There are too many possibilities and the information isn't there to match the playing url to the stream link that started it.

I'll see if I can reliably store the Last Channel that the guide was playing somewhere more permanent.

It looks like the Back to get back to Fullscreen is broken. Thanks for letting me know. I'll fix that.

I thought about making a user configurable keymap but seeing as the Keymap Editor addon does it so well, I think it would be safer to use that. I'll have another look sometime.

You can launch Categories from a Favourite shortcut link with the Category as the first argument.
The second argument is an optional Source.
eg
Code:
    <favourite name="TV Guide Fullscreen BBC" thumb="special://home/addons/script.tvguide.fullscreen/icon.png">RunScript(script.tvguide.fullscreen,Any,bbc)</favourite>
    <favourite name="TV Guide Fullscreen Kids tvguide.co.uk" thumb="special://home/addons/script.tvguide.fullscreen/icon.png">RunScript(script.tvguide.fullscreen,Kids,tvguide.co.uk)</favourite>
You could map those commands to a hotkey in your keymap.xml file.

The Number keys are all taken with the List Views.
I thought about using them for Channel Numbers but I would have thought it's easier to just make a Favourites Category for frequently used channels.


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

The Back button is OK.

It seems confusing but it for people with Functionally Challenged remote controls like the FireTV.

For the rest of us you can use Esc to get out of the addon or Tab to get back to the program.

c, context menu if for the Menu only now.

Have a read of the commands in Settings \ Help \ Command Keys.


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

version 0.0.201
- Movie Year regex fix
- persistant Last Channel
- hide epg on play same channel as now playing

This should only class xmltv programs as Movies if the date is only a 4 digit number, ie a year.

The Last Channel should be persistent now. It is stored in the settings.xml file.

Playing the same channel as the one currently playing should just close the epg and return to Fullscreen playback.

I'm not going to start messing around with keymapping. It is too much work.

You can try this sort of shortcut in keymap.xml.
Note that if you use these shortcuts in the guide pressing back will get you back to the last epg view, not out to Kodi.
Code:
<keymap>
    <global>
        <keyboard>
            <F6>RunScript(script.tvguide.fullscreen,Any)</F6>
            <F7>RunScript(script.tvguide.fullscreen,kids)</F7>
        </keyboard>
    </global>
</keymap>



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - donbrew - 2016-11-26

(2016-11-25, 17:37)donbrew Wrote: Can I just edit the <provides><provides> in addon.xml to put Tv Guide Fullscreen into the video add-ons category in Krypton?

It works until the addon gets update, the it gets overwritten.

Speaking of updates; this morning I think it updated to 0.0.201, now it won't load xmltv file. I am trying to figure if somehow webgrab changed last night.


(FIXED; I had to delete the EPG data)


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

(2016-11-26, 18:07)donbrew Wrote:
(2016-11-25, 17:37)donbrew Wrote: Can I just edit the <provides><provides> in addon.xml to put Tv Guide Fullscreen into the video add-ons category in Krypton?

It works until the addon gets update, the it gets overwritten.

True. I know there was a problem. That's why I'll have to leave it in Programs until I remember or find out why I moved it back.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - GriffeyJuni0r - 2016-11-26

(2016-11-26, 12:50)primaeval Wrote: version 0.0.201
- Movie Year regex fix
- persistant Last Channel
- hide epg on play same channel as now playing

This should only class xmltv programs as Movies if the date is only a 4 digit number, ie a year.

The Last Channel should be persistent now. It is stored in the settings.xml file.

Playing the same channel as the one currently playing should just close the epg and return to Fullscreen playback.

I'm not going to start messing around with keymapping. It is too much work.

You can try this sort of shortcut in keymap.xml.
Note that if you use these shortcuts in the guide pressing back will get you back to the last epg view, not out to Kodi.
Code:
<keymap>
    <global>
        <keyboard>
            <F6>RunScript(script.tvguide.fullscreen,Any)</F6>
            <F7>RunScript(script.tvguide.fullscreen,kids)</F7>
        </keyboard>
    </global>
</keymap>
Nice! Thanks for all these quick fixes/improvements!!

The shortcuts to categories work great, as does the same channel hiding the EPG.

It seems like the persistent last channel introduced a new bug - When I enter the addon with something already playing, selecting a program in the EPG doesn't play the stream. The settings.xml properly captured the last.channel, so hopefully this is an easy fix!

Also here' s sample of my XML file, it looks like the EPG is displaying the <date>20161123</date>:
Code:
    </programme>
    <programme start="20161123180000 -0800" stop="20161123200000 -0800" channel="I4.1.28458625.microsoft.com">
        <title lang="en">Saturday Night Live</title>
        <sub-title lang="en">A Saturday Night Live Thanksgiving Special</sub-title>
        <desc lang="en">Thanksgiving-themed comedy from the "Saturday Night Live" crew is presented.</desc>
        <date>20161123</date>
        <category lang="en">Other</category>
        <category lang="en">comedy</category>
        <episode-num system="ms_progid">1.310933816</episode-num>
        <video>
            <aspect>16:9</aspect>
            <quality>HDTV</quality>
        </video>
        <new />
    </programme>



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

(2016-11-26, 21:25)GriffeyJuni0r Wrote: ^^^

Try 0.0.202 for the fix.

The Movie xmltv check now looks for exactly 4 digits in the date field.
Could you have a look through your xmltv file for Movies and check whether that is a reasonable assumption.

It looks like everyone is doing their own thang with the date field.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - GriffeyJuni0r - 2016-11-26

(2016-11-26, 21:43)primaeval Wrote: Try 0.0.202 for the fix.

The Movie xmltv check now looks for exactly 4 digits in the date field.
Could you have a look through your xmltv file for Movies and check whether that is a reasonable assumption.

It looks like everyone is doing their own thang with the date field.

Awesome, thanks! Looks great now that the date digits are hidden from the EPG.

Though you're right about everybody doing something different. Looks like my XMLTV file doesn't do anything special within the date field for a movie (though does have the original air date listed) - Just includes a category of Movie like so:
Code:
        <title lang="en">The Hangover Part III</title>
        <desc lang="en">The trio of unlucky pals (Bradley Cooper, Ed Helms, and Zach Galifianakis) return for another misadventure in this Warner Bros release, once again helmed by Todd Phillips.</desc>
        <date>20130523</date>
        <category lang="en">Movie</category>



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

(2016-11-26, 22:41)GriffeyJuni0r Wrote:
(2016-11-26, 21:43)primaeval Wrote: Try 0.0.202 for the fix.

The Movie xmltv check now looks for exactly 4 digits in the date field.
Could you have a look through your xmltv file for Movies and check whether that is a reasonable assumption.

It looks like everyone is doing their own thang with the date field.

Awesome, thanks! Looks great now that the date digits are hidden from the EPG.

Though you're right about everybody doing something different. Looks like my XMLTV file doesn't do anything special within the date field for a movie (though does have the original air date listed) - Just includes a category of Movie like so:
Code:
        <title lang="en">The Hangover Part III</title>
        <desc lang="en">The trio of unlucky pals (Bradley Cooper, Ed Helms, and Zach Galifianakis) return for another misadventure in this Warner Bros release, once again helmed by Todd Phillips.</desc>
        <date>20130523</date>
        <category lang="en">Movie</category>

I think this guide should pick it up as a movie with the category field.
Does it work right for the Meta Search, Extended Info or the imdb image match?


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - GriffeyJuni0r - 2016-11-27

(2016-11-26, 23:08)primaeval Wrote: I think this guide should pick it up as a movie with the category field.
Does it work right for the Meta Search, Extended Info or the imdb image match?

Ah, that's what you meant..Just tried those features out and they work perfectly - Pretty cool!


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Scott00007 - 2016-11-28

I would like to use this add on but I cannot seem to get it to work the way I want and I am starting to think that the way I want it to work is beyond it's scope.

I use an addon that downloads a .xmltv file that contains the guide information that I want. Using the original addon I can and and remove channels, move them around and when the .xmltv file is redownloaded with updated information the channel changes I have made remain.

When I use this addon and point the source to the same .xmltv file that the original addon uses and make changes to this addon's channel list (turn off, move up/down ect) this addon updates the all of the channel information no matter what changes I made previously. So if I turn off every channel but on in this addon and allow the source information to be update (interval does not matter) I end up with every channel turned back on and any changes I made lost.

Am I missing something here (the most likely problem lol)?

Thanks.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-28

(2016-11-28, 07:46)Scott00007 Wrote: I would like to use this add on but I cannot seem to get it to work the way I want and I am starting to think that the way I want it to work is beyond it's scope.

I use an addon that downloads a .xmltv file that contains the guide information that I want. Using the original addon I can and and remove channels, move them around and when the .xmltv file is redownloaded with updated information the channel changes I have made remain.

When I use this addon and point the source to the same .xmltv file that the original addon uses and make changes to this addon's channel list (turn off, move up/down ect) this addon updates the all of the channel information no matter what changes I made previously. So if I turn off every channel but on in this addon and allow the source information to be update (interval does not matter) I end up with every channel turned back on and any changes I made lost.

Am I missing something here (the most likely problem lol)?

Thanks.

If you have Settings \ Source \ Refresh On Start turned on it will Reset all the Channel information every time you restart.

I think it needs to be renamed "Reset On Start".


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Scott00007 - 2016-11-28

(2016-11-28, 08:26)primaeval Wrote:
(2016-11-28, 07:46)Scott00007 Wrote: I would like to use this add on but I cannot seem to get it to work the way I want and I am starting to think that the way I want it to work is beyond it's scope.

I use an addon that downloads a .xmltv file that contains the guide information that I want. Using the original addon I can and and remove channels, move them around and when the .xmltv file is redownloaded with updated information the channel changes I have made remain.

When I use this addon and point the source to the same .xmltv file that the original addon uses and make changes to this addon's channel list (turn off, move up/down ect) this addon updates the all of the channel information no matter what changes I made previously. So if I turn off every channel but on in this addon and allow the source information to be update (interval does not matter) I end up with every channel turned back on and any changes I made lost.

Am I missing something here (the most likely problem lol)?

Thanks.

If you have Settings \ Source \ Refresh On Start turned on it will Reset all the Channel information every time you restart.

I think it needs to be renamed "Reset On Start".

Ok that makes sense...so turning off that option will allow the channel information to continue to be updated daily (for example) and all of the changes I make will remain?

Thanks for the quick answer.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-28

(2016-11-28, 08:30)Scott00007 Wrote: Ok that makes sense...so turning off that option will allow the channel information to continue to be updated daily (for example) and all of the changes I make will remain?

Thanks for the quick answer.

Yes. It does for me, anyway. Wink

There are a few Settings that will reset the channels: things like changing the Source in Lab2 or the location of the xmltv file.

If your channels change in the xmltv file it is best to do a Refresh on Start or Reset EPG Data to clear out the unused channels or you'll end up with some with no program information.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Jeffers24 - 2016-11-28

With the EPG up and nothing playing I press menu key on remote go to set stream/channel.

I scroll down to Add Alt Stream and select this.

The screen changes to dimmed EPG and a message 'Multiple addons provide this channels. Choose one to watch the stream.'

Then the only option I have is to press return to go back to the EPG.

How do I set an alternative stream and once set how do I choose it from the EPG?