mirror of
https://github.com/AnimeThemes/animethemes-batch-encoder.git
synced 2026-07-11 01:24:29 +02:00
19 lines
693 B
Python
19 lines
693 B
Python
# The seek information for our encode
|
|
class Seek:
|
|
def __init__(self, source_file, ss, to, output_name):
|
|
self.source_file = source_file
|
|
self.ss = ss
|
|
self.to = to
|
|
self.output_name = output_name
|
|
|
|
# The seek string arguments for our encode
|
|
def get_seek_string(self):
|
|
if len(self.ss) > 0 and len(self.to) > 0:
|
|
return f'-ss {self.ss} -to {self.to} -i "{self.source_file.file}"'
|
|
elif len(self.ss) > 0:
|
|
return f'-ss {self.ss} -i "{self.source_file.file}"'
|
|
elif len(self.to) > 0:
|
|
return f'-i "{self.source_file.file}" -to {self.to}'
|
|
else:
|
|
return f'-i "{self.source_file.file}"'
|