Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
propresenter-beta: update livecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed Oct 13, 2021
1 parent 7db6a5e commit 159c795
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Casks/propresenter-beta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

livecheck do
url "https://api.renewedvision.com/v1/pro/upgrade?platform=macos&osVersion=0&appVersion=0&buildNumber=0&includeNotes=0&channel=beta"
strategy :page_match do |page|
match = page.match(%r{/ProPresenter_(\d+(?:\.\d+)*)_(\d+)\.zip}i)
regex(%r{/ProPresenter_(\d+(?:\.\d+)*)_(\d+)\.zip}i)
strategy :page_match do |page, regex|
match = page.match(regex)
next if match.blank?

"#{match[1]},#{match[2]}"
end
end
Expand Down

0 comments on commit 159c795

Please sign in to comment.