Reference#
This section contains direct references to the code of ytdl-sub and information on
how it functions.
Terminology#
Must-know terminology:
subscription: URL(s) that you want to download with specific metadata requirements.preset: A media profile comprised of YAML configuration that can specify anything from metadata layout, media quality, or any feature of ytdl-sub, to apply to subscriptions. A preset can inherit other presets.prebuilt preset: Presets that are included in ytdl-sub. These do most of the work defining plugins, overrides, etc in order to make downloads ready for player consumption.override: Verb describing the act of overriding something in a preset. For example, the TV Show presets practically expect you to override the URL variable to tell ytdl-sub where to download from.override variables: User-defined variables that are intended to override something.subscription file: The file to specify all of your subscriptions and some override variables.
Intermediate terminology:
plugin: Modular logic to apply to a subscription. To use a plugin, it must be defined in a preset.config file: An optional file where you can define custom presets and other advanced configuration.yt-dlp: The underlying application that handles downloading for ytdl-sub.
Advanced terminology:
entry variables: Variables that derive from a downloaded yt-dlp entry (media).static variables: Variables that do not have a dependency to entry variables.scripting: Syntax that allows the use of entry variables, static variables, and functions in override variables.
- Configuration File
- Presets
- Subscription File
- Plugins
- Scripting
- Entry Variables
- Entry Variables
- channel
- channel_id
- chapters
- comments
- creator
- description
- duration
- epoch
- epoch_date
- epoch_hour
- ext
- extractor
- extractor_key
- height
- ie_key
- info_json_ext
- requested_subtitles
- sponsorblock_chapters
- thumbnail_ext
- title
- title_sanitized_plex
- uid
- uid_sanitized_plex
- uploader
- uploader_id
- uploader_url
- webpage_url
- width
- Metadata Variables
- Playlist Variables
- playlist_count
- playlist_description
- playlist_index
- playlist_index_padded
- playlist_index_padded6
- playlist_index_reversed
- playlist_index_reversed_padded
- playlist_index_reversed_padded6
- playlist_max_upload_date
- playlist_max_upload_year
- playlist_max_upload_year_truncated
- playlist_title
- playlist_uid
- playlist_uploader
- playlist_uploader_id
- playlist_uploader_url
- playlist_webpage_url
- Release Date Variables
- release_date
- release_date_standardized
- release_day
- release_day_of_year
- release_day_of_year_padded
- release_day_of_year_reversed
- release_day_of_year_reversed_padded
- release_day_padded
- release_day_reversed
- release_day_reversed_padded
- release_month
- release_month_padded
- release_month_reversed
- release_month_reversed_padded
- release_year
- release_year_truncated
- release_year_truncated_reversed
- Source Variables
- Upload Date Variables
- upload_date
- upload_date_standardized
- upload_day
- upload_day_of_year
- upload_day_of_year_padded
- upload_day_of_year_reversed
- upload_day_of_year_reversed_padded
- upload_day_padded
- upload_day_reversed
- upload_day_reversed_padded
- upload_month
- upload_month_padded
- upload_month_reversed
- upload_month_reversed_padded
- upload_year
- upload_year_truncated
- upload_year_truncated_reversed
- Ytdl-Sub Variables
- Entry Variables
- Static Variables
- Scripting Functions
- Scripting Types
- How it Works
- Advanced Scripting
- Entry Variables
- Prebuilt Preset Reference