-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTSData.py
37 lines (28 loc) · 849 Bytes
/
TSData.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
""" Class for storing metadata for entire transport stream """
from TSTable import TSTable
from SDTTable import SDTTable
from NITTable import NITTable
from PATTable import PATTable
class TSData:
def __init__(self):
self._pat_table: PATTable = PATTable()
self._nit_table: NITTable = NITTable()
self._sdt_table: SDTTable = SDTTable()
@property
def pat_table(self):
return self._pat_table
@property
def nit_table(self):
return self._nit_table
@property
def sdt_table(self):
return self._sdt_table
@property
def has_pat_table(self):
return self._pat_table.parsed_entirely
@property
def has_nit_table(self):
return self._nit_table.parsed_entirely
@property
def has_sdt_table(self):
return self._sdt_table.parsed_entirely