This commit is contained in:
Nguyễn Gia Phong 2017-08-29 15:48:51 +07:00
parent 7575707703
commit 30c0f00b86
3 changed files with 2 additions and 11 deletions

9
comp
View File

@ -240,15 +240,6 @@ class Comp(Omp):
curses.noecho()
return b.decode()
def seek(self, amount, reference='relative', precision='default-precise'):
"""Wrap mp.seek with a try clause to avoid crash when nothing is
being played.
"""
try:
self.mp.seek(amount, reference, precision)
except:
pass
def move(self, delta):
"""Move to the relatively next delta entry."""
if not (self.entries and delta): return

View File

@ -1,5 +1,5 @@
# ie.py - Omni Media Player infomation extractor
# This is a part of comp
# This file is part of comp
#
# comp is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as

View File

@ -1,5 +1,5 @@
# omp.py - Omni Media Player meta object
# This is a part of comp
# This file is part of comp
#
# comp is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as