Skip to content

Commit

Permalink
[dvbscanner] Check each SDT section actually has "content".
Browse files Browse the repository at this point in the history
This is a workaround for a broken table on Tivusat.
  • Loading branch information
Huevos committed Apr 2, 2018
1 parent 9bf0726 commit 0085c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AutoBouquetsMaker/src/scanner/dvbscanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def updateAndReadServicesLCN(self, transponders, servicehacks, TSID_ONID_list, l
print "[ABM-DvbScanner] SDT raw section header", section["header"]
print "[ABM-DvbScanner] SDT raw section content", section["content"]

if section["header"]["table_id"] == self.sdt_current_table_id or section["header"]["table_id"] == self.sdt_other_table_id:
if (section["header"]["table_id"] == self.sdt_current_table_id or section["header"]["table_id"] == self.sdt_other_table_id) and len(section["content"]):
TSID_ONID = "%x:%x" % (section["header"]["transport_stream_id"], section["header"]["original_network_id"])
if TSID_ONID not in TSID_ONID_list:
continue
Expand Down

0 comments on commit 0085c28

Please sign in to comment.