default clips are 5seconds, add cron function
This commit is contained in:
parent
2cdd6f1607
commit
3b61a5e4b7
2 changed files with 11 additions and 1 deletions
|
@ -13,6 +13,16 @@ def extractNew():
|
||||||
f.extractAll()
|
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:
|
#possible fuctions:
|
||||||
'''
|
'''
|
||||||
def extractSubtitles():
|
def extractSubtitles():
|
||||||
|
|
|
@ -421,7 +421,7 @@ class ArchiveFile(SQLObject):
|
||||||
if s:
|
if s:
|
||||||
outpoint = s['stop']
|
outpoint = s['stop']
|
||||||
else:
|
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(movie_file, flash_movie, inpoint, outpoint, width, height, offset = 0)
|
||||||
#extract_flash_ng(self.absolutePath, flash_movie, inpoint, outpoint, width, height, offset)
|
#extract_flash_ng(self.absolutePath, flash_movie, inpoint, outpoint, width, height, offset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue