pub struct SubtitleResult {Show 14 fields
pub id: String,
pub source: String,
pub release: String,
pub language: String,
pub format: Option<String>,
pub fps_milli: Option<u32>,
pub downloads: u64,
pub rating: Option<u8>,
pub hearing_impaired: bool,
pub forced: bool,
pub origin: SubtitleOrigin,
pub hash_match: bool,
pub rejected: bool,
pub downloaded: bool,
}Expand description
One subtitle a search found, to download by its id.
Fields§
§id: StringWhat DownloadSubtitle names: the site’s id and its file’s,
opensubtitles:5338574, subdl:3172974-3188291. Opaque to a
client.
source: StringThe site it was found on: opensubtitles (OpenSubtitles) or
subdl (SubDL); a client shows another as it is.
release: StringThe release it was made for, as its uploader named it.
language: StringIts language, as the site says it: en, pt-BR.
format: Option<String>srt, ass, vtt, or what the site says.
fps_milli: Option<u32>The frame rate it was made for, in thousandths: 23 976.
downloads: u64How many times it was downloaded on the site; 0 where the site does not say (SubDL).
rating: Option<u8>Its rating on the site, 0 to 100 (tenths of its 0 to 10); None
while unrated.
hearing_impaired: bool§forced: boolOnly the parts in another language than the rest (signs, a foreign line): a forced subtitle, not the whole dialogue. False where the site does not say (SubDL).
origin: SubtitleOrigin§hash_match: boolFound by the file’s hash: made for this very release, and played as it is, not synced.
rejected: boolDownloaded before and removed as bad: listed last.
downloaded: boolDownloaded already: a download gives the same track.