Skip to content

Commit

Permalink
plex-htpc: update livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
khipp committed Oct 18, 2024
1 parent b4a184f commit c4b4280
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Casks/p/plex-htpc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c4b4280

Please sign in to comment.