Zap2it free TV listings XML is no more. (4 Viewers)

pfilippone

Portal Member
January 7, 2025
8
6
Home Country
United States of America United States of America
NOT A MEDIAPORTAL ISSUE.

Using MediaPortal1, Kodi for TV viewing. Today I noticed the TV Guide in Kodi stopped updating. A Google search, and I discover Zap2it (the free source for TV guide EPG in XML format) stopped their service. Does anybody out there know of a free replacement? I am aware of XMLTVListings and Schedules Direct (both are available for a fee). THANKS

EDIT: After more searching, it appears the service is not dead, they just changed the URL to https://tvlistings.gracenote.com/
Got this tidbit from the Kodi forum. Unfortunately, I'm using mc2xml program, and it doesn't seem to have a way of changing the URL.
Anybody familiar with zap2xml? Looks like I may need to switch to this, as it apparently is still working (once you change the URL in the config).

EDIT#2: After yet more searching, it seems the zap2xml and mc2xml programs are hardcoded to use tvlistings.zap2it.com . One workaround I found out there is to trick these programs into using the new URL via a clever method: the Windows host file. Add 54.148.50.239 tvlistings.zap2it.com to the end of the file. I just tried it and it works. The proper way would be to get the perl scripts and fix it in there. I'll just wait until this breaks again to look into it. Hopefully it will last a while.
 
Last edited:

shazeldine

New Member
April 2, 2025
1
0
Home Country
United States of America United States of America
Can you be more specific about how to use the Windows host file to change zap2xml to login with the new web address.
 

mrceolla

Portal Pro
December 11, 2010
150
23
Home Country
United States of America United States of America
@pfilippone , you, sir, are a genius! Thank you!

@shazeldine

Here's what I did:

1) Open Notepad as Administrator (so you have permissions to open/save this file)
2) From Notepad, File -> Open, navigate to: C:\Windows\System32\drivers\etc
3) Change file type to "All files" so you can see the files in this directory
4) Open the file called "hosts" (no extension)
5) Paste the following at the bottom of the file: 54.148.50.239 tvlistings.zap2it.com
6) Save the file

That should be it. Note, you may need to enable the viewing of these system files if you can't already see them. I believe you uncheck something that starts with "Hide..." in File Explorer view options.
 

NRivera637

Portal Member
September 7, 2013
46
7
74
Home Country
United States of America United States of America
Frigging Genius. I was in a panic already. Hope this holds or that someone (smarter than me) updates the zap2xml.pl file. I tried changing the Zap2it references to gracenote but that ain't work too good. Not at all actually. So thank you for expressing those genius neurons.
 

Noise672

Portal Member
August 9, 2015
48
18
70
Montreal
Home Country
Canada Canada
All was good up to March 25th.

I am still in a panic. Adding 54.148.50.239 tvlistings.zap2it.com to the end of host file does not work for me...

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
54.148.50.239 tvlistings.zap2it.com

Running:
PS C:\ProgramData\Team MediaPortal\MediaPortal TV Server\xmltv> .\zap2xml -u noise672@outlook.com -p password
I get error:

Logging in as "noise672@outlook.com" (Fri Apr 4 13:16:38 2025)
[Attempt 1] <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

Failed to login within 3 retries.

Please help.
Thank you, Thank you, Thank you.

EDIT: ping tvlistings.zap2it.com
Envoi d’une requête 'ping' sur tvlistings.zap2it.com [54.148.50.239] avec 32 octets de données :
Délai d’attente de la demande dépassé.
Délai d’attente de la demande dépassé.
Délai d’attente de la demande dépassé.
Délai d’attente de la demande dépassé.

Statistiques Ping pour 54.148.50.239:
Paquets : envoyés = 4, reçus = 0, perdus = 4 (perte 100%)
 
Last edited:

pfilippone

Portal Member
January 7, 2025
8
6
Home Country
United States of America United States of America
I think I found a workable and FREE solution. EPGSHARE01 is a site that seems to provide FREE EPGs for lots of countries.
I wrote a batch file that downloads the USA EPG file (yes, one file for the WHOLE USA). It comes as a compressed .gz file. The batch file extracts the gz file (you need to get gzip. Just Google it). Then I had to (just the one time) remap the channels in TV Server > plugins > XmlTv (Oh what fun!), since the channel names are not the same as what Zap2It used to have. Oh, and update the task scheduler to run the batch file instead of the mc2xml/zap2it file.

EDIT: I couldn't get this method to work. So I went back to the windows host file trick, except using IP=52.27.89.57 . I confirm that works.
Who knows how long this will last??
 

Attachments

  • grab-epg.bat.txt
    147 bytes
Last edited:

mrceolla

Portal Pro
December 11, 2010
150
23
Home Country
United States of America United States of America
Someone claims the IP changed and that this one works:

52.27.89.57

I haven't tried it yet myself.
 

Users who are viewing this thread


Write your reply...
Top Bottom