use Ox.localStorage

This commit is contained in:
j 2011-12-31 02:17:40 +05:30
commit 90a36cfa17
5 changed files with 22 additions and 20 deletions

View file

@ -47,6 +47,7 @@ class Command(BaseCommand):
for s in models.Stream.objects.exclude(format=format, resolution=resolution).filter(source=None):
s.source = models.Stream.objects.get(file=s.file, resolution=resolution, format=format)
s.save()
print "update streams"
for s in models.Stream.objects.filter(source=None):
if not glob("%s*"%s.timeline_prefix):
s.make_timeline()