Skip to content

Instantly share code, notes, and snippets.

@nosada
Created May 16, 2021 04:35
Show Gist options
  • Save nosada/3ff63fbb27a2f13f3d0d2e2d04a3b568 to your computer and use it in GitHub Desktop.
Save nosada/3ff63fbb27a2f13f3d0d2e2d04a3b568 to your computer and use it in GitHub Desktop.
Update MakeMKV beta license key
#!/bin/bash
MAKEMKV_CONF=$HOME/.MakeMKV/settings.conf
LICENSE_PAGE_URL='https://forum.makemkv.com/forum/viewtopic.php?t=1053'
NEW_KEY=$(curl -sS "$LICENSE_PAGE_URL" | grep 'The current beta key' | sed -e 's/.*<code>\(.*\)<\/code>.*/\1/g')
sed -e '/app_Key/d' -i "$MAKEMKV_CONF"
echo "app_Key = \"$NEW_KEY\"" >> "$MAKEMKV_CONF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment