diff --git a/Casks/v/vmware-horizon-client.rb b/Casks/v/vmware-horizon-client.rb index 290cce44c8..ae14ab08d3 100644 --- a/Casks/v/vmware-horizon-client.rb +++ b/Casks/v/vmware-horizon-client.rb @@ -10,8 +10,8 @@ cask "vmware-horizon-client" do livecheck do url "https://customerconnect.vmware.com/channel/public/api/v1.0/products/getRelatedDLGList?locale=en_US&category=desktop_end_user_computing&product=vmware_horizon_clients&version=horizon_8&dlgType=PRODUCT_BINARY" regex(%r{/([^/]+)/VMware[._-]Horizon[._-]Client[._-]v?(\d+(?:[.-]\d+)+)\.dmg}i) - strategy :page_match do |page| - mac_json_info = JSON.parse(page)["dlgEditionsLists"].select { |item| item["name"].match(/mac/i) }&.first + strategy :json do |json| + mac_json_info = json["dlgEditionsLists"]&.select { |item| item["name"].match(/mac/i) }&.first api_item = mac_json_info["dlgList"]&.first next if api_item.blank?