fix usage

This commit is contained in:
j 2023-07-28 17:09:34 +02:00
parent f821af6303
commit f107727434

View file

@ -937,12 +937,12 @@ class Client(object):
def import_srt(self, args):
'''
import srt as annotations, usage:
pandora_client ITEMID layername /path/to/transcript.srt
pandora_client import_srt ITEMID layername /path/to/transcript.srt
i.e.
pandora_client ABC transcripts /path/to/transcript.srt
pandora_client ipmort_srt ABC transcripts /path/to/transcript.srt
'''
if not args:
print('Usage: pandora_client ABC transcripts /path/to/transcript.srt')
print('Usage: pandora_client import_srt ABC transcripts /path/to/transcript.srt')
sys.exit(1)
item = args[0]
layer = args[1]