diff --git a/Casks/p/plex-htpc.rb b/Casks/p/plex-htpc.rb index f5165b3b5812..7ac02a5c6e38 100644 --- a/Casks/p/plex-htpc.rb +++ b/Casks/p/plex-htpc.rb @@ -9,9 +9,8 @@ livecheck do url "https://plex.tv/api/downloads/7.json" - regex(/"version"\s*:\s*"(\d(?:\.\d+)*)-([a-f0-9]{8})"/i) - strategy :page_match do |page, regex| - page.scan(regex).map { |match| "#{match[0]},#{match[1]}" } + strategy :json do |json| + json.dig("computer", "MacOS", "version")&.tr("-", ",") end end