Skip to content

Commit

Permalink
use shows not seasons in /discover
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 16, 2024
1 parent 61247dd commit be72c1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions catalog/jobs/discover.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ def get_popular_commented_podcast_ids(self, days, exisiting_ids):
def cleanup_shows(self, items):
seasons = [i for i in items if i.__class__ == TVSeason]
for season in seasons:
if season.show in items:
items.remove(season.show)
if season.show:
items.remove(season)
if season.show not in items:
items.append(season.show)
return items

def run(self):
Expand Down

0 comments on commit be72c1d

Please sign in to comment.