Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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