diff --git a/docs/source/config_reference/scripting/entry_variables.rst b/docs/source/config_reference/scripting/entry_variables.rst index c3012408..8aa85ca6 100644 --- a/docs/source/config_reference/scripting/entry_variables.rst +++ b/docs/source/config_reference/scripting/entry_variables.rst @@ -192,7 +192,8 @@ source_metadata ~~~~~~~~~~~~~~~ :type: ``Map`` :description: - Metadata from the source (i.e. the grandparent metadata, like channel -> playlist -> entry) + Metadata from the source + (i.e. the grandparent metadata, like channel -> playlist -> entry) ---------------------------------------------------------------------------------------------------- diff --git a/src/ytdl_sub/entries/script/variable_definitions.py b/src/ytdl_sub/entries/script/variable_definitions.py index 43ae6857..d06b015f 100644 --- a/src/ytdl_sub/entries/script/variable_definitions.py +++ b/src/ytdl_sub/entries/script/variable_definitions.py @@ -84,9 +84,7 @@ class PlaylistVariableDefinitions(ABC): :description: Name of its parent playlist/channel if it exists, otherwise returns its title. """ - return StringMetadataVariable.from_entry( - metadata_key="playlist_title", default=self.title - ) + return StringMetadataVariable.from_entry(metadata_key="playlist_title", default=self.title) @cached_property def playlist_index(self: "VariableDefinitions") -> IntegerMetadataVariable: