Clean up
This commit is contained in:
parent
7575707703
commit
30c0f00b86
9
comp
9
comp
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue