srt.tools.fixed_timeshift

Shifts subtitles by a fixed number of seconds.

timeshift(subtitles, seconds_to_shift)

Performs a fixed timeshift on given subtitles.

Parameters
  • subtitlesSubtitle objects

  • seconds_to_shift (float) – The amount of seconds to shift.

Return type

generator of Subtitle objects