Skip to content

Commit

Permalink
Fix EPG parser (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaminister authored Jul 26, 2023
1 parent fda8188 commit a9bfc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/solocoo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def parse_epg_capi(program, tenant):

# Parse credits
credit_list = []
for credit in program.get('credits', []):
for credit in program.get('credits', []) or []:
if not credit.get('r'): # Actor
credit_list.append(Credit(role=Credit.ROLE_ACTOR, person=credit.get('p'), character=credit.get('c')))
elif credit.get('r') == 1: # Director
Expand Down

0 comments on commit a9bfc5a

Please sign in to comment.