Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML availExpected wrongly parsed #128

Open
wabiloo opened this issue Dec 10, 2024 · 0 comments
Open

XML availExpected wrongly parsed #128

wabiloo opened this issue Dec 10, 2024 · 0 comments

Comments

@wabiloo
Copy link

wabiloo commented Dec 10, 2024

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]```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant