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

Commit

Permalink
vlc-nightly: update url do
Browse files Browse the repository at this point in the history
  • Loading branch information
miccal committed Oct 5, 2020
1 parent a594693 commit 005700a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Casks/vlc-nightly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

url do
require "open-uri"
base_url = "https://nightlies.videolan.org/build/macosx-intel/last/"
file = URI(base_url).open.read.scan(/href="([^"]+.dmg)"/).flatten.first
"#{base_url}#{file}"
base_url = "https://artifacts.videolan.org/vlc/nightly-macos/"
folder = URI(base_url).read[/\d+-\d+/]
updated_url = "#{base_url}#{folder}/"
file = URI.join(updated_url).open.read.match(/([^"]+.dmg)/).to_s
"#{updated_url}#{file}"
end
name "VLC media player"
desc "Open-source cross-platform multimedia player"
Expand Down

0 comments on commit 005700a

Please sign in to comment.