more simplifying
This commit is contained in:
parent
111357934e
commit
a4dc39e706
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user