Skip to content

Fix mpegts error when no 'index' in data#5

Open
garret1317 wants to merge 1 commit intolightful:masterfrom
garret1317:master
Open

Fix mpegts error when no 'index' in data#5
garret1317 wants to merge 1 commit intolightful:masterfrom
garret1317:master

Conversation

@garret1317
Copy link
Copy Markdown

Trying to run mpegts on a captured TS gave the following error:

Traceback (most recent call last):
  File "/home/g/Downloads/DVBdirect/./mpegts", line 91, in <module>
    channelStreams[lastChannelName].append(data['index'])
KeyError: 'index'

I added a check to see if 'index' was in fact in the data before doing stuff with it, and it now seems to work perfectly.

Sample capture, in a zip file (can't upload .mts)

Trying to run mpegts on a captured TS gave the following error:
	Traceback (most recent call last):
	  File "/home/g/Downloads/DVBdirect/./mpegts", line 91, in <module>
	    channelStreams[lastChannelName].append(data['index'])
	KeyError: 'index'

I added a check to see if 'index' was in fact in the data before
doing stuff with it, and it now seems to work perfectly.
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

Successfully merging this pull request may close these issues.

1 participant