* cleanup oxdbarchive, consolidated cache code
* no tg_flash * fix extract_timeline
This commit is contained in:
parent
40d1554124
commit
9779cfc86a
7 changed files with 45 additions and 321 deletions
|
|
@ -52,7 +52,6 @@ class GstTimeline:
|
|||
format, self.length = q.parse_duration()
|
||||
|
||||
seconds = int(math.ceil(float(self.length) / gst.SECOND))
|
||||
print "seconds", seconds
|
||||
self.timelineImage = Image.new("RGB", (seconds, bar_height))
|
||||
self.timelineImagePos = 0
|
||||
|
||||
|
|
@ -112,7 +111,7 @@ def usage():
|
|||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 2:
|
||||
usage()
|
||||
if not os.path.exists(sys.argv[1]):
|
||||
if not os.path.exists(os.path.dirname(sys.argv[1])):
|
||||
print "target does not exist"
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue