Tvlisting at gracenote.com has stopped working for me (7 Viewers)

Airman

Portal Member
April 9, 2025
5
0
Home Country
United States of America United States of America
Please help, It would be a great help to me just to know if people are still getting tvlisting from gracenote.com. When zap2it stopped I switched to gracenote and it has been working but a few days ago it is not working. It connects and seems to go through the process updating overair tvlistings but is not working to give me a schedule. It could be a me issue that's why I am asking. Thanks
 

Brian80

New Member
April 13, 2025
2
0
Home Country
United States of America United States of America
Gracenote has a round robin for its DNS and they have changed it several times.

Copy the below and make it a batch file (zap2it_check.bat) and then run it every so often (or when your automated update fails) you can check the dns to see if the round robin has changed. If so you can just reedit your hosts file.

Echo Off
type c:\windows\system32\drivers\etc\hosts && for /f "tokens=* skip=4" %%a in ('nslookup tvlistings.gracenote.com') do @Echo %%a
choice /T 20 /C YNC /D C /M "Do you want to edit the hosts file?"
REM @Echo %errorlevel%
If %ERRORLEVEL%==1 goto Edit
If %ERRORLEVEL%==2 goto end
If %ERRORLEVEL%==3 goto exit

:Edit
notepad c:\Windows\system32\drivers\etc\hosts
goto end

:exit
exit

:end
 

NRivera637

Portal Pro
September 7, 2013
67
8
75
Home Country
United States of America United States of America
20Jun25 : 06:20am :sleep:

Unfortunately, now Gracenote is rotating its IP every few seconds daily and also from day-to-day so that you cannot capture it is we did a few days ago. Adding all three visible IP addressess to the 'hosts' file as was suggested no longer works either. Replacing 'zap2it' with 'Gracenote' in the ZAP2XML.PL file doesn't want to work. The original Zap2it web listings are available on their new website yes.., and the Zap2it Login/password do work so you can access listings online. :cry:

But, a solution to download the XML tvguide data still eludes. So the hunt goes on. :mad:

BTW it would be nice if all posts were dated so people don't wind up reading solutions from the year 2016 and which no longer apply. (y)
 

klfoster

New Member
June 23, 2025
1
1
Home Country
United States of America United States of America
23Jun25

FYI:

In the NextPVR forum, a user posted that AWS now requires a more recent User Agent Header.


They recommended the following change to the zap2xml.pl script:

Change:
Code:
$ua->agent('Mozilla/4.0');

To:
Code:
$ua->agent('Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0');

If you run from a zap2xml.exe executable, don't forget to recompile it from the updated zap2xmp.pl script.

I just tried the fix, and it now works for me and my mediaportal.

Yay, back in business (until the next time it breaks).
 

sda

New Member
July 8, 2025
3
0
Home Country
United States of America United States of America
23Jun25

FYI:

In the NextPVR forum, a user posted that AWS now requires a more recent User Agent Header.


They recommended the following change to the zap2xml.pl script:

Change:
Code:
$ua->agent('Mozilla/4.0');

To:
Code:
$ua->agent('Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0');

If you run from a zap2xml.exe executable, don't forget to recompile it from the updated zap2xmp.pl script.

I just tried the fix, and it now works for me and my mediaportal.

Yay, back in business (until the next time it breaks).
This works. Thank you!
 

Clancy

New Member
July 18, 2025
1
0
Home Country
United States of America United States of America
Can someone please write the fix in plain, step by step, non-technical English for those of us who don't code!
 

sda

New Member
July 8, 2025
3
0
Home Country
United States of America United States of America
Simply change the line with the user agent in your zap2xml.pl file like so-

Change:
Code:
$ua->agent('Mozilla/4.0');
To:
Code:
$ua->agent('Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0');
 

NRivera637

Portal Pro
September 7, 2013
67
8
75
Home Country
United States of America United States of America
o_O Only a gifted few on this forum would know what you are writing about above. Is this a Windows or Linux thing..? And where would this line of code be plugged in were it a Windows thing..? I suspect it is not a Windows solution... :(
 

sda

New Member
July 8, 2025
3
0
Home Country
United States of America United States of America
I don't know how others run it or have acquired the zap2xml stuff but the instructions I gave apply to anything. It is one line in the zap2xml.pl script that you need to change.


I run on Linux so I simply run the script itself (and once you change that on the next run it will be fine.) I do not know anything about a Windows executable but like @klfoster said, if you do then you need to do two things-


1- Change the line as I said above in the zap2xml.pl script (where this file would reside, no idea. I am guessing if you BUILT your exe on windows then you should know.)

2- From there you'd need to recompile (ie. rebuild) the exe so it includes the updated script.


Now....if you did not build the exe yourself and just grabbed it from somewhere, I doubt I can help you. Maybe some enterprising user who runs the windows build can update the script, rebuild the exe, and link to it here.


The only other option I can see is run the docker container here- GitHub - jef/zap2xml: Automate zap2it TV guide to XMLTV which is pretty easy. Or grab the zap2xml.pl script from that repo and use it in a Linux VM, etc. I did not thoroughly check that one as I have had zap2xml myself for....eons by now but the useragent looks fine and that repo was updated only 3 days ago.


I only made an account to thank klfoster for the tip and yes, I do come from a Linux background. Hopefully you guys can get a solution working on windows or spin up a docker container real quick to do it instead. I have no experience in that realm.


Looking here- https://www.reddit.com/r/Cordcutting/comments/ic0fmc not sure anyone has it? Might be time to try Linux
 

Users who are viewing this thread

Top Bottom