Small patch for zap2xml2.pl to get full program descriptions

EDIT: It appears that the original zap2xml program has been taken down, and zap2xml2 has been renamed to zap2xml, replacing the original program.  Also, I believe the patch mentioned in this article is already present in the newest version, but if you aren’t getting full descriptions it wouldn’t hurt to take a look at the script and make sure. For additional hints on using zap2xml, see the (recently updated) article, Some hints for getting free-to-air satellite channels into the Electronic Program Guide in Kodi or XBMC (or another frontend).

Those of you who have been using zap2xml to get free-to-air satellite channels into the Electronic Program Guide in Kodi or XBMC (or another frontend) have probably discovered that it stopped working sometime in July, 2015.  If you go to the zap2xml site it has this note:

  • 2015-07-09
    • zapit removed their newer listings(?), zap2xml2 still works

But if you attempt to use zap2xml2, you may have found that you don’t get program descriptions on some or all programs. For some reason this seems to vary by user; the author of zap2xml2 is among those who don’t seem to see this problem. But if you are one of the ones who does find that the show descriptions are missing, there is a simple fix. Use any text editor to open the zap2xml2.pl file and find this line:

$rc = Encode::encode(‘utf8’, &getURL($urlRoot . “ZCGrid.do?fromTimeInMillis=$ms”) );

Change it to add the part shown in boldface below:

$rc = Encode::encode(‘utf8’, &getURL($urlRoot . “ZCGrid.do?isDescriptionOn=true&fromTimeInMillis=$ms”) );

Hope this helps someone.  I don’t understand why the newer style listings were removed, but for the time being that appears to be the situation.

Advertisements