From a4dc39e706fc4a26e0734ad68606b7bf3365c9e9 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Thu, 21 Apr 2022 14:06:44 -0400 Subject: [PATCH] more simplifying --- fun/playlist_manager.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fun/playlist_manager.py b/fun/playlist_manager.py index 933fb42..726c498 100644 --- a/fun/playlist_manager.py +++ b/fun/playlist_manager.py @@ -955,10 +955,7 @@ if __name__ == "__main__": playlists = data['all_playlists'] for pl in playlists: pl_dict = {'items': []} - pl_dict.update(vars(pl)) - for k in list(pl_dict): - if k.startswith('_'): - del pl_dict[k] + pl_dict['title'] = pl.title items = plex.fetchItem(pl.ratingKey).items() for item in items: item_dict = export_min(item)