SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV EPG Service
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-24-2011, 01:41 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Schedules Direct EPG Plugin PoC Completed

Just to ease any anxiety, I've completed a PoC for a Schedules Direct EPG plugin. It meets all of my goals:

1) Can be installed as a plugin
2) Once installed and configured, just restart Sage and forget about it; Sage operates just as if you were using the Sage EPG source
3) No external tools, no XMLTV, no nothing external required - install the plugin, configure it with your SD id/pwd, go configure your inputs to use the new EPG soruce and forget about it
4) Support for both Linux and Windows

It's definitely rough around the edges and I see a few obvious bugs in it, but it works. I'm using it as the EPG source on my Linux test box and it works absolutely fine. So this proves that in case of doom's day scenario, there is a quick, simple to use EPG replacement available. And since we've been told we have at least a year before it should be necessary, that should give me plenty of time to work out the kinks.

The only issue with this particular plugin is that I can't release it without an exemption from Schedules Direct. However, when the need for this plugin arises then the exemption required shouldn't be an issue. Again, it seems we have ~12 months to worry about that.

Screenshots from Placeshifter connected to my Linux server. This plugin will work on both Linux and Windows Sage servers.
Attached Images
File Type: jpg epg1.jpg (188.8 KB, 1082 views)
File Type: jpg epg2.jpg (65.9 KB, 906 views)
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #2  
Old 06-24-2011, 02:03 AM
Enormous's Avatar
Enormous Enormous is offline
Sage Aficionado
 
Join Date: Mar 2004
Location: D.C. Area
Posts: 398
Excellent, excellent work. Thank you!
__________________
-Eric
Client: STX-HD100 Extender, Connected to 47" Visio 1080p LCD via HDMI, Running SageMC
Client: Media MVP Running SageMC
Server: Antec SLK3800B, AMD Athlon 64 X2 4200+, Biostar TForce 550, GeForce 7300LE, 1GB DDR2 800, 2 x HVR-1600, PVR-150MCE, 1.4TB HD Space, XP Pro, Java6, Latest SageTV Version
Reply With Quote
  #3  
Old 06-24-2011, 05:19 AM
KeithAbbott KeithAbbott is offline
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Great news! A couple questions, though.
  1. Not that I would need anything more, but Schedules Direct looks to be just US and Canada guide data. True?
  2. Is the data available similar to Zap2it, as far as the look-ahead window? Two weeks?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #4  
Old 06-24-2011, 05:36 AM
hugenbdd hugenbdd is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Cincinnati, KY
Posts: 81
Quote:
Originally Posted by Slugger View Post
Just to ease any anxiety, I've completed a PoC for a Schedules Direct EPG plugin. It meets all of my goals:

1) Can be installed as a plugin
2) Once installed and configured, just restart Sage and forget about it; Sage operates just as if you were using the Sage EPG source
3) No external tools, no XMLTV, no nothing external required - install the plugin, configure it with your SD id/pwd, go configure your inputs to use the new EPG soruce and forget about it
4) Support for both Linux and Windows

It's definitely rough around the edges and I see a few obvious bugs in it, but it works. I'm using it as the EPG source on my Linux test box and it works absolutely fine. So this proves that in case of doom's day scenario, there is a quick, simple to use EPG replacement available. And since we've been told we have at least a year before it should be necessary, that should give me plenty of time to work out the kinks.

The only issue with this particular plugin is that I can't release it without an exemption from Schedules Direct. However, when the need for this plugin arises then the exemption required shouldn't be an issue. Again, it seems we have ~12 months to worry about that.

Screenshots from Placeshifter connected to my Linux server. This plugin will work on both Linux and Windows Sage servers.
WOW!!! That is great.
I have a few questions.

1.) Can you explain the exemption needed before release?
2.) Will this maintain the "show id", so that Sage will know weather we have watched a repeat? (Sorry, can't remember the exact name/definition of this feature).

Thanks
Dave
Reply With Quote
  #5  
Old 06-24-2011, 06:15 AM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Wonderful News. Great job as always Slugger
Reply With Quote
  #6  
Old 06-24-2011, 06:35 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Good to know that there will be something in place.
Reply With Quote
  #7  
Old 06-24-2011, 06:41 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
It would nice to have a gap analysis of what is different between sagetv and SD. ie, things like, is there season/episode information, etc, unique seriesid #, does sagetv get an "externalid" of "EPXXX", "SPXXX", "MVXXX", etc.

Phoenix uses this information as part of the "scraping" process, so it would be nice to know if that will need to change.
Reply With Quote
  #8  
Old 06-24-2011, 07:20 AM
kmp14 kmp14 is offline
Sage Aficionado
 
Join Date: May 2008
Location: Chicago, IL
Posts: 264
It is simple. Slugger.....you are awesome.
__________________
HP m9040n Quad Core 2.4Ghz, Windows7 Ultimate, Ceton 4 tuner CableCard with SageDCT, 2 HDHomeRun QAM, Netgear 24 Port GiGE Switch, Linksys WRT600N Router, 3 HD200 Extenders, 2 SageTV Clients

Server: SageTV 7
Reply With Quote
  #9  
Old 06-24-2011, 08:59 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by KeithAbbott View Post
Great news! A couple questions, though.
  1. Not that I would need anything more, but Schedules Direct looks to be just US and Canada guide data. True?
  2. Is the data available similar to Zap2it, as far as the look-ahead window? Two weeks?
The source of the data is TMS (Tribune), which is the same source as Z2I (all the same company). There is 14 days worth of data available (actually looks like 13 and a bit, but let's call it 14).

EDIT: Yes, SD provides listings for US, Canada, a few select US territories and perhaps a couple other locations. Mainly, though, just US and Canada.

Quote:
Originally Posted by hugenbdd View Post
WOW!!! That is great.
I have a few questions.

1.) Can you explain the exemption needed before release?
2.) Will this maintain the "show id", so that Sage will know weather we have watched a repeat? (Sorry, can't remember the exact name/definition of this feature).

Thanks
Dave
1) Schedules Direct is a non-profit client of TMS with a very specific contract. I'm not a lawyer and don't know all the specifics, but SD is only able to provide EPG data to individual users who will not in turn feed the data to commercial applications. SageTV is considered a commercial application.

Furthermore, software provided for public release that use this data must also be free of cost and/or open source.

This plugin will be open source so that's not an issue. The only issue is that the plugin feeds data into SageTV, which is still considered a commercial app. However, when the need arises for this plugin it would be presumed that SageTV is no longer a viable commercial app and therefore, I'm told, that getting an exemption to release it publicly won't be an issue. Just in case that exemption doesn't come through, I have a backup plan. Let's just say, either way, EPG data will be available, though the backup plan isn't nearly as simple to use as this solution is.

2) Yes. Since Schedules Direct gets its data from TMS, which is the same source as Sage's EPG, the Show IDs will remain consistent.

Quote:
Originally Posted by stuckless View Post
It would nice to have a gap analysis of what is different between sagetv and SD. ie, things like, is there season/episode information, etc, unique seriesid #, does sagetv get an "externalid" of "EPXXX", "SPXXX", "MVXXX", etc.

Phoenix uses this information as part of the "scraping" process, so it would be nice to know if that will need to change.
Some quick things I noticed while writing the plugin:
  • There is no season/episode info. Either SD doesn't pay TMS for this extra info in their feed or Sage pulls/deduces this info from elsewhere and adds it to their EPG data server.
  • SD does not provide the 'Live' flag for shows airing live.
  • SD does not provide many of the extra program details such as 'Season/Series Premiere/Finale', DD5.1, etc. Some are provided like HDTV, Stereo, CC.
  • The unique series ID is in the feed, I believe, but I'd have to double check. I know I'm not bringing it in right now. Not a big deal to add it later.
  • The external show IDs are exactly the same as those we get today from Sage's server (EP, SH, SP, MV)
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...

Last edited by Slugger; 06-24-2011 at 09:06 AM.
Reply With Quote
  #10  
Old 06-24-2011, 12:45 PM
kricker's Avatar
kricker kricker is offline
Sage Icon
 
Join Date: Jan 2005
Location: Knoxville, TN
Posts: 1,137
Send a message via AIM to kricker Send a message via MSN to kricker
Schedules Direct costs $20 a year is that right? Is that the kind of subscription we will need with them to use this plugin?
Reply With Quote
  #11  
Old 06-24-2011, 02:02 PM
sumrtym sumrtym is offline
Sage User
 
Join Date: Dec 2006
Posts: 70
I'm really not liking the lack of Season / Episode data. To me, that's a must have.
Reply With Quote
  #12  
Old 06-24-2011, 02:33 PM
tvmaster2's Avatar
tvmaster2 tvmaster2 is offline
SageTVaholic
 
Join Date: Jun 2005
Location: tarana
Posts: 4,240
Quote:
Originally Posted by sumrtym View Post
I'm really not liking the lack of Season / Episode data. To me, that's a must have.
so then where did Sage get that data from? Can we subscribe to that service individually - create a small company - lol
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson
Reply With Quote
  #13  
Old 06-24-2011, 03:38 PM
KeithAbbott KeithAbbott is offline
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Maybe it's time to get a SageTV representative on the Advisory Council or on the Board of the Schedules Direct organization. Any volunteers? Slugger?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #14  
Old 06-24-2011, 06:24 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by kricker View Post
Schedules Direct costs $20 a year is that right? Is that the kind of subscription we will need with them to use this plugin?
Yes, the $20/yr subscription is what would be needed.

Quote:
Originally Posted by sumrtym View Post
I'm really not liking the lack of Season / Episode data. To me, that's a must have.
Me neither, but it is what it is. The 'live' airing flag is very important to me as well. The season/series premiere/finale flags aren't critical, but I've come to know and love them. mc2xml does not provide this info nor does xmltv. I'm starting to think that Sage generated/pulled this info in from elsewhere or Tribune charges a massive premium for these details. However, I'm leaning towards the former because if it were available, but with a big premium slapped on it then would Sage ever have been in the position to pay the premium, but not Microsoft (source of mc2xml data, which doesn't carry these details)? I think Jeff pulled this info in from some other source to augment the Z2I data. If I'm right, maybe he'd share those details because I can pull it in and make use of it just as easily.

Quote:
Originally Posted by tvmaster2 View Post
so then where did Sage get that data from? Can we subscribe to that service individually - create a small company - lol
See above. I think we need Jeff to share.

Quote:
Originally Posted by KeithAbbott View Post
Maybe it's time to get a SageTV representative on the Advisory Council or on the Board of the Schedules Direct organization. Any volunteers? Slugger?
That's a pass from me. "Advisory Council" sounds like a lot of red tape and discussions. I'll leave that to someone else and stick to the coding.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #15  
Old 06-25-2011, 08:25 AM
kmp14 kmp14 is offline
Sage Aficionado
 
Join Date: May 2008
Location: Chicago, IL
Posts: 264
Quote:
Originally Posted by KeithAbbott View Post
Maybe it's time to get a SageTV representative on the Advisory Council or on the Board of the Schedules Direct organization. Any volunteers? Slugger?
Doesn't slugger do enough for us already?
__________________
HP m9040n Quad Core 2.4Ghz, Windows7 Ultimate, Ceton 4 tuner CableCard with SageDCT, 2 HDHomeRun QAM, Netgear 24 Port GiGE Switch, Linksys WRT600N Router, 3 HD200 Extenders, 2 SageTV Clients

Server: SageTV 7
Reply With Quote
  #16  
Old 06-25-2011, 10:35 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Slugger,

Is it possible to make your plugin compatible with mc2xml ?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #17  
Old 06-25-2011, 12:38 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by nyplayer View Post
Slugger,

Is it possible to make your plugin compatible with mc2xml ?
Not this one. This one will be Schedules Direct only because it doesn't require any additional tools/programs - this plugin talks directly with the SD server and requires no "middleman" programs/tools. This plugin can be installed and left alone.

Since mc2xml just generates xmltv output, you should be able to use the xmltv importer plugin with the output of mc2xml. I've not really studied the xmltv plugin, but since all non US and Canadian users have to use it for their data, I assume it works. To use mc2xml, just call it to generate the xml file you'd feed into this plugin instead of calling xmltv (I assume this is possible, I haven't studied how this plugin works at all).

When the need arises for EPG plugins for North America, I might be convinced to write another xmltv plugin allowing for a similar installation/setup for an xmltv EPG source, but, admittedly, it will take quite a bit of convincing since I'm only going to need this plugin for my setup.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #18  
Old 06-25-2011, 01:04 PM
sdsean's Avatar
sdsean sdsean is offline
Sage Expert
 
Join Date: Jul 2008
Posts: 571
Slugger, does the roll back - uninstall of this plugin happen properly?
Just want to make sure, b/c I want to try this out in case the google thing goes south.
Also are the channel ids compatible? The reason I ask is that have some channels added to my lineup that are actually Canadian cable channels, but they have the all important game info missing in SageTV when using a DirecTV lineup from the U.S. So what I do is create new channels from a Canadian lineup using Zap2It, and the map them to the appropriate DirecTV channel.

(Of course maybe your plugin will just give me the guide data anyway. . .i never understood why SageTV doesn't have this yet BeyondTV did, and they get their data from the same place).
__________________
AMD Ryzen 9 3900XT 12 Core+HT, 64GB DDR5, GeForce 1060, MSI Prestige x570 Creation Mobo, SIIG 4 port Serial PCIe Card, Win10, 1TB M.2 SSD OS HDD, 1 URay HDMI Network Encoder, 3 HD-PVR, 4 DirecTV STB serial tuned


Reply With Quote
  #19  
Old 06-25-2011, 02:37 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by sdsean View Post
Slugger, does the roll back - uninstall of this plugin happen properly?
Just want to make sure, b/c I want to try this out in case the google thing goes south.
This is not something I've tested yet. The install isn't exactly perfect so the uninstall will be tricky, I assume, as well. Since this plugin modifies the epg/epg_import_plugin property when installed, you must manually restart SageTV after installing this plugin before the core will start using the EPG plugin - there is no way for me to tell you it needs to be restarted. The only other option I have is to just force a restart, but that seems like a bad idea so I didn't do that.

Uninstalling is also a manual process, unfortunately. There is no hook within plugins to catch an uninstall request from the user so I don't actually know when a user uninstalls it. So if you uninstall it, you have to manually stop Sage and remove the entry in epg/epg_import_plugin in Sage.properties. Not ideal, but it's the best I can do.

This plugin, though functioning on my test server, is no where near beta quality so don't expect anything released anytime soon. Furthermore, I can't release it until SD gives me an exemption, which isn't likely to happen until Sage turns off its EPG service.

Quote:
Also are the channel ids compatible? The reason I ask is that have some channels added to my lineup that are actually Canadian cable channels, but they have the all important game info missing in SageTV when using a DirecTV lineup from the U.S. So what I do is create new channels from a Canadian lineup using Zap2It, and the map them to the appropriate DirecTV channel.

(Of course maybe your plugin will just give me the guide data anyway. . .i never understood why SageTV doesn't have this yet BeyondTV did, and they get their data from the same place).
The ids are compatible (based on my very quick inspection), but, unlike the core EPG service, Schedules Direct does not allow arbitrary additions of extra channels to lineups. This plugin is only capable of accessing the data as setup in your SD account. So you select and configure your lineup(s) on the SD web site and whatever you configure there is what this plugin pulls in and uses. From what I can see, there is no way to add additional channels to a lineup on the SD site. You select a lineup (i.e. "DirecTV") and the SD site gives you the channels for that lineup. You can disable channels from your lineup, but that's it.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #20  
Old 06-25-2011, 02:48 PM
KeithAbbott KeithAbbott is offline
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Quote:
Originally Posted by Slugger View Post
The ids are compatible (based on my very quick inspection), but, unlike the core EPG service, Schedules Direct does not allow arbitrary additions of extra channels to lineups. This plugin is only capable of accessing the data as setup in your SD account. So you select and configure your lineup(s) on the SD web site and whatever you configure there is what this plugin pulls in and uses. From what I can see, there is no way to add additional channels to a lineup on the SD site. You select a lineup (i.e. "DirecTV") and the SD site gives you the channels for that lineup. You can disable channels from your lineup, but that's it.
So if I use a combination of cable and OTA, and select my cable lineup at the SD site, any additional OTA channels that I receive that are not available from my cable provider will not get any guide data?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sage Job Queue Completed tasks problem raffmanlt SageTV Customizations 2 08-18-2009 07:34 PM
XMLTV Import Tool & Schedules Direct for USA? rnewman SageTV EPG Service 5 08-13-2008 06:12 AM
Schedules Direct or what? Ryel SageTV EPG Service 6 01-25-2008 03:03 PM
Modifying Channel Schedules Slugger SageTV Studio 1 08-22-2007 07:46 PM
WISH: Adaptable Recording Schedules RAlfieri SageTV Beta Test Software 0 11-24-2006 06:46 PM


All times are GMT -6. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.