diff --git a/oxdbarchive/model.py b/oxdbarchive/model.py index fcb3afe..3fe5238 100644 --- a/oxdbarchive/model.py +++ b/oxdbarchive/model.py @@ -513,7 +513,7 @@ class ArchiveFile(SQLObject): def extractPosterStill(self, position): oxdb_makedir(dirname(self.posterStillFile)) mFile = self.absolutePath - if mFile.endswith('.mov') or mFile.endswith('.mpg'): + if os.path.splitext(mFile)[-1] in ('.mov', '.mpg', '.mpeg'): mFile = self.mini_movie_file extract_poster_still(mFile, self.posterStillFile, position) diff --git a/oxdbarchive/tools/extract_poster_still.py b/oxdbarchive/tools/extract_poster_still.py index 02b7fd4..45fa450 100755 --- a/oxdbarchive/tools/extract_poster_still.py +++ b/oxdbarchive/tools/extract_poster_still.py @@ -158,5 +158,5 @@ if __name__ == "__main__": sys.exit() outputFile = sys.argv[2] offset = int(float(sys.argv[3]) * gst.MSECOND) - #f = PosterStill(inputFile, outputFile, offset, height) - f = PosterStillMplayer(inputFile, outputFile, offset, height) + f = PosterStill(inputFile, outputFile, offset, height) + #f = PosterStillMplayer(inputFile, outputFile, offset, height)