added helper to get transcript type
This commit is contained in:
File diff suppressed because it is too large
Load Diff
2
setup.py
2
setup.py
@@ -6,7 +6,7 @@ with open('README.md') as file:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="tatt",
|
name="tatt",
|
||||||
version="0.975",
|
version="0.976",
|
||||||
py_modules=['tatt'],
|
py_modules=['tatt'],
|
||||||
url='https://github.com/zevaverbach/tatt',
|
url='https://github.com/zevaverbach/tatt',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ def get_transcript(job_name) -> tuple:
|
|||||||
return transcript, service
|
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:
|
def get_service(service_name) -> TranscriberBaseClass:
|
||||||
module = vendors.SERVICES[service_name]
|
module = vendors.SERVICES[service_name]
|
||||||
return getattr(module, config.SERVICE_CLASS_NAME)
|
return getattr(module, config.SERVICE_CLASS_NAME)
|
||||||
|
|||||||
Reference in New Issue
Block a user