Skip to content

Commit

Permalink
Fix edge case where API request fails for existing play_data
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Jan 10, 2024
1 parent 1092f3b commit d770077
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ def get_videos(self,
playback_history = self._context.get_playback_history()
played_items = playback_history.get_items(ids)
for video_id, play_data in played_items.items():
result[video_id]['play_data'] = play_data
if video_id in result:
result[video_id]['play_data'] = play_data

return result

Expand Down

0 comments on commit d770077

Please sign in to comment.