fix index
This commit is contained in:
parent
6ca7692488
commit
6bfb6b368a
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class EntryParent(BaseEntry):
|
||||||
|
|
||||||
def _playlist_variables(self, idx: int, children: List[TBaseEntry], parent_type: str) -> Dict:
|
def _playlist_variables(self, idx: int, children: List[TBaseEntry], parent_type: str) -> Dict:
|
||||||
_count = self.kwargs_get("playlist_count", len(children))
|
_count = self.kwargs_get("playlist_count", len(children))
|
||||||
_index = (children[idx].kwargs_get("playlist_index", idx + 1),)
|
_index = children[idx].kwargs_get("playlist_index", idx + 1)
|
||||||
|
|
||||||
if parent_type == ParentType.SOURCE:
|
if parent_type == ParentType.SOURCE:
|
||||||
return {"source_index": _index, "source_count": _count}
|
return {"source_index": _index, "source_count": _count}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue