class

EasySubtitle::Config

Inherits YAML::Serializable / Reference / Object

Constants

DEFAULT_SKIP_DIRS = ["new folder", "extra", "extra's", "extras", "featurettes", "bonus", "bonusmaterial", "bonus_material", "behindthescenes", "behind_the_scenes", "deletedscenes", "deleted_scenes", "interviews", "makingof", "making_of", "scenes", "trailer", "trailers", "sample", "samples", "other", "misc", "specials", "special_features", "documentary", "docs", "docu", "promo", "promos", "bloopers", "outtakes", "moved_subtitles"]
DEFAULT_UNWANTED_TERMS = ["sample", "cam", "ts", "workprint", "unrated", "uncut", "720p", "1080p", "2160p", "480p", "4k", "uhd", "imax", "web", "webrip", "web-dl", "bluray", "brrip", "bdrip", "dvdrip", "hdrip", "hdtv", "remux", "x264", "x265", "h.264", "h.265", "hevc", "avc", "hdr", "hdr10", "hdr10+", "dv", "dolby.vision", "sdr", "10bit", "8bit", "ddp", "dd+", "dts", "aac", "ac3", "eac3", "truehd", "atmos", "flac", "5.1", "7.1", "2.0", "yts", "yts.mx", "yify", "rarbg", "fgt", "galaxyrg", "evo", "sparks", "drones", "amiable", "tigole", "fitgirl", "xvid", "mp3"]

Constructors

default
Source
load(path : String) : Config
Source
load(path : Path) : Config
Source
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Class methods

default_path
Source
token_path
Source

Instance methods

api_key
Source
api_key=(api_key : String)
Source
api_url
Source
api_url=(api_url : String)
Source
audio_track_languages
Source
audio_track_languages=(audio_track_languages : Array(String))
Source
delete_extra_videos
Source
delete_extra_videos=(delete_extra_videos : Bool)
Source
download_retry_503
Source
download_retry_503=(download_retry_503 : Int32)
Source
extras_folder_name
Source
extras_folder_name=(extras_folder_name : String)
Source
languages
Source
languages=(languages : Array(String))
Source
last_resort_search
Source
last_resort_search=(last_resort_search : Bool)
Source
max_search_results
Source
max_search_results=(max_search_results : Int32)
Source
password
Source
password=(password : String)
Source
preserve_forced_subtitles
Source
preserve_forced_subtitles=(preserve_forced_subtitles : Bool)
Source
preserve_unwanted_subtitles
Source
preserve_unwanted_subtitles=(preserve_unwanted_subtitles : Bool)
Source
resync_mode
Source
resync_mode=(resync_mode : Bool)
Source
series_mode
Source
series_mode=(series_mode : Bool)
Source
skip_dirs
Source
skip_dirs=(skip_dirs : Array(String))
Source
smart_sync
Source
smart_sync=(smart_sync : Bool)
Source
sync_backend
Source
sync_backend=(sync_backend : String)
Source
to_yaml_string
Source
top_downloads
Source
top_downloads=(top_downloads : Int32)
Source
unwanted_terms
Source
unwanted_terms=(unwanted_terms : Array(String))
Source
use_movie_hash
Source
use_movie_hash=(use_movie_hash : Bool)
Source
username
Source
username=(username : String)
Source
validate!
Source
whisper_model
Source
whisper_model=(whisper_model : String)
Source