unused arg
This commit is contained in:
parent
1de0c69223
commit
95bc839294
1 changed files with 2 additions and 4 deletions
|
|
@ -144,9 +144,7 @@ class EntryParent(BaseEntry):
|
||||||
return self.uid == playlist_id or any(item in child for child in self.parent_children())
|
return self.uid == playlist_id or any(item in child for child in self.parent_children())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_disconnected_root_parent(
|
def _get_disconnected_root_parent(cls, parents: List["EntryParent"]) -> Optional["EntryParent"]:
|
||||||
cls, url: str, parents: List["EntryParent"]
|
|
||||||
) -> Optional["EntryParent"]:
|
|
||||||
"""
|
"""
|
||||||
Sometimes the root-level parent is disconnected via playlist_ids Find it if it exists.
|
Sometimes the root-level parent is disconnected via playlist_ids Find it if it exists.
|
||||||
"""
|
"""
|
||||||
|
|
@ -200,7 +198,7 @@ class EntryParent(BaseEntry):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
# If a disconnected root parent exists, connect it here
|
# If a disconnected root parent exists, connect it here
|
||||||
if (root_parent := cls._get_disconnected_root_parent(url, parents)) is not None:
|
if (root_parent := cls._get_disconnected_root_parent(parents)) is not None:
|
||||||
parents.remove(root_parent)
|
parents.remove(root_parent)
|
||||||
root_parent._parent_children = parents
|
root_parent._parent_children = parents
|
||||||
parents = [root_parent]
|
parents = [root_parent]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue