use jpg, png is to big to get in time
This commit is contained in:
parent
a6d52af083
commit
e49db8cdfa
2 changed files with 2 additions and 43 deletions
|
|
@ -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 ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue