This commit is contained in:
Jesse Bannon 2023-12-29 14:27:28 -08:00
parent a906e0b35f
commit 7428351d33
2 changed files with 3 additions and 4 deletions

View file

@ -192,7 +192,8 @@ source_metadata
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
:type: ``Map`` :type: ``Map``
:description: :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)
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------

View file

@ -84,9 +84,7 @@ class PlaylistVariableDefinitions(ABC):
:description: :description:
Name of its parent playlist/channel if it exists, otherwise returns its title. Name of its parent playlist/channel if it exists, otherwise returns its title.
""" """
return StringMetadataVariable.from_entry( return StringMetadataVariable.from_entry(metadata_key="playlist_title", default=self.title)
metadata_key="playlist_title", default=self.title
)
@cached_property @cached_property
def playlist_index(self: "VariableDefinitions") -> IntegerMetadataVariable: def playlist_index(self: "VariableDefinitions") -> IntegerMetadataVariable: