XMLTV / xmltv

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

Error with date in fr "TNT" configuration #174

Closed Media38 closed 2 years ago

Media38 commented 2 years ago

XMLTV Version? 1.1.1

XMLTV Component? xmltv.exe tv_grab_fr --output TVguideTNT.xml

What happened? An error appears with configuration "TNT" or "CANALSAT". It's OK with "BE Belgique" 👍

Did you see any warnings/errors? Getting listings...: ################################################## Use of uninitialized value $date_string in pattern match (m//) at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc/script/tv_grab_fr line 799. Validation failed for type named DayOfMonth declared in package DateTime::Types (C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\lib/DateTime/Types.pm) at line 29 in sub named (eval) with value undef

Trace begun at Specio::Exception->new line 57 Specio::Exception::throw('Specio::Exception', 'message', 'Validation failed for type named DayOfMonth declared in package DateTime::Types (C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\lib/DateTime/Types.pm) at line 29 in sub named (eval) with value undef', 'type', 'Specio::Constraint::Simple=HASH(0x63d25e0)', 'value', undef) called at (eval 223) line 91 DateTime::_check_new_params('year', undef, 'month', undef, 'day', undef, 'hour', undef, 'minute', undef, 'second', undef, 'time_zone', 'Europe/Paris') called at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\lib\DateTime.pm line 176 DateTime::new('DateTime', 'year', undef, 'month', undef, 'day', undef, 'hour', undef, 'minute', undef, 'second', undef, 'time_zone', 'Europe/Paris') called at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\script\tv_grab_fr line 800 main::get_datetime_from_xmltv_time(undef) called at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\script\tv_grab_fr line 744 main::update_programme_stop_times('ARRAY(0x85ef230)') called at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\script\tv_grab_fr line 360 main::write_listings_data('XMLTV::Writer=HASH(0x7e2b870)', 'HASH(0x77f1448)') called at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\script\tv_grab_fr line 77 require script/tv_grab_fr at script\xmltv.pl line 136 require main at \PAR.pm line 647 PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x4201fd0)', 1) called at script\main.pl line 46 require main at \PAR.pm line 647 PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x41aa298)') called at \PAR.pm line 434 PAR::import('PAR') called at -e line 594 eval {...} at -e line 42 __par_pl::BEGIN at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\script\tv_grab_fr line 0 eval {...} at C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc\script\tv_grab_fr line 0 Windows 10

Perl Version:

honir commented 2 years ago

Please try this new version.

Replace your existing file

C:\Users\dufou\AppData\Local\Temp\par-6475666f75\cache-0403651db53b5d86433fa2980270b3bd52f1e717\inc/script/tv_grab_fr

with this new one (right-click and "save link as...").

There may be some missing programmes on Chasse et Pêche as they are missing the name of the programme and so are excluded from the xml.

Please let me know how it goes.

Media38 commented 2 years ago

It's OK with this new version. Thank you for all, it's simply perect.

Media38 commented 2 years ago

Sorry for the fault : you must read "perfect" in place of "perect". I close with total success.

Slim1399 commented 2 years ago

I copied the script and pasted in the file==>The same message, no change So i downloaded the file, I changed the permissions: It's the same thing !