remove unused variables
This commit is contained in:
parent
94336ceda7
commit
decbf70027
1 changed files with 0 additions and 2 deletions
|
@ -459,7 +459,6 @@ class Item(models.Model):
|
||||||
streams = [s.get(resolution, format).media.path for s in self.streams()]
|
streams = [s.get(resolution, format).media.path for s in self.streams()]
|
||||||
if len(streams) > 1:
|
if len(streams) > 1:
|
||||||
if format == "webm":
|
if format == "webm":
|
||||||
first = True
|
|
||||||
cmd = ['mkvmerge', '-o', output]
|
cmd = ['mkvmerge', '-o', output]
|
||||||
cmd += [streams[0]] + ['+' + s for s in streams[1:]]
|
cmd += [streams[0]] + ['+' + s for s in streams[1:]]
|
||||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
||||||
|
@ -1461,7 +1460,6 @@ class Item(models.Model):
|
||||||
return
|
return
|
||||||
#otherwise add empty 5 seconds annotation every minute
|
#otherwise add empty 5 seconds annotation every minute
|
||||||
duration = sum([s.duration for s in self.streams()])
|
duration = sum([s.duration for s in self.streams()])
|
||||||
start = 0
|
|
||||||
layer = subtitles['id']
|
layer = subtitles['id']
|
||||||
#FIXME: allow annotations from no user instead?
|
#FIXME: allow annotations from no user instead?
|
||||||
user = User.objects.all().order_by('id')[0]
|
user = User.objects.all().order_by('id')[0]
|
||||||
|
|
Loading…
Reference in a new issue