use jpg, png is to big to get in time

This commit is contained in:
j 2008-07-03 19:18:57 +02:00
commit e49db8cdfa
2 changed files with 2 additions and 43 deletions

View file

@ -741,13 +741,13 @@ class ArchiveFile(SQLObject):
return cache.loadPosterStill(self, position)
def still(self, position):
still = os.path.join(self.stillFolder, "%s.%s" % (position.replace(':', '.'), 'png'))
still = os.path.join(self.stillFolder, "%s.%s" % (position.replace(':', '.'), 'jpg'))
if not exists(still):
oxdb_makedir(dirname(still))
movieFile = self.absolutePath
if os.path.splitext(movieFile)[-1] in ('.mov', '.mpg', '.mpeg'):
movieFile = self.mini_movie_file
extract_still(movieFile, position, self.stillFolder, -1)
extract_frame(movieFile, position, self.stillFolder, -1)
if exists(still):
return cache.loadFile(still)
return ''