Schedules Direct US/Canadian/Mexico EPG Plugin (Updated August 2010) (1 Viewer)

Craig049

New Member
April 19, 2013
2
0
58
Home Country
United States of America United States of America
System.Net.WebException: The request failed with HTTP status 417: Expectation failed.

I'm only new to the media portal and schedule direct epg

I have not been able to get it to work.

1. I have created an account on schedulesdirect.org
2. I have subscribed to a lineup under my account
3. I installed the plugin and set it up with username and password in (mediaportal)
4. I have the check box to get listing after restart of tvservice (mediaportal)
5. i have restarted service (mediaportal)
6. I have check tv.log and found the following. (mediaportal)

Thanks in advance - Craig


tv.log



2013-04-19 16:06:01.891601 [SchedulesDirect EPG Client(4)]: UTC time is 4/19/2013 8:06:01 PM, local time is 4/19/2013 4:06:01 PM (DST is True)
2013-04-19 16:06:01.898437 [SchedulesDirect EPG Client(4)]: Rename Existing Channels is set to: False, with Template: {number} {callsign}.
2013-04-19 16:06:01.899414 [SchedulesDirect EPG Client(4)]: Add New Digital Channels is set to: True, with External Input: SvhsInput1.
2013-04-19 16:06:01.900390 [SchedulesDirect EPG Client(4)]: Add New Digital Channels is set to: True, with External Audio Input: SPDIFInput1.
2013-04-19 16:06:01.901367 [SchedulesDirect EPG Client(4)]: Add New Digital Channels Country is set to: United States.
2013-04-19 16:06:01.902343 [SchedulesDirect EPG Client(4)]: Add New Analog Channels is set to: False, with External Input: SvhsInput1.
2013-04-19 16:06:01.903320 [SchedulesDirect EPG Client(4)]: Add New Analog Channels is set to: False, with External Input: SPDIFInput1.
2013-04-19 16:06:01.903320 [SchedulesDirect EPG Client(4)]: Channel Sorting is set to: False.
2013-04-19 16:06:01.905273 [SchedulesDirect EPG Client(4)]: Allow Channel Matching without Frequency is set to: False.
2013-04-19 16:06:01.906250 [SchedulesDirect EPG Client(4)]: Delete Channels with No EPG Mapping is set to: False.
2013-04-19 16:06:01.912109 [SchedulesDirect EPG Client(4)]: Requesting 24 hours of program listings from [4/19/2013 4:06:01 PM] to [4/20/2013 4:06:01 PM]
2013-04-19 16:06:02.120117 [SchedulesDirect EPG Client(4)]: System.Net.WebException: The request failed with HTTP status 417: Expectation failed.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SchedulesDirect.SchedulesDirectWebService.SchedulesDirectWebServiceProxy.download(String startTime, String endTime)
at SchedulesDirect.SchedulesDirectWebService.Download(DateTime startTime, DateTime endTime)
at SchedulesDirect.Plugin.SchedulesDirectPluginTVE3.RunEpgImport()
2013-04-19 16:06:02.121093 [SchedulesDirect EPG Client(4)]: ProtocolError
2013-04-19 16:06:02.121093 [SchedulesDirect EPG Client(4)]: ExpectationFailed
2013-04-19 16:06:02.327148 [SchedulesDirect EPG Client(4)]: Scheduling next poll for 1/1/0001 12:00:00 AM
 

geoffstewart

MP Donator
  • Premium Supporter
  • October 12, 2008
    346
    112
    Ottawa
    Home Country
    Canada Canada
    I have never seen this. But this thread seems to indicate that some proxy servers cause issues:

    http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c

    Are you trying to get to schedulesdirect through a proxy?

    You can try to put the configuration suggested into the TVservice.exe.config file:

    <configuration>
    <system.net><settings><servicePointManagerexpect100Continue="false"/></settings></system.net>
    ... the rest of the file

    If that doesn't work, I may need to do a code change.

    g
     

    Craig049

    New Member
    April 19, 2013
    2
    0
    58
    Home Country
    United States of America United States of America
    I have never seen this. But this thread seems to indicate that some proxy servers cause issues:

    http://stackoverflow.com/questions/566437/http-post-returns-the-error-417-expectation-failed-c

    Are you trying to get to schedulesdirect through a proxy?

    You can try to put the configuration suggested into the TVservice.exe.config file:

    <configuration>
    <system.net><settings><servicePointManagerexpect100Continue="false"/></settings></system.net>
    ... the rest of the file

    If that doesn't work, I may need to do a code change.

    g

    That did the trick.

    I'm using PFsense firewall at home with a transparent proxy setup.

    I added the below entry into the TVservice.exe.config file inside the <configuration> tag and restarted the service and it worked great.

    <system.net>
    <settings>
    <servicePointManager expect100Continue="false" />
    </settings>
    </system.net>


    Thanks for your quick response.

    -Craig
     

    cwchapma

    Portal Pro
    October 15, 2006
    56
    34
    48
    Home Country
    Canada Canada
    I've attached a change to the code to do the equivalent of the config file. Would you mind testing it out Craig?
    • Unzip the dll
    • stop the MediaPortal TV Service
    • Copy both SchedulesDirectPluginTVE3.dll and TvdbLib?.dll files into the "%Program Files%\Team MediaPortal\MediaPortal TV Server\Plugins" directory
    • Rename the config file so it isn't used
    • Start the TV Service
    Thanks,
    Clint
     

    Attachments

    • SchedulesDirectPluginTVE3.zip
      80.3 KB

    laserheat

    MP Donator
  • Premium Supporter
  • February 18, 2012
    17
    1
    55
    Home Country
    United States of America United States of America

    cwchapma

    Portal Pro
    October 15, 2006
    56
    34
    48
    Home Country
    Canada Canada
    Attached is an updated SchedulesDirect dll that sets the channel column for Analog stations. To try it out, stop TvServer, copy the dll into your Tvserver plugins directory (overwriting the old version) and restart tvserver.

    I will add an installer, just not tonight. I'm still trying to figure out how to set the channel column for ATSC channels and what to set it to. I think MCE uses channels over 1000 - not sure how they come up with the numbers though.

    Hope that helps
    Clint
     

    Attachments

    • SchedulesDirectPluginTVE3 (2).zip
      80.3 KB

    laserheat

    MP Donator
  • Premium Supporter
  • February 18, 2012
    17
    1
    55
    Home Country
    United States of America United States of America
    cwchapma, thanks for the update. I will try it out this weekend and let you know how it goes.
     

    cwchapma

    Portal Pro
    October 15, 2006
    56
    34
    48
    Home Country
    Canada Canada
    I think the only way to have it update your channel numbers is to delete all your channels and let the plugin reload them. Make sure you backup up your schedules before you delete your channels.

    I'll see if I can figure out a way to have it update without deleting your channels but no promises.

    Clint
     
    Last edited:

    cwchapma

    Portal Pro
    October 15, 2006
    56
    34
    48
    Home Country
    Canada Canada
    The plugin has been updated in the Mediaportal Extension Installer. You'll need to stop the TVservice before you install in and restart it after.

    This update includes:
    -Fix for proxy servers and "expectation failed" exception that @Craig049 was having.
    -Updates new channel number column so you change channels by inputting the number.

    To get the channel numbers to update, you'll need to "force guide update" in the SD plugin settings and then restart TVService.

    I was hoping to do the same thing MCE does for ATSC channels and make 4-1 channel 1041 but Mediaportal doesn't appear to support 4 digit channels. So instead, 4-1 becomes 4. Not sure what issues that might cause.

    Iinstaller is also attached.

    Hope that helps,
    Clint
     

    Attachments

    • SchedulesDirectPlugin-1.3.0.1.mpe1
      184.6 KB

    Users who are viewing this thread

    Top Bottom