Menu

#496 tv_grab_na_dtv

none
closed-fixed
None
5
2016-06-29
2015-01-14
HTPC Guides
No

Getting this error when running tv_grab_na_dtv --days 7 --output us.xml

Only had 10 channels selected.

Can't use an undefined value as an ARRAY reference at /<d:\xmltv\xmltv.exe>grab/
na_dtv/tv_grab_na_dtv line 709.</d:\xmltv\xmltv.exe>

Discussion

  • Geoff

    Geoff - 2015-01-15

    One of your channel-days is returning no data. Try asking for fewer days or playing with the channels selected to see if you localise the problem.

     
  • Robert Eden

    Robert Eden - 2015-01-15

    Still not a great way for the grabber to handle it.

     
  • Geoff

    Geoff - 2015-01-15

    Agreed; I am trying to identify if the problem is with the OP's channels not being up-to-date, or if it's a transient problem with the data source.

     
  • Robert Eden

    Robert Eden - 2015-01-15

    I think I have an easy code fix, trying to replicate the problem first
    old:
    if( @{ $data->{schedule}} ) {
    new:
    if( $data->{schedule} && @{ $data->{schedule}} ) {

    Do you want to fix it or should I? (I don't remember if you're the official maintainer). Would be nice if OP mentioned which 10 stations he was grabbing. :)

     
  • Robert Eden

    Robert Eden - 2015-01-15

    I guess a better solution would be ref($data->{schedule} eq 'array', but that's probably overkill.

     
  • Geoff

    Geoff - 2015-01-15

    I did do some work on this grabber but I only had a trial subscription, which has long since expired, so I can't test any more. So if you wouldn't mind doing it, that would be cool :-)

    I'd go with your "new" option I think.

    It would however be good to know what was actually returned in the JSON content, so we could see exactly why it returned 'no error but no schedule' !

     
  • Robert Eden

    Robert Eden - 2015-01-15

    If the http fetch fails, it prints a message but tries to parse the output anyway. At least that's what happens with the get_program_details... which I also fixed.

    I got this, but still haven't been able to replicate the problem though my full-channel grab is still running.

    (BTW, this is not that grabber with the subscription)

     
    • Geoff

      Geoff - 2015-01-15

      (BTW, this is not that grabber with the subscription)

      Ah right, sorry I gets confoozed ;-)

       
  • Robert Eden

    Robert Eden - 2015-01-15

    fix committed.

     
  • Robert Eden

    Robert Eden - 2015-01-15
    • status: open --> open-fixed
    • assigned_to: Robert Eden
     
  • Nick Morrott

    Nick Morrott - 2016-06-29
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB