Skip to content

Commit

Permalink
remove metadata error
Browse files Browse the repository at this point in the history
  • Loading branch information
maykar authored Nov 10, 2020
1 parent 2303323 commit 5ad747f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/plex_recently_added/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ async def async_update(self):
try:
self.api_json += sub_sec['MediaContainer']['Metadata']
except:
_LOGGER.warning('No Metadata field for "{}"'.format(
sub_sec['MediaContainer']['librarySectionTitle']))
pass
self.api_json = sorted(self.api_json, key=lambda i: i['addedAt'],
reverse=True)[:self.max_items]
Expand Down

0 comments on commit 5ad747f

Please sign in to comment.