subs

package
v0.0.0-...-553c0ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subtitles

type Subtitles struct {
	*astisub.Subtitles
}

Subtitles represents a collection of subtitles corresponding to some media.

func OpenFile

func OpenFile(filename string, clean bool) (*Subtitles, error)

OpenFile opens the given subtitles file for reading.

func (*Subtitles) Translate

func (subs *Subtitles) Translate(item *astisub.Item) *astisub.Item

Translate generates a new subtitle from all subtitles which overlap with the given item.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL