Add support for description for update_playlist
@@ -627,7 +627,7 @@ def same_list(list_a: List[Movie | Show | Episode], list_b: List[Movie | Show |
return a == b
@nocache
- def update_playlist(self, name: str, items: List[Union[Movie, Show, Episode]]) -> bool:
+ def update_playlist(self, name: str, items: List[Union[Movie, Show, Episode]], description=None) -> bool:
"""
Updates playlist (creates if name missing) replacing contents with items[]
"""
@@ -642,6 +642,9 @@ def update_playlist(self, name: str, items: List[Union[Movie, Show, Episode]]) -
if playlist is None:
return False
+ if description is not None:
+ playlist.edit(summary=description)
+
# Skip if nothing to update
if self.same_list(items, playlist.items()):
return False
