cask "mediahuman-youtube-downloader" do
  version "3.9.9.87"
  sha256 :no_check

  url "https://www.mediahuman.net/files/YouTubeDownloader.dmg"
  name "MediaHuman YouTube Downloader"
  desc "YouTube videos downloader"
  homepage "https://www.mediahuman.net/youtube-video-downloader/"

  livecheck do
    url :homepage
    regex(/Version:.*?(\d+(?:\.\d+)+)/i)
  end

  auto_updates true

  app "MediaHuman YouTube Downloader.app"

  zap trash: [
    "~/Library/Saved Application State/com.mediahuman.YouTube Downloader.savedState",
    "~/Library/Preferences/com.mediahuman.YouTube Downloader.plist",
  ]
end
