add convert-to-mp3.py
This commit is contained in:
parent
e113e88e48
commit
e01b650a7b
13
convert-to-mp3.py
Executable file
13
convert-to-mp3.py
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
from subprocess import *
|
||||||
|
|
||||||
|
def main(argv):
|
||||||
|
for f in argv:
|
||||||
|
if os.path.isfile(f):
|
||||||
|
Popen(['lame', '-v', f, f + '.mp3']).wait()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main(sys.argv)
|
Loading…
x
Reference in New Issue
Block a user