parent
2726b9edef
commit
676c2374a3
|
@ -5,6 +5,7 @@ from lex import Grammar, PatternRule, RegionRule, PatternGroupRule
|
||||||
from point import Point
|
from point import Point
|
||||||
from buffer import Buffer
|
from buffer import Buffer
|
||||||
from method import Method, Argument, arg
|
from method import Method, Argument, arg
|
||||||
|
from method.shell import Interact
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import eyeD3
|
import eyeD3
|
||||||
|
@ -101,6 +102,14 @@ class Mp3Grammar(Grammar):
|
||||||
class Mp3Refresh(Method):
|
class Mp3Refresh(Method):
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
w.buffer.reload()
|
w.buffer.reload()
|
||||||
|
class Mp3Play(Method):
|
||||||
|
def _execute(self, w, **vargs):
|
||||||
|
pass
|
||||||
|
class Mpg123Play(Interact):
|
||||||
|
args = []
|
||||||
|
def _execute(self, w, **vargs):
|
||||||
|
path = os.path.realpath(w.buffer.path)
|
||||||
|
Interact._execute(self, w, bname='*Mpg123*', cmd='mpg123 %r' % path)
|
||||||
|
|
||||||
class Mp3OpenPath(Method):
|
class Mp3OpenPath(Method):
|
||||||
args = [arg('mp3', dt="path", p="Open MP3: ", dv=default.path_dirname,
|
args = [arg('mp3', dt="path", p="Open MP3: ", dv=default.path_dirname,
|
||||||
|
|
Loading…
Reference in New Issue