YourTV info
YourTV info
Here's a plugin to retrieve show info from YourTV. The output's a bit raw, but all I really wanted was the season & episode numbers (mainly for WIN, which probably still doesn't have them, anyway) and the repeat flag (WIN at least has that, though). A few points: the region needs to be right, to match timezone and LCNs; the year after the title is release, whereas "Year" is production; "IMDb" is a direct link, but "IMDb search" is the normal search (on the YourTV title, not the EPG); YourTV is an eight-day guide, but for yesterday and this week, so you won't be able to get today week.
- Attachments
-
- enigma2-plugin-extensions-yourtv_1.0.3_all.ipk
- (10.33 KiB) Downloaded 113 times
Last edited by adoxa on Sun Sep 29, 2019 17:09, edited 4 times in total.
Re: YourTV info
Updated the previous attachment: fixed running from live TV; added a blank line between the synopses and cast; read /etc/enigma2/YourTV-lcn.json (created manually) to map regional LCNs to metro. For example, I have this:
which should map most of Queensland (Nine SCA and WIN) to Brisbane (Nine and 10). This lets me set the YourTV region to Brisbane, getting the better information 10 provides (WIN usually lacks season & episode numbers, as well as the classification warnings).
Code: Select all
{
"5": 9, "50": 90, "52": 92, "53": 93, "54": 94,
"8": 10, "80": 13, "81": 1, "82": 11
}
Re: YourTV info
So ummmm... for those of us playing at home, how do you use this thing?
I've downloaded and installed it to the U4 (I can see it in \usr\lib\enigma2\python\Plugins\Extensions\YourTV), enabled/disabled Icetv (to clear epg cache) then rebooted. Nothing shows up the Plugins list.
I am obviously missing something fundamental, but what?
(I'm using Sydney LCNs)
I've downloaded and installed it to the U4 (I can see it in \usr\lib\enigma2\python\Plugins\Extensions\YourTV), enabled/disabled Icetv (to clear epg cache) then rebooted. Nothing shows up the Plugins list.
I am obviously missing something fundamental, but what?
(I'm using Sydney LCNs)
Re: YourTV info
It's an event info plugin: from live TV long press EPG, or press MENU/INFO from within an event's info. For Single EPG I hope to use long YELLOW, not sure about the others. I also intend to hard-code all the LCN regional to metro mappings and use YELLOW to switch. And make it a bit bigger, increasing the font from 20 to 22.
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
All the information you need to make that work everywhere is in the PVR's lcndb file.
The format is:
"%08x:%04x:%04x:%04x:%05d:%08d"
and the fields are:
NAMESPACE:ONID:TSID:SID:LCN:SIGNAL
The fields in common with serviceref are in the opposite order to how they are presented in a string serviceref.
e.g for 9HD Canberra:
eeee0000:320c:0807:08c7:00050:00065535
Namespace: 0xeeee0000
ONID: 0x320c
TSID: 0x0807
SID: 08c7
LCN: 50
Signal: 65535 (100%)
Signal is scaled (worst) 0..65535 (best).
The LCNs in the lcndb file are the broadcast LCNs. The code that does the resolution of duplicated LCNs is in Plugins/SystemPlugins/IniLCNScanner/plugin.py (LCN.addLcn()).
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
I already use that to translate the service to LCN. What I shall hard-code is translating a regional LCN (e.g. 80 for WIN HD) to a metro LCN (e.g. 13 for 10 HD).
Re: YourTV info
Well bugger me... I've never used long press epg.adoxa wrote: ↑Sun Aug 11, 2019 11:28It's an event info plugin: from live TV long press EPG, or press MENU/INFO from within an event's info. For Single EPG I hope to use long YELLOW, not sure about the others. I also intend to hard-code all the LCN regional to metro mappings and use YELLOW to switch. And make it a bit bigger, increasing the font from 20 to 22.
So from what I can gather, you can only get the Yourtv info for a given channel (ie it won't populate the epg). Is that correct?
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
Ah. I misunderstood. Why is the LCN mapping necessary?
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
Right, it's not an EPG replacement, but an info supplement. It should be possible to replace the EPG, but that's not what I wanted, and I don't think YourTV is really suitable for that (each show's info needs to be downloaded separately and it doesn't necessarily have up-to-date times). Freeview could offer an alternative EPG (show details included, up-to-date times), but it doesn't seem to have WIN at all (the web guide has 10 for Brisbane, the rest of Queensland doesn't have 10 or WIN or even GEM; the mobile guide uses 10 Brisbane for Rockhampton, so probably the rest of QLD there, too).
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
Ah. Thanks.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
Hi Adoxa,
Is the source code of the plugin available?
Regards,
Ian.
Is the source code of the plugin available?
Regards,
Ian.
Re: YourTV info
The region menu:
where list is a ChoiceList. The info itself:
where info is a ScrollLabel and the other two are Label (or three, once I add YELLOW).
Code: Select all
<screen name="YourTVRegion" position="center,center" size="600,450" title="YourTV Region">
<widget name="list" position="fill" font="Regular;20" />
</screen>"""
Code: Select all
<screen name="YourTV" position="center,center" size="640,490" title="YourTV info">
<widget name="info" position="10,10" size="620,440" font="Regular;22" />
<widget name="statusbar" position="10,444" size="620,16" font="Regular;16" foregroundColor="#cccccc" />
<ePixmap position="20,e-25" size="15,16" pixmap="skin_default/buttons/button_red.png" alphatest="blend" />
<widget name="key_red" position="40,e-30" size="150,25" valign="center" halign="left" font="Regular;20" />
</screen>"""
Re: YourTV info
If I'm reading this correctly, it will display the info for any program that's highlighted in the EPG (Info button press required?), which is brought up by Long-press EPG, not just the current program on LiveTV. I never used Long-press EPG either, so don't know what it brings up on the screen.
dRdoS7
Re: YourTV info
If you long press epg (from live tv), you get a list of options to choose, imbd search, add autotimer, graphical epg, etc (the EPG does not get displayed). With Yourtv installed, you get another option called 'Yourtv info'. If you select that, a window pops up (over the live tv) with the YourTV program info.
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
dRdoS7 wrote: ↑Mon Aug 12, 2019 07:08If I'm reading this correctly, it will display the info for any program that's highlighted in the EPG (Info button press required?), which is brought up by Long-press EPG, not just the current program on LiveTV. I never used Long-press EPG either, so don't know what it brings up on the screen.
Long-press EPG brings up a list of EPG types for you to select from (and other EPG-related screens), and an entry to change the EPG that's shown on short-EPG. Long-INFO does the same. In fact, the only difference between the actions (long and short) of EPG and INFO are the default settings for the EPG info shown on their respective short presses. EPG defaults to the graphical (grid) EPG, and INFO defaults to event info (information about the current live TV program).
I'd expect that with YourTV installed, long-EPG (and long-INFO) will bring up the EPG list with an entry for YourTV, and that you can use the long press of either to set YourTV as the default screen to show on the short press. For example, you could re-configure INFO short press to show YourTV info instead of the EPG's event information.
This is what long-EPG brings up when YourTV info isn't installed:
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
In live TV use long EPG to get the info of the current event; otherwise press INFO on an event in your favourite EPG to bring up the event's info, then press MENU or INFO to select "YourTV info". That's a few too many button presses, which is why I hope to use long YELLOW in Single EPG (my preferred EPG).
There's another difference between long EPG and long INFO - with long INFO you can use NEXT & PREV to change the order of the items.
There's another difference between long EPG and long INFO - with long INFO you can use NEXT & PREV to change the order of the items.
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
That's a new one for me!
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
Same! I can see why such a thing might be useful, but does it appear anywhere else in the UI? If not, it's a very weird thing to only appear once.
I could see that feature being super handy in the Channel List popup menu for making it easier to edit bouquets for instance.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
Only in the INFO and BLUE button lists in live TV and in FileCommander.
Not really. It's an option to ChoiceMenu.
For INFO:
Code: Select all
def showEventInfoPlugins(self):
...
self.session.openWithCallback(self.EventInfoPluginChosen, ChoiceBox, title=_("Please choose an extension..."), list=pluginlist, skin_name="EPGExtensionsList", reorderConfig="eventinfo_order")
Code: Select all
def showEventGuidePlugins(self):
...
self.session.openWithCallback(self.EventGuidePluginChosen, ChoiceBox, title=_("Please choose an extension..."), list=pluginlist, skin_name="EPGExtensionsList")
I think that if you simply add reorderConfig="eventinfo_order" to showEventGuidePlugins(), both lists should be able to be re-ordered, but they will have the same order. If you want to have a different order for the two or want to allow for the two to have different entries, you need to create something like:
config.misc.pluginlist.eventguide_order = ConfigText(default="")
And add reorderConfig="eventinfo_order" when the EPG ChoiceMenu is created.
IMO, placing the config variables that control this behaviour in ChoiceMenu rather than in the modules that use the feature is poor design.
You may want to have a look at the code that implements the ChannelSelection popup and revise your opinion The first issue is that the popup doesn't use ChoiceMenu. But that's probably the smallest issue.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
Hi Adoxa & Prl,
Perhaps Prl can add this to his HelpMenu refactor.
Regards,
Ian.
This deserves the appropriate ActionMap to be converted to a HelpableActionMap so that a HELP button appears in the UI and the extra features get some documentation.
Perhaps Prl can add this to his HelpMenu refactor.
Regards,
Ian.
-
- Wizard God
- Posts: 32705
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
Re: YourTV info
The only thing that I'm doing to the Help system that could be called a "refactor" is my current work to port the Beyonwiz Help system to OpenViX. That has led to a few minor improvements to the Help system that I intend to back-port to Beyonwiz, but none of them have anything to do with adding help (or a help button hint) to ChoiceMenu.
To do that, ChoiceMenu needs: the HelpableScreen mixin added to its inheritance & to have that initialised, to change its NumberActionMap to a HelpableNumberActionMap and have the appropriate help text added to it, including only conditionally adding help for shiftUp and shiftDown, and to add the required HELP button hint widgets to the ChoiceBox skins.
All of that can be done using the Beyonwiz Help system as it is now.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Re: YourTV info
Hi Prl,
When your code is finished for OpenViX I will try and port it to OpenPLi and OpenATV. When I get some time I will look at adding the help screens to those three images.
Regards,
Ian.
When your code is finished for OpenViX I will try and port it to OpenPLi and OpenATV. When I get some time I will look at adding the help screens to those three images.
Regards,
Ian.
Re: YourTV info
Updated the attachment in the first post and released the source.
- Removed /etc/enigma2/YourTV-lcn.json, as all that information is now embedded;
- added YELLOW to switch between metro and regional;
- added the region name to the title;
- added a basic HELP screen;
- made the dialog and font a little bigger;
- integrated into the EPG screens via long YELLOW.
Re: YourTV info
Hi adoxa,
Thanks for creating this extension. It’s handy being able to get episode information, and i find it quicker than IMDb for retrieving basic movie info (year and cast). So I like it.
But, I think I need a customised version. I live in an area where I pick up two regions (Mt Gambier and Ballarat). Since I can only select one region, the other misses out. So, instead of the yellow button changing between regional and metro, I need it to change between Mt Gambier and Ballarat (or their respective regions).
Is this easy enough to do?
One other thing I’ve found - If I select a recording rather than a tv event, then select YourTV info, and then press yellow - crash.
(I realise this extension is created for tv and not recordings, but the option is there to select...)
Let me know if you need a crash log.
Cheers,
Pete
Thanks for creating this extension. It’s handy being able to get episode information, and i find it quicker than IMDb for retrieving basic movie info (year and cast). So I like it.
But, I think I need a customised version. I live in an area where I pick up two regions (Mt Gambier and Ballarat). Since I can only select one region, the other misses out. So, instead of the yellow button changing between regional and metro, I need it to change between Mt Gambier and Ballarat (or their respective regions).
Is this easy enough to do?
One other thing I’ve found - If I select a recording rather than a tv event, then select YourTV info, and then press yellow - crash.
(I realise this extension is created for tv and not recordings, but the option is there to select...)
Let me know if you need a crash log.
Cheers,
Pete
Re: YourTV info
MENU lets you change region.
I guess Mt Gambier is "South East SA", which is a different timezone to Ballarat (VIC). I'm not sure how that will work. I might use BLUE to switch local regions (Alternative and Original), let me know if it should switch or keep timezone. Should I support more than two local regions?So, instead of the yellow button changing between regional and metro, I need it to change between Mt Gambier and Ballarat (or their respective regions).
1.0.1 fixes the crash and displays a message that recordings aren't supported.One other thing I’ve found - If I select a recording rather than a tv event, then select YourTV info, and then press yellow - crash.
(I realise this extension is created for tv and not recordings, but the option is there to select...)
Last edited by adoxa on Sat Aug 17, 2019 16:59, edited 1 time in total.
Re: YourTV info
I wasn’t aware I could reselect the region via the MENU button. So, this is all I really need.
While a dedicated button would be handy, I don’t think it’s worth changing the code just for me. (I’m not sure how many other users need to regularly change regions, and there is a workaround).
Cheers, and appreciate your work.
While a dedicated button would be handy, I don’t think it’s worth changing the code just for me. (I’m not sure how many other users need to regularly change regions, and there is a workaround).
Cheers, and appreciate your work.
Re: YourTV info
Does the timezone work? Isn't there half an hour difference between Mt Gambier and Ballarat? I match by time, not name, so that will make a difference.
Re: YourTV info
You’re quite right - the timezone is incorrect when I select Ballarat VIC (because I’m in Mt Gambier SA).
If Ballarat is selected and the show is within half an hour of the next show, then YourTV shows the info for the next show. It’s fine if I select South East SA, of course, but then that only works on the Mt Gambier broadcasts.
It would be great to have it working with dual time zones if it’s possible, and not too hard or time consuming to do.
If Ballarat is selected and the show is within half an hour of the next show, then YourTV shows the info for the next show. It’s fine if I select South East SA, of course, but then that only works on the Mt Gambier broadcasts.
It would be great to have it working with dual time zones if it’s possible, and not too hard or time consuming to do.
Re: YourTV info
How do your LCNs work? ABC, SBS and WIN are the same, Nine and Seven/PRIME have the same LCNs for different services (e.g. South East SA has 50 for GEM, but Ballarat has 52, 50 being 9HD). I use the LCN to match the service, so if you're in the duplicate range it's not going to work, anyway.
Re: YourTV info
Yep, it looks like a lot of the Ballarat LCNs are in the duplicate range. So, in that case I’ll just stick to using YourTV on Southeast SA only. I’m happy with that.
Cheers and thanks
Cheers and thanks
Re: YourTV info
I think that might only be in the Terrestrial LCN bouquet, though; the LCN database would still have the original LCNs, which is why it has been working. I've got the scan data you did for the picons, so I should be able to use the service ref to select the correct region in the first place.
Re: YourTV info
Try this out: if you're on a Ballarat service you should be in Ballarat (or Melbourne), but still using your own timezone, so hopefully the times will match. If it works I'll release it as 1.0.2; it would be nice if any other dual region users could speak up before I do so.
- Attachments
-
- enigma2-plugin-extensions-yourtv_1.0.1.1_all.ipk
- (10.29 KiB) Downloaded 72 times
Re: YourTV info
Nice work, that works well!
It now automatically selects the correct region (Ballarat or Southeast SA) and the timezones are correct for each. It produced the info for the correct show every time.
The only thing I found was that it can’t find an LCN for 7two Mt Gambier (either automatically or manually selecting the region). I checked and found it’s the same with the previous version too, so I might have an anomaly with that LCN.
Otherwise, I’m really happy with it. Thanks!
It now automatically selects the correct region (Ballarat or Southeast SA) and the timezones are correct for each. It produced the info for the correct show every time.
The only thing I found was that it can’t find an LCN for 7two Mt Gambier (either automatically or manually selecting the region). I checked and found it’s the same with the previous version too, so I might have an anomaly with that LCN.
Otherwise, I’m really happy with it. Thanks!
Re: YourTV info
Yes - 7TWO Mt Gambier is 62, and 7flix Ballarat is 66 (which works fine).
Re: YourTV info
Okay, I've updated the first post, so 1.0.2 will map South East SA 62 to 66 for YourTV.
Re: YourTV info
Works perfectly. Thanks very much, Adoxa
Re: YourTV info
Fix using the metro region (I must have still been using an older version, as I reflashed and put on 1.0.2 and it crashed) and use a thread to download (stops the spinner from making an appearance). Update in the first post.
-
- Uber Wizard
- Posts: 6490
- Joined: Thu Mar 05, 2009 22:54
- Location: Perth
Re: YourTV info
Adoxa,
"Unable to find LCN" when doing a lookup on 10 Bold.
With the Network TEN changes, do you need to adjust for 10 Bold as it relocated?
"Unable to find LCN" when doing a lookup on 10 Bold.
With the Network TEN changes, do you need to adjust for 10 Bold as it relocated?
Re: YourTV info
I guess that's on 12? YourTV is still using 1. A workaround would be to zap to 1, which should then give you Bold. If YourTV doesn't change I guess I'll have to map those LCNs, too. Or do it by name, but that has its own problems.
-
- Uber Wizard
- Posts: 6490
- Joined: Thu Mar 05, 2009 22:54
- Location: Perth
Re: YourTV info
YourTV Info only matches the LCN (and time), so even though you're on 10 HD, YourTV Info will show the info for Bold. Depending on the timing you may need to go to the previous/next event to get the info for this event. Ugly, but it should work until one of us changes something.
-
- Uber Wizard
- Posts: 6490
- Joined: Thu Mar 05, 2009 22:54
- Location: Perth
Re: YourTV info
adoxa wrote: ↑Thu Sep 17, 2020 17:11YourTV Info only matches the LCN (and time), so even though you're on 10 HD, YourTV Info will show the info for Bold. Depending on the timing you may need to go to the previous/next event to get the info for this event. Ugly, but it should work until one of us changes something.
Yeah works, but not really workable.
10 HD, TVSN and Spree all moved LCNs and all work so YourTV must've adjusted those, yet stuffed up 10 BOLD by leaving it on LCN 1 and not ever recognising it was also on LCN 12?
-
- Uber Wizard
- Posts: 6490
- Joined: Thu Mar 05, 2009 22:54
- Location: Perth
Re: YourTV info
Bang! Long-YELLOW in the EPG:
Code: Select all
{823}< 20079.056> [ActionMap] calling yellow (ColorActions)
{823}< 20079.056> Traceback (most recent call last):
{823}< 20079.056> File "/usr/lib/enigma2/python/Components/ActionMap.py", line 60, in action
{823}< 20079.056> File "/usr/lib/enigma2/python/Plugins/Extensions/YourTV/plugin.py", line 513, in keyYellow
{823}< 20079.056> AttributeError: 'YourTV' object has no attribute 'region'
{823}< 20079.056> [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0xac6b1df0>>,('ColorActions', 'yellow')) failed)
Re: YourTV info
I've mapped 12 to 1 and 1 to 15 (except for Darwin), so that should fix your problem. I've also adjusted the regional to metro mapping, plus another couple of fixes (recognise yesterday, work on EPG gaps). Hopefully I haven't broken anything else.
- Attachments
-
- enigma2-plugin-extensions-yourtv_1.0.4_all.ipk
- (10.38 KiB) Downloaded 56 times