freearhey / epg-grabber

Node.js CLI tool for grabbing EPG from different websites
47 stars 7 forks source link

fixing directv.com #15

Closed benbelgium closed 1 year ago

benbelgium commented 1 year ago

Hey freearhey

Hope you are well....

I was investigating why directv.com is no longer working... and found something strange After cutting the requests down and asking to see them in curl I tried to manually execute a single request in curl and got the follow response:

image

which was actually quite strange because in different browsers from different locations I was getting the data fine so I added the -A flag to curl to specify my agent, and it was suddenly working perfect:

image

So I was wondering where we can specify an agent in the config.js file? After reading thru it I'm assuming we can't... So this would have to be added to epg-grabber itself, as a flag, or an option in the config.js file

Many Thanks!

Ben

benbelgium commented 1 year ago

Hi

I found out how to add the User-Agent but apparently that wasn't the solution: image

I still get the same error.... so I was wrong thinking that would resolve it...

benbelgium commented 1 year ago

https://github.com/iptv-org/epg/issues/2038