{"id":22,"date":"2020-04-30T18:29:17","date_gmt":"2020-04-30T16:29:17","guid":{"rendered":"http:\/\/bilbo-b.wks20.de\/?p=22"},"modified":"2020-04-30T18:29:17","modified_gmt":"2020-04-30T16:29:17","slug":"update-the-makemkv-beta-key-on-a-mac","status":"publish","type":"post","link":"https:\/\/qlch.de\/blog\/2020\/04\/30\/update-the-makemkv-beta-key-on-a-mac\/","title":{"rendered":"update MakeMKV beta-key on a Mac"},"content":{"rendered":"\n<p>During the beta phase (now ongoing since 2010) a beta key to use MakeMKV without paying a license fee is available in the forum. It usually expires every few weeks and has to be renewed.<br>I found several scripts and that updated the key on other platforms, in docker-containers or such, but none of them for a Mac. So I started my own. Thanks to @schiermi for providing the right regex for sed (I previously had to use gnu-grep -P from homebrew to adapt a different regex, but rather stick with tools that are part of MacOS):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SETTINGS=~\/Library\/MakeMKV\/settings.conf\ncp $SETTINGS $SETTINGS.bak\nKEY=$(curl --silent 'https:\/\/forum.makemkv.com\/forum\/viewtopic.php?f=5&amp;t=1053' | sed -n '\/code\/ { s\/.*&lt;code&gt;\/\/; s\/&lt;.code&gt;.*\/\/; p; }')\nOKEY=$(grep 'app_Key' $SETTINGS| cut -d\\\" -f2)\nif &#91; \"$KEY\" = \"$OKEY\" ]\nthen\n#\techo \"Keys identisch\"\n\texit 0\nelse\n\tgrep -v 'app_Key' $SETTINGS &gt; $SETTINGS.tmp\n\techo 'app_Key = \"'$KEY'\"' &gt;&gt;$SETTINGS.tmp\n\tmv $SETTINGS.tmp $SETTINGS\nfi<\/code><\/pre>\n\n\n\n<p>Careful: the script is not thoroughly tested, but works ok here. Feedback highly appreciated. Make sure after copying the script that the line starting with &#8220;OKEY&#8221; directly follows the line starting with &#8220;KEY&#8221;, no line breaks in between.<\/p>\n\n\n\n<p>Dec 21st, 2022: had to update the URL to the forum-post<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the beta phase (now ongoing since 2010) a beta key to use MakeMKV without paying a license fee is available in the forum. It usually expires every few weeks and has to be renewed.I found several scripts and that updated the key on other platforms, in docker-containers or such, but none of them for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,4,6],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-macos","tag-makemkv","tag-rip"],"_links":{"self":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qlch.de\/blog\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}