Fixed hardcoded list options
parent
d89b33f8cb
commit
45f7309448
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
from .common import log_message
|
from .common import log_message
|
||||||
from .decode import SSTVDecoder
|
from .decode import SSTVDecoder
|
||||||
|
from .spec import VIS_MAP
|
||||||
|
from PIL import Image
|
||||||
|
from soundfile import available_formats as available_audio_formats
|
||||||
from sys import exit
|
from sys import exit
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
@ -105,13 +108,14 @@ examples:
|
||||||
self._audio_file.close()
|
self._audio_file.close()
|
||||||
|
|
||||||
def list_supported_modes(self):
|
def list_supported_modes(self):
|
||||||
# FIXME hardcode
|
modes = ', '.join([fmt.NAME for fmt in VIS_MAP.values()])
|
||||||
print("M1, S1")
|
log_message("Supported modes: {}".format(modes))
|
||||||
|
|
||||||
def list_supported_audio_formats(self):
|
def list_supported_audio_formats(self):
|
||||||
# FIXME hardcode
|
audio_formats = ', '.join(available_audio_formats().keys())
|
||||||
print("ogg, wav")
|
log_message("Supported audio formats: {}".format(audio_formats))
|
||||||
|
|
||||||
def list_supported_image_formats(self):
|
def list_supported_image_formats(self):
|
||||||
# FIXME hardcode
|
Image.init()
|
||||||
print("png, jpeg")
|
image_formats = ', '.join(Image.SAVE.keys())
|
||||||
|
log_message("Supported image formats: {}".format(image_formats))
|
||||||
|
|
Loading…
Reference in New Issue