(original thread) US/Canadian/Mexico EPG Zap2it Plugin Released

Discussion in 'zap2it (discontinued)' started by bradsjm, June 6, 2006.

Thread Status:
Not open for further replies.
  1. bradsjm
    • Team MediaPortal

    bradsjm Retired Team Member

    Joined:
    October 28, 2005
    Messages:
    77
    Likes Received:
    0
    Occupation:
    IT Consultant Practice Head
    Location:
    New York City, USA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Last update: 01/09/2007

    The Zap2it Plugin is for those people using Zap2it (which means US and Canadian users ONLY) for getting their EPG information and who have an always-on internet connection.

    The following non-US locations should also work if you use the "fake" zipcodes below instead of a US zipcode :)

    • Bermuda Cablevision: use 147BERM
      Wow World on Wireless - Hamilton, Bermuda: use 366HAMI
      DirecTV Latin America: use 101VENE
      Mexico uses 904MEXI or 954MEXI
      Trinidad Express uses 512TRIN
      Americable International Japan, Inc. - Yokota Air Force Base, JPN: use 782YOKO

    The following features have been implemented:

    - Automatic background downloads (as long as Media Portal is running or when you next run MP if it wasn't running) at times set by Zap2it for best server load balancing
    - Incremental downloads - Only downloads new programs that aren't in your database
    - Compressed transfer to minimize bandwidth
    - Supports multiple Zap2it lineups (will import all lineups)
    - Updates programs for the next 24 hours to catch late schedule changes (Requires 0.2 final)
    - Notifies you starting 7 days in advance when your subscription needs to be renewed
    - No messing with timezones, if your system date and time is set correctly, things should "just work"
    - Ability to specify how you want channel names formatted, e.g. 45 WABC or just WABC or WABC 45 or etc.)
    - Channel matching based on name (ala XMLTV) plus HD major/minor channel and broadcast channel number for OTA and analog cable matching.
    - Provides additional details on the program description including:
    - Repeat flag (Repeat)
    - HDTV flag (HDTV)
    - Dolby Digital (Dolby Digital)
    - Parental Advisories (Violence, Nudity, etc.)

    The design goal is to "set and forget" it.


    Current downloads:

    Zap2It-Plugin-v1.8a-(MPv0.2.2).zip (110.4 KB) MP v0.2.2 stable/stand alone ONLY, NO SVN!
    Zap2It-Plugin-v1.8a-TVE3.zip (129.0 KB) TVServer (TVE3)
    Zap2It-Plugin-v1.8a-(MP SVN).zip (112.2 KB) MP Recent SVN ONLY

    OLD PLUGIN LINK (for historical purposes ONLY)

    Instructions:

    1. Download the zip file and place the Zap2itPlugin.dll in the plugins\process folder in your main mediaportal installation directory. Make sure you haven't extracted it to a folder below the process directory

    NOTES:

    Make sure you get the correct version.
    If you installed any SVN after 02Jan2007 you will have to use the SVN version.

    Again, ONLY install ONE of the plugins, you DO NOT need both the Stand Alone and TVServer versions. I am not sure how MediaPortal would behave (and we do not want to abuse the free service zap2it/DD provides to open source projects).

    If you are running MP v0.2.2 stand alone place the Zap2itPlugin.dll file in the plugins\process folder.
    Example: C:\Program Files\Team MediaPortal\MediaPortal\plugins\process

    If you are running the TVServer put the Zap2itPlugin.dll file into the Plugins folder in the TVServer folder.
    Example: C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins

    The download zip file contains 2 zip files.
    The BIN file contains the plugin dll file and the SRC contains the source code if you are interested.


    2. Start the configuration program and go to the plugins section and enable the Zap2it Plugin (it will probably be at the very bottom) by right clicking on it. If you don't see the plugin then you probably have the DLL in the wrong place, go back and check!

    3. Configure the plugin by right clicking on it and selecting configure.

    4. Enter your Zap2it login and password information (double check to make sure they are correct!). Also, make sure you have a working Zap2it lineup configured already at the labs.zap2it.com website.

    5. Hover over the options for online help :)

    6. Do an AUTOSCAN for your channels (if you are using analogue cable or antenna, obviously not if you are using satelite or digital cable where you have an external box)

    7. Save and exit the configuration and start MediaPortal.

    In about 15 seconds after starting MediaPortal, the plugin should start updating your EPG information and unless you disabled the option in the configuration it will show a popup window telling you it was sucessful. This entire process can take up to 20-30 minutes so please allow this much time for the first run of the plugin.

    If you see a sucess message, you are all done. It will now keep your EPG data updated in the automatically while MediaPortal is running.

    You will find log information in the logs\epg.log file below your MediaPortal installation directory (tv.log for the TVE3 version).

    If you have any issues, please post the contents of your epg.log file to http://pastebin.team-mediaportal.com and post the link.

    1.0: 6/6/06

    Initial release for testing

    1.1: 6/7/06

    Updated detection mechanism for repeat episodes from zap2it forum discussion
    Fixed minor tooltip issue in config form
    Updated automapping to work with analog cable channels that are auto-tuned

    1.2: 6/11/06

    Fixed repeat detection logic and added original air date if known to program description
    Added more information (episode title, show original air date, year and star rating for movies) to description
    Allowed user to configure which external input to be used when automatically adding new channels
    Removed code that was resetting channel numbers each import, now channel numbers are set on on new channels
    Added experimental code to autoset frequency information for broadcast and analog cable channels

    1.3: 6/21/06

    Fixed a bug when setting channel numbers
    Removed experimental code for frequency information
    Changed automatic channel adding to only work for digital cable & satellite. For analog cable/OTA you must autotune first then match
    Added config option to force a guide update on the next start of MediaPortal
    Changed from asynch SOAP to synch SOAP request (should not make any perceived difference)
    Added tab for viewing and updating your zap2it lineups and channels without going to the Zap2it web site
    Added logic not to skip schedule import if no channels were sucessfully processed

    1.4: 6/29/06

    Removed dependency on MPListView (reverted to System.Forms.ListView) as I was not using any MP features
    Changed the key for weblineup collections to use the internal ID and not channel number (as it is possible to have dupe numbers)

    1.5: 7/16/06

    Put a check for DIRECTV when Zap2it classifies it as an analogue cable provider
    Put a check for when no channels are imported (normally means you didn't autotune) and notify user
    Added a popup notify if there is no Internet connection instead of silently failing
    Fixed a bug when there is no network connection it still tried to get the next update time from Zap2it



    UPDATES: (Post modifications made by natrlhy)

    A special thanks to patrick for these updates from this point on! THANKS patrick!!! ;)

    1.6: 9/29/2006

    Further fixes to prevent crashing when no internet available.

    1.7: 10/23/2006

    When attempting to MATCH a channel from a lineup that is an OTA Broadcast
    will attempt to find a match using the Broadcast Channel Number.
    When attempting to MATCH a channel from a lineup that is NOT an OTA Broadcast
    (example Cable) will attempt to find a match using the Major Channel Number.
    Only if a match is not found using the above will loop through the channels
    again checking for matches using reverse logic.
    This should not change anything with the way ATSC channels are matched.
    I did not know if ATSC channels will always be from a OTA broadcast listing
    or if it is possible they could be part of a cable/sat lineup.

    1.8: 01/06/07

    Fixed bug where NextPoll could get scheduled in the past and never start
    Fixed bug in RunEpgImport where the endDate could be set to before startDate
    Increased the timeout for managing lineup data in the configuration.
    Added code to check for valid ATSC subChannel
    Added a DigitalTerrestrialSubChannel lookup that gets the subChannel from Callsign.
    Allow zap2it xtvd channel to be a string and try/catch parse for ChannelMajor.
    Changed setting to zap2it.xml - MP changed API for internal settings class, making release & SVN incompatible
    (TVE3 Only) Re-work of plugin to use with the MP TV Engine.
    (TVE3 Only) Added option to match channels by channel number without a frequency
    (TVE3 Only) Added Country Selection to pre-select for the auto-added external channels
    (TVE3 Only) Added additional log entries that indicate options.
    (TVE3 Only) Added optional channel sorting
    (TVE3 Only) Added option to delete unmapped channels

    v1.8a: 01/09/07

    Changed settings back to internal mediaportal
    Changed debug output to MediaPortal specified log folder
    (TVE3 ONLY) Changed RemoveOverlappingPrograms back to scan all programs
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Commodore 64
    • Team MediaPortal

    Commodore 64 Retired Team Member

    Joined:
    June 20, 2005
    Messages:
    328
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    This is a fantastic addition for those of us who have struggled with the XMLTV timezone and format issues. Just take alook att he stickied thread over there in the EPG forum...

    Thanks a lot Jonathan and let's get some feedback!

    PS: I'm all about Ronco.
     
  4. chili

    chili Portal Pro

    Joined:
    September 20, 2004
    Messages:
    339
    Likes Received:
    0
    Occupation:
    Account Specialist for Telecom
    Location:
    somewhere in the bowels of Texas
    Ratings:
    +0 / 0
    Bam! the best thing for MP to come in a long time.
    Thank you for doing this! I will install later today.
     
  5. mzemina
    • Team MediaPortal

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Likes Received:
    13
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    I LOVE that it now says (Repeat) but I don't know if this a once only occurance, I haven't seen this in other episodes that should also be labeled as repeat (well shouldn't all of broadcast TV be labeled repeat since we are between seasons). Strange that Friends isn't labeled as repeat since it is in syndication and all episodes are repeat.

    So far so good!

    EDIT: The only thing is that I didn't remember seeing the success message!

    Mike
     
  6. bradsjm
    • Team MediaPortal

    bradsjm Retired Team Member

    Joined:
    October 28, 2005
    Messages:
    77
    Likes Received:
    0
    Occupation:
    IT Consultant Practice Head
    Location:
    New York City, USA
    Ratings:
    +0 / 0
    Home Country:
    United States of America United States of America
    Thanks for pointing this out. The bad news is that this flag is in the original data and I'm just checking it and it isn't reliable. The good news is Zap2it know and have come up with this formula which can improve the detection of repeats but doesn't solve it completely:
    So I've added code to use the logic above and I'll put it in the next build for testing :)
     
  7. mzemina
    • Team MediaPortal

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Likes Received:
    13
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    Fantastic news! Great to hear!
     
  8. wishywashy

    wishywashy Portal Pro

    Joined:
    January 31, 2005
    Messages:
    495
    Likes Received:
    13
    Occupation:
    USAF
    Location:
    Hill AFB, UT
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    Thank you! Thank you!

    Works like a charm for me on two different machines.
     
  9. jml

    jml New Member

    Joined:
    June 7, 2006
    Messages:
    1
    Likes Received:
    0
    Ratings:
    +0 / 0
    When I go to my plugins I don't see this listed, and as far as I can tell I put the files in the correct location, any idea what I might have done wrong?
     
  10. broadband412

    broadband412 Portal Pro

    Joined:
    April 20, 2005
    Messages:
    84
    Likes Received:
    0
    Location:
    New Yrok
    Ratings:
    +0 / 0
    Wow I'm very happy to see something like this come about. Hopefully I will start getting episode descriptions in my listings. In my opinion, there are conflicts with XMLTV and Mediaportal that prevent info such as episode names from showing up. I will definately try this.
     
  11. Commodore 64
    • Team MediaPortal

    Commodore 64 Retired Team Member

    Joined:
    June 20, 2005
    Messages:
    328
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    United States of America United States of America
    Please install the latest SVN.

    Make sure you put the .dll file into the Process directory.
     
Loading...
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!