Skip to content

XML availExpected wrongly parsed #128

@wabiloo

Description

@wabiloo

Hi there,

Just noticed a small error in the XML parser.

Given the following payload:

<scte35:SpliceInfoSection protocolVersion="0" ptsAdjustment="7763502744" tier="4095">
   <scte35:SpliceInsert spliceEventId="16" spliceEventCancelIndicator="false" outOfNetworkIndicator="false" spliceImmediateFlag="false" uniqueProgramId="1" availNum="18" availsExpected="255">
      <scte35:Program>
         <scte35:SpliceTime ptsTime="3033977688"/>
      </scte35:Program>
   </scte35:SpliceInsert>
</scte35:SpliceInfoSection>

The parsed output has avails_expected==True instead of a number

From the 2023r1 spec:

individual avails within the current viewing event. When this field is zero, it indicates that the avail_num
field has no meaning.
@availsExpected [Optional, xsd:unsignedByte]```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions