#184 fix for sort_by_date returning None

This commit is contained in:
blacktwin 2019-09-07 23:31:21 -04:00
parent 5d8d40d6ee
commit 438673df66

View File

@ -459,8 +459,9 @@ def get_content(libraries, jbop, filters=None, search=None, limit=None):
for child in plex_library.all():
for episode in child.episodes():
if jbop.startswith("history"):
item_date = sort_by_dates(episode, jbop)
child_lst += item_date
if sort_by_dates(episode, jbop):
item_date = sort_by_dates(episode, jbop)
child_lst += item_date
else:
child_lst += [episode.ratingKey]
else: