Closed mkbloke closed 1 year ago
Sorry for the delay in replying. Nice work: I like it!
I've made a couple of performance tweaks (to cache/shortcut the array searching) - could you give them a twirl?
I can't see a use case for making this method optional (rather than mandatory). It fixes the problem for lots of people (including those who didn't even know they had a problem ;) )
I've given your changes a twirl and all looks good as far as I can see. I tested BBC News and Sky Sports Golf again. Good stuff!
Thanks. I've committed your change, to the main repo.
What type of Pull Request is this?
Does this PR close any currently open issues?
No.
Please explain what this PR does
So, I've finally got fed up with TVG switching IDs for BBC News. It's been 66 since forever, but recently it's been hopping back and forth between 66 and 2148.
This PR aims to address the problem. Let me know what you think. If you like the idea of it, should the alternative lookup be hard-coded in as it is now or should it be possible to turn it on/off via a command line switch? Should it default to enabled or disabled in that case?
Debug log of
./tv_grab_uk_tvguide --legacychannels --days 8 --offset -4 --output tv.xml --debug &> tv.log
for BBC News (66):Debug log of
./tv_grab_uk_tvguide --legacychannels --days 1 --offset 0 --output tv.xml --debug &> tv.log
for Sky Sports Golf (1586):Where have you tested these changes?
Operating System: Linux
Perl Version: 5.24.1