Skip to content

Commit

Permalink
Video duration
Browse files Browse the repository at this point in the history
Recent versions of MediaInfo do not return milliseconds but seconds.
  • Loading branch information
DocMarty84 committed Oct 6, 2018
1 parent 2e3baf4 commit 2bdfe79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/oovideo_media.py
Expand Up @@ -67,7 +67,7 @@ def oovideo_stream(self, **kwargs):
res_str += '#EXTM3U\n'
res_str += '#EXT-X-VERSION:1\n'
res_str += '#EXT-X-TARGETDURATION:10\n'
total_duration = self.duration // 1000
total_duration = self.duration
remaining_duration = total_duration
while remaining_duration > 0:
seek = total_duration - remaining_duration
Expand Down

0 comments on commit 2bdfe79

Please sign in to comment.