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``
: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:
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: