Zap2xml.pl and switches #87
Replies: 16 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply.
I've been running the perl script in ubuntu and no problem until recently.
I upgraded ubuntu from 20.04 to 22.04 and thought that might be the problem
so I compiled the script for windows and get the same results. Without -D
is takes about 66 seconds to complete but with -D it running over 24 hours
when I gave up. I think I'm going to tinker with the switches maybe reduce
the number of days, currently using 16 to see if that helps. Do you use -D
1 or just -D ?
Thanks again.
…_____
From: Stephen Ferrell ***@***.***
Sent: Friday, January 2, 2026 4:39 PM
To: jef/zap2xml
Cc: SkyeCairns; Author
Subject: Re: [jef/zap2xml] Zap2xml.pl and switches (Discussion #87)
If you're using the zap2xml.pl perl script, then the "-D" switch still
works. Yes, it takes a while especially if you've deleted your existing XML
file and the cache folder. In fact it can take up to 3 hours to finish on my
end because there are over 124 channels in the Phoenix area where I live. I
run the perl script every 6 hours and it indeed does still work. Here's an
example I pulled just a few minutes ago:
image.png
<https://github.com/user-attachments/assets/4042f2b7-dc76-4c95-ae71-17842e64
8318> (view on web)
-
Reply to this email directly, view
<#87 (comment)>
it on GitHub, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIC5MWHO7K5FIQBED3HLSTT4E
3QQNAVCNFSM6AAAAACQRQO2SGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTK
MZZGM4DQMA> .
You are receiving this because you authored the thread.
<https://github.com/notifications/beacon/AIC5MWE4NTTG5KLAGB27WE34E3QQNA5CNFS
M6AAAAACQRQO2SGWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3T
UL5UWJTQA5LSFQ.gif> Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I installed Strawberry perl and compiled the script for Windows and scheduled a task to run it every 6 hours. Here are my switches. I'm just using the -D swtich and not -D 1 and I still get details and genre: zap2xml -d 2 -S 1 -D -A "new live" -E "amp apos quot lt gt" -9 -u my@email.com -p my_password |
Beta Was this translation helpful? Give feedback.
-
|
Seems my problem is a server issue only a problem when adding D to the switches |
Beta Was this translation helpful? Give feedback.
-
|
The cause of the errors is right here:
|
Beta Was this translation helpful? Give feedback.
-
|
Have you logged into the gracenote server using your web browser and set the correct ZIP code so that you get the correct channel lineup? I get 504 timeout errors too, but it's for channels where there is no detailed content or genre. The other channels get processed just fine. :504 Gateway Time-out at script/zap2xml.pl line 364. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Are you using the script found here: https://github.com/jef/zap2xml/blob/historical-perl/zap2xml.pl or are you using a different version? |
Beta Was this translation helpful? Give feedback.
-
|
Also forgot to mention that if you're using MSYS2 or Cygwin to run the perl script you'll get all kinds of crazy errors. On Windows, you should install Strawberry PERL and compile the script per the instructions below: Download and install PERL from here: https://strawberryperl.com/ Open a Command Prompt in the folder where you download your zap2xml.pl file, then run: cpan From the cpan console run: install PAR PAR::Dist PAR::Packer Once finished, type exit to leave cpan. Run the following command to compile the perl script into an EXE, including the dependent module (sub::Util): pp -M sub::Util -o Zap2xml.exe zap2xml.pl And you're done :) |
Beta Was this translation helpful? Give feedback.
-
|
One more thing. You can move the EXE to other Windows machines but you'll need to install Strawberry on those machines too because the EXE relies on some of the DLLs that Strawberry installs. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah there were about 6 lines of differences mostly due to zapit.com
mentioned in script @ github while the one I had had gracenote. For example
$urlAssets = 'https://zap2it.tmsimg.com/assets/'; nevertheless I have used
the script @github and get the same results with lots of 504 errors and
neverending downloads. Again remove -D resolves my problems although
there's alot of shows with no Genres.
…_____
From: Stephen Ferrell ***@***.***
Sent: Saturday, January 3, 2026 8:51 AM
To: jef/zap2xml
Cc: SkyeCairns; Author
Subject: Re: [jef/zap2xml] Zap2xml.pl and switches (Discussion #87)
Are you using the script found here:
https://github.com/jef/zap2xml/blob/historical-perl/zap2xml.pl or are you
using a different version?
-
Reply to this email directly, view
<#87 (comment)>
it on GitHub, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIC5MWC6I4F6SAGHZS3YTT34E
7CLZAVCNFSM6AAAAACQRQO2SGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTK
MZZG4ZTEMY> .
You are receiving this because you authored the thread.
<https://github.com/notifications/beacon/AIC5MWD2TFZFZ3NTPS5VLWL4E7CLZA5CNFS
M6AAAAACQRQO2SGWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3T
UL5UWJTQA5LY4W.gif> Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Yes, you'll get a lot of 504 errors but I'm pretty sure those are caused due to programs that don't have details/genre . It does slow the script down while it waits for a timeout to move on. There are 124+ channels here in the Phoenix area so it takes around 3 hours to complete a run on my end but I'm also downloading 2 weeks of data. I hope the problem isn't due to the gracenote server being overwhelmed with requests from most users using the affiliate ID of orbebb. I'll compile the script using a different affiliate ID and see if things change. some working affiliate ID's are: |
Beta Was this translation helpful? Give feedback.
-
|
I changed the affiliate ID to 'tribnyc2dl' and recompiled and ran the EXE and I'm getting way fewer 504 timeout errors, so maybe the server handling the 'orbebb' affiliate is saturated. Here's a snip of the first few minutes of runtime. D:\Zap2XML>zap2xml -d 2 -S 1 -D -A "new live" -E "amp apos quot lt gt" -9 -u my@email.com -p my_password |
Beta Was this translation helpful? Give feedback.
-
|
Here's the script edited for 'tribnyc2dl' if you want to use it and save some editing time. |
Beta Was this translation helpful? Give feedback.
-
|
I have 32 channels and 16 days of data and it ran `12 hours overnight still
no end in sight. Maybe the problem is on my end. The problem just started
late December 2025 whatever the problem is. It use to run and be completed
in about 10 minutes. Thanks anyhow. I'm in Canada but it's never been a
problem before.
…_____
From: Stephen Ferrell ***@***.***
Sent: Saturday, January 3, 2026 1:26 PM
To: jef/zap2xml
Cc: SkyeCairns; Author
Subject: Re: [jef/zap2xml] Zap2xml.pl and switches (Discussion #87)
Here's the script edited for 'tribnyc2dl' if you want to use it and save
some editing time.
zap2xml.pl.txt
<https://github.com/user-attachments/files/24417299/zap2xml.pl.txt>
-
Reply to this email directly, view
<#87 (comment)>
it on GitHub, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIC5MWE4ZI5CL4A3GF2JAHD4F
ACUPAVCNFSM6AAAAACQRQO2SGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTK
MZZHA3DMOI> .
You are receiving this because you authored the thread.
<https://github.com/notifications/beacon/AIC5MWBIOX3VYAJ7ZAMSYSD4FACUPA5CNFS
M6AAAAACQRQO2SGWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3T
UL5UWJTQA5L3Q2.gif> Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
-
We use to be able to get TV details with the switch D 1 but now using it takes for ever after 24 hours I gave up. Without the switch it takes seconds :-) The -j switch only gives you "series" to non movies. Is there a work around this or we can no longer get the details? For TV shows I simply want the genre e.g. Sitcom, Western etc so not asking for alot of details.
Beta Was this translation helpful? Give feedback.
All reactions