move to baseentry
This commit is contained in:
parent
357b3401d5
commit
a4a743c84d
1 changed files with 14 additions and 14 deletions
|
|
@ -82,20 +82,6 @@ class BaseEntryVariables:
|
||||||
"""
|
"""
|
||||||
return "info.json"
|
return "info.json"
|
||||||
|
|
||||||
def base_variable_dict(self) -> Dict[str, str]:
|
|
||||||
"""
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
BaseEntry variables that can be nested for playlist, source, etc
|
|
||||||
"""
|
|
||||||
return {
|
|
||||||
"uid": self.uid,
|
|
||||||
"extractor": self.extractor,
|
|
||||||
"title": self.title,
|
|
||||||
"title_sanitized": self.title_sanitized,
|
|
||||||
"webpage_url": self.webpage_url,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# pylint: enable=no-member
|
# pylint: enable=no-member
|
||||||
|
|
||||||
|
|
@ -124,6 +110,20 @@ class BaseEntry(BaseEntryVariables, ABC):
|
||||||
|
|
||||||
self._additional_variables: Dict[str, str | int] = {}
|
self._additional_variables: Dict[str, str | int] = {}
|
||||||
|
|
||||||
|
def base_variable_dict(self) -> Dict[str, str]:
|
||||||
|
"""
|
||||||
|
Returns
|
||||||
|
-------
|
||||||
|
BaseEntry variables that can be nested for playlist, source, etc
|
||||||
|
"""
|
||||||
|
return {
|
||||||
|
"uid": self.uid,
|
||||||
|
"extractor": self.extractor,
|
||||||
|
"title": self.title,
|
||||||
|
"title_sanitized": self.title_sanitized,
|
||||||
|
"webpage_url": self.webpage_url,
|
||||||
|
}
|
||||||
|
|
||||||
def kwargs_contains(self, key: str) -> bool:
|
def kwargs_contains(self, key: str) -> bool:
|
||||||
"""Returns whether internal kwargs contains the specified key"""
|
"""Returns whether internal kwargs contains the specified key"""
|
||||||
return key in self._kwargs
|
return key in self._kwargs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue