lib/sportradar/api/images.rb in sportradar-api-0.9.15 vs lib/sportradar/api/images.rb in sportradar-api-0.9.16
- old
+ new
@@ -12,10 +12,14 @@
@access_level = access_level
end
def player_manifests(year = Date.today.year)
if league
- response = get request_url("#{league}/#{image_type}/players/#{year}/manifest")
+ if year != Date.today.year
+ response = get request_url("#{league}/#{image_type}/players/#{year}/manifest")
+ else
+ response = get request_url("#{league}/#{image_type}/players/manifest")
+ end
elsif nfl_premium
response = get request_url("#{image_type}/players/#{year}/manifest")
else
response = get request_url("players/#{image_type}/manifests/all_assets")
end