Skip to content

Commit

Permalink
Fixing issue #1 when general track is not present (mediainfo)
Browse files Browse the repository at this point in the history
  • Loading branch information
ratoaq2 committed Nov 18, 2016
1 parent 6d17f5a commit 848d57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion knowit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import unicode_literals

__title__ = 'knowit'
__version__ = '0.1.4'
__version__ = '0.1.4.1'
__short_version__ = '.'.join(__version__.split('.')[:2])
__author__ = 'Rato AQ2'
__license__ = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion knowit/providers/mediainfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def describe(self, video_path, options):
elif track_type == 'Text':
subtitle_tracks.append(track)

result = self._describe_tracks(general_tracks[0] if general_tracks else [],
result = self._describe_tracks(general_tracks[0] if general_tracks else None,
video_tracks, audio_tracks, subtitle_tracks)
if not result:
logger.warning("Invalid file '%s'", video_path)
Expand Down

0 comments on commit 848d57f

Please sign in to comment.