Skip to content

Commit

Permalink
Merge pull request #185791 from Homebrew/update-logitune
Browse files Browse the repository at this point in the history
logitune: update livecheck
  • Loading branch information
chenrui333 committed Sep 18, 2024
2 parents 8a21ee2 + c7f28cd commit 6ca9712
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Casks/l/logitune.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
homepage "https://www.logitech.com/en-us/video-collaboration/software/logi-tune-software.html"

livecheck do
url :url
strategy :extract_plist
url "https://prosupport.logi.com/api/v2/help_center/de/articles.json?label_names=webcontent=productdownload,webproduct=bad331b5-1feb-11ea-ae1b-a561623ae541"
regex(/Software[\s-]Version:.*?v?(\d+(?:\.\d+)+)/i)
strategy :json do |json, regex|
json["articles"]&.map { |item| item["body"][regex, 1] }
end
end

auto_updates true
Expand Down

0 comments on commit 6ca9712

Please sign in to comment.