XMLTV / xmltv

Utilities to obtain, generate, and post-process TV listings data in XMLTV format
GNU General Public License v2.0
283 stars 93 forks source link

Listings error when running tv_grab_uk_freeview #230

Closed RN-Bear closed 4 months ago

RN-Bear commented 4 months ago

Thanks for taking the time to report an issue. Please take a moment to review our open/closed issues above, in case your issue has already been reported.

If you are reporting a new issue, please give your issue a descriptive title and fill out the blanks below, providing as much information as possible.

XMLTV Version?

(Please specify release version or git commit ID) 1.3.0

XMLTV Component?

(Grabber name or utility) tv_grab_uk_freeview

Perl Version

5.36.0 Operating System

Debian 12 (Bookworm)

What happened? The grabber successfuly finds the channels but fails on the 'listings' with the message

"malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/local/share/perl/5.36.0/XMLTV/Get_nice.pm line 136"

What did you expect to happen?

To see the listings for each channel

Did you see any warnings/errors?

(Please paste any warnings/errors, if available) No, apart from the above message What steps are needed to reproduce this issue?

(Please provide the full commands you are running) 1./usr/local/bin//tv_grab_uk_freeview --config-file /var/lib/tvheadend/config/.xmltv/tv_grab_uk_freeview.conf

Please attach your config file below:

(Remember to remove any usernames/passwords)

Any other information?

(For example, is this a new or intermittent issue?)

mosource21 commented 4 months ago

I believe this error is related to the "summer" clock changes it results in the start time no longer targeting 00:00:00. Adding a "+ 3600" should temporarily sort it until the "winter" clock changes and the "+ 3600" will then need to be removed.

Hopefully someone who actually knows what they are doing will know how to fix this properly so it takes the current time offset into account automatically.

/usr/local/bin/tv_grab_uk_freeview Note Line 499: # note start_time has to be xxxT00:00:00 Change Line 375: my $grab_start = $today_date->epoch() + ($optoffset * 86400) **+ 3600_**;

honir commented 4 months ago

Thanks for the report. A fixed version of tv_grab_uk_freeview is uploaded to GitHub