Skip to content

Commit

Permalink
all vocto files are 10 min.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlFK committed Feb 2, 2016
1 parent e0e4cb9 commit 6d992cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dj/scripts/adddv.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def one_loc(self,show,location):
self.mark_file(os.path.join(d,f),show,location)

if os.path.splitext(f)[1] in [
'.dv', '.flv', '.mp4', '.MTS', '.mkv', '.mov' ]:
'.dv', '.flv', '.mp4', '.MTS', '.mkv', '.mov', 'ts' ]:
seq+=1
self.one_file(os.path.join(d,f),show,location,seq)

Expand Down
5 changes: 4 additions & 1 deletion dj/scripts/tsdv.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def one_rf(self, rf, offset):
if offset is not None:
start += datetime.timedelta(seconds=offset)

seconds = tsraw.get_duration(pathname)
if os.path.splitext(f)[1] in [ .'ts' ]
seconds = 600
else:
seconds = tsraw.get_duration(pathname)

print( pathname, start, seconds )
rf.start = start
Expand Down

0 comments on commit 6d992cb

Please sign in to comment.