Skip to content

Commit

Permalink
Changed: Let's fix the API issue that NPO has and not show items that…
Browse files Browse the repository at this point in the history
… should not be free due to time restrictions.
  • Loading branch information
basrieter committed Nov 19, 2023
1 parent 21e892d commit 7d81014
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion channels/channel.nos/nos2010/chn_nos2010.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,10 @@ def create_api_episode_item(self, result_set: dict, show_info: bool = False) ->
till = DateHelper.get_date_from_posix(till_stamp, tz=pytz.UTC)
if till_stamp and till < datetime.datetime.now(tz=pytz.UTC):
item.isPaid = True
break
# break
# Due to a bug in the NPO API, this content could be viewed for free.
# for now we just don't show it.
return None
item.isPaid = False
# Always stop after a "free"
break
Expand Down

0 comments on commit 7d81014

Please sign in to comment.