-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tv_grab_na_dtv stopped working #80
Comments
I have the same issue with tv_grab_na_dtv. No output data is provided from xmltv. Started approximately end of Dec, and no data has been collected since. Worked without issue for several years previously. I'm an [old] developer, so if someone can point me in the right direction, I will happily take a look. Can't say I'll actually be an assistance, though ;) Linux 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux |
I have no direc(TV? ha-ha) knowledge, but I strongly suspect they (finally) implemented rate limiting on their web site for anonymous requests (one way to test might be to change your channel list to only select something like 10 channels and see if it works for those 10). DirecTV would not be the first to address what they consider screen scraper abuse in that way. I have no idea if that means that to continue to use such a screen scrapper one has to make requests a lot slower, or break the requests into smaller session request bunches, or one needs to login to the site to continue making requests at a higher rate. Since DirecTV has not shared what they have done (and seem unlikely to do so), it will probably be a lot of trial and error to proceed. For a subscriber of DirecTV, I would certainly suggest contacting them to see if they can provide a reliable (downloadable) EPG without the need for screen scrapping. There are also other known EPG sources (none free that I know of) that include DirecTV scheduled information that use formal (supported) APIs. One may need to consider moving in that direction for a more reliable fix if DirecTV is not willing/able to supply the data. |
Saying that you don't know of any free sources, then suggesting that one move towards that direction... can't say that's particularly helpful to me. If you know of actual rate-limiting actions that are in play by directTV, please provide that data. Otherwise, your input is just pure conjecture. I would like to move towards resolving the issue with "tv_grab_na_dtv", hence the primary reason for this issue page, and my follow up comments. |
I don't think that it's relating to some rate limits or other restrictions. I have two ideas:
|
I've tested out a few various ideas of my own, and so far, my latest theory is related to the "--compressed" option of curl. When I add this option, I am able to download data from the directv website reliably. This option is enabled by default when using the latest chrome (on mac), but I'm unsure if it enabled by default by the xmltv include 'LWP::UserAgent'. I am currently testing a modified version, which enables this option for sure, and inital tests are looking good. I have completed two full downloads for my schedule. MaximVol, if you upload your config file 'tv_grab_na_dtv.conf', I can test it as well. |
My config file is attached: |
MaximVol
General Notes:
To Do:
|
@ejonesnospam, can you attach the code of tv_grab_na_dtv with your corrections, please? |
code has been published and pull request created |
@ejonesnospam, with your corrections, everything works well, thanks a lot! |
FWIW by simply adding the User-Agent header, I am able to download it with wget, eg: wget -U '42' https://www.directv.com/json/channels |
@MaximVol Your bug report was created using an old version of XMLTV (the current release version is 0.6.1) on Debian oldstable. Do you see similar problems using the code in the current git master branch (with no patches applied), using the simple config file provided at grab/na_dtv/test.conf? Note that the test file only attempts to retrieve listings for a single channel and the grabber output validates normally. |
@MaximVol I've tested git master with your config file (4 channels), and have replicated the timeout. Investigating further. |
XMLTV Version?
XMLTV module version 0.5.69
This is tv_grab_na_dtv version 1.24, 2016/11/23 19:41:36
XMLTV Component?
tv_grab_na_dtv
What happened?
tv_grab_na_dtv stopped working December 18, 2019. It hangs after connecting to directv.com and after some time terminates by timeout. At the same time, I can load DirectTV JSON in browser without any problems. I tried to change the user agent in code of tv_grab_na_dtv to latest version of Chrome, but this did not fix the issue.
What other software are you using?
Linux 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux
This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi
The text was updated successfully, but these errors were encountered: