lint
This commit is contained in:
parent
a906e0b35f
commit
7428351d33
2 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue