srt.tools.paste¶
Paste subtitles into other subtitles at a given timestamp.
- paste(subs, copy, timestamp, space=datetime.timedelta(0), block=False)¶
Pastes subtitles into other subtitles at a given timestamp.
- Parameters
subs –
Subtitle
objectscopy – The
Subtitle
objects to be pasted.timestamp (datetime.timedelta) – The timestamp to paste at.
space (datetime.timedelta) – The amount of space to precede the paste.
block (boolean) – Whether to paste the copied subtitles as a block and adjust the timestamps of subsequent subtitles.
- Return type
generator of
Subtitle
objects