We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f1e787 commit 08d5288Copy full SHA for 08d5288
1 file changed
scripts/load_baseball_game_threads.rb
@@ -33,7 +33,8 @@ def post_at
33
end
34
35
def national_game_title(game)
36
- national_broadcast = game['broadcasts']&.find { it.dig('availability', 'availabilityCode') == 'national' }
+ national_broadcast = game['broadcasts']
37
+ &.find { %w[national exclusive].include?(it.dig('availability', 'availabilityCode')) }
38
39
return format(TITLE, call_sign: national_broadcast['callSign']) if national_broadcast
40
0 commit comments