added helper to get transcript type

This commit is contained in:
2019-03-08 21:26:56 -05:00
parent 82efb77ff2
commit 62ecfc9a72
3 changed files with 7 additions and 6294 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@ with open('README.md') as file:
setup(
name="tatt",
version="0.975",
version="0.976",
py_modules=['tatt'],
url='https://github.com/zevaverbach/tatt',
install_requires=[

View File

@@ -48,6 +48,12 @@ def get_transcript(job_name) -> tuple:
return transcript, service
def get_transcript_format(job_name) -> str:
job = get_job(job_name)
service = get_service(job['service_name'])
return service.transcript_type
def get_service(service_name) -> TranscriberBaseClass:
module = vendors.SERVICES[service_name]
return getattr(module, config.SERVICE_CLASS_NAME)