US EPG using zap2xml with 2 sources (1 Viewer)

kmitch

New Member
January 28, 2018
1
0
United States of America United States of America
I wanted to share my setup and configuration for grabbing guide data using zap2xml (zap2xml). My setup includes over the air in the US, and a DirecTV STB. Since I needed two sets of guide data, I created 2 separate accounts on zap2it (TV Listings- Find Local TV Listings and Watch Full Episodes - Zap2it.com).

I've created the following directories (with included files):
C:\TVGuide
TVGuideCombine.exe
Create.bat
Code:
   Contents:
   cd\TVGuide\Antenna
   C:\TVGuide\zap2xml -C C:\TVGuide\Antenna\Antenna.txt
   cd\TVGuide\Satellite
   C:\TVGuide\zap2xml -C C:\TVGuide\Satellite\Satellite.txt
   cd\TVGuide
   C:\TVGuide\TVGuideCombine.exe c:\TVGuide\tvguide.xml c:\TVGuide\Antenna\tvguide.xml c:\TVGuide\Satellite\tvguide.xml
   cd\TVGuide
   copy "C:\TVGuide\tvguide.xml" "C:\ProgramData\Team MediaPortal\MediaPortal TV Server\xmltv\tvguide.xml"
zap2xml.exe
zap2xml.htm
zap2xml.pl
zap2xmlrc.txt

C:\TVGuide\Antenna
Antenna.txt
Code:
   Contents:
   days=13
   user=[email1@server.com]
   pass=[password1]
   outfile=C:\TVGuide\Antenna\tvguide.xml
   cache=C:\TVGuide\Antenna\cache
C:\TVGuide\Satellite
Satellite.txt
Code:
   Contents:
   days=13
   user=[email2@server.com]
   pass=[password2]
   outfile=C:\TVGuide\Satellite\tvguide.xml
   cache=C:\TVGuide\Satellite\cache

When you run Create.bat, here's what will happen:
  • zap2xml will run and grab my OTA channels and programs
  • the cache directory will be created under the Antenna directory
  • a tvguide.xml file will be created in the Antenna directory
  • zap2xml will run and grab my DirecTV channels and programs
  • the cache directory will be created under the Satellite directory
  • a tvguide.xml file will be created in the Satellite directory
  • the guides are combined into 1 tvguide.xml in the main directory
  • the new guide file is copied to the XmlTv plugin folder for processing into MediaPortal

TVGuideCombine is a simple C# program I wrote to pull the channel and programme data from 2 files and combine them. I also noticed that MediaPortal wasn't picking up the Season/Episode information from the tvguide.xml, based on the way it was presented in the file. MediaPortal expects the episode-num node with a system="xmltv_ns" as the first episode_num node, in the files using zap2xml, it was the last such node. The program also moves this node up in the programme node so it is the first episode-num node. I've attached a zip file with the binary and the source for this program.
 

Attachments

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
M EPG color by length of TV-show MediaPortal 1 Talk 1
D Downloading EPG XML file: Installation, configuration support 0
D EPG No Data General Support 2
D [solved] EPG Data off by -20 hours? General 10
G Q about scheduling weekly series when epg lists duplicate back to back episodes each week General Support 2
F Mini EPG more information? WMC Skin 4
N No TV or EPG on fresh install General 0
framug No color in TVGuide when XMLTV without DVB EPG MediaPortal 1 Talk 59
T Freesat EPG in UK anyone? Electronic Program Guide 78
Dark Eyes TVService locks up or fails to restart on resuming from sleep, and crashes when grabbing EPG Installation, configuration support 7
G Movie release date in guide Electronic Program Guide 2
Rob Hexenmeister Navigation problems adding menu buttons to EPG General Support 1
404 [solved] EPG problem after Win10 'upgrade' General Support 1
CyberSimian [fixed] MP1-4990 : Improve horizontal scrolling in the EPG MediaPortal 1 10
framug [EPG] Some problems with DVB EPG Improvement Suggestions 49
D [solved] EPG Buddy for MP2 - Does it work? General 5
J Understanding what EPG shows about schedules General 8
geotwticher TV Guide EPG Grabber for Australia 2020 RIP freepg.tv General 4
B [solved] MP2.2.3 TV Guide not scrolling with mouse wheel General 2
HTPCSourcer Special (foreign) characters don't display correctly in EPG MediaPortal 2 4
B How to Search MP2 for Movies only in 7 day EPG that comes from the Antenna General 3
F EPG Buddy download Plugins & Erweiterungen 1
P Timeshifting in XMLTV General 2
J Odd issues with Freesat EPG - MP2 General 18
T Freeview EPG-Anyone know what channel sends the guide data? Electronic Program Guide 10
Similar threads

























Top Bottom