NetworkId data type overflow (Skyitalia Epg MHW don't work) (1 Viewer)

crazyboy

MP Donator
  • Premium Supporter
  • March 25, 2006
    38
    8
    Hi, i have investigated about skyitalia epg mhw grabbing and I found a bug relative to NetworkId data type:

    NetworkId can valued from 0 to 65535;

    In ITsEpgScanner.cs ther'are methods that use "ref Int16" as data type for NetworkId and this support number from -32768 to 32767.
    These Methods are: GetMHWTitle and GetMHWChannel

    Skyitalia for example have NetworkID = 64511 and is converted to "-1025" so when EpgGrabbing try to find a match between EpgChannel and TuningChannel for update database, it fault.

    I try to use "ref uInt16" instead of "ref Int16" and seems to work correctly

    Sorry for my English
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    just modified MP and TVE3 according to your suggestion - please test this!
     

    mrmojo666

    MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    now it seems grab data (by logs), don't add records in db "program" table: i've tried to make a select * from program but is empity

    here logs
     

    Users who are viewing this thread

    Top Bottom