default clips are 5seconds, add cron function

This commit is contained in:
j 2007-07-12 19:08:39 +00:00
parent 2cdd6f1607
commit 3b61a5e4b7
2 changed files with 11 additions and 1 deletions

View file

@ -13,6 +13,16 @@ def extractNew():
f.extractAll()
def cleanClipMovieCache():
cache = os.path.abspath('oxdb/cache/mini/')
for d, p, files in os.walk(cache):
for f in files:
md5sum = f.replace('.avi', '')
try:
fm = ArchiveFile.byMd5sum(md5sum)
except:
os.remove(os.path.join(cache, d, f))
#possible fuctions:
'''
def extractSubtitles():

View file

@ -421,7 +421,7 @@ class ArchiveFile(SQLObject):
if s:
outpoint = s['stop']
else:
outpoint = shift_time(2000, inpoint)
outpoint = shift_time(5000, inpoint)
extract_flash(movie_file, flash_movie, inpoint, outpoint, width, height, offset = 0)
#extract_flash_ng(self.absolutePath, flash_movie, inpoint, outpoint, width, height, offset)