diff --git a/README.md b/README.md index dcdf6b8..7829f8e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Fix Opera Linux ffmpeg +# Fix Opera Linux ffmpeg & WidevineCdm -* Fix Opera html5 media content. +* Fix Opera html5 media content * It script must be execute all times opera will fails on showing html5 media content. * Now it also fixes WidevineCdm support for DRM video. You can try it on Vevo youtube channel for example. @@ -16,8 +16,8 @@ 1. **wget** (Is needed for downloading the ffmpeg lib and Chrome) ```sudo apt install wget``` -2. **unzip** (Is needed for unzipping the downloaded file) - ```sudo apt install unzip``` +2. **unzip**, **binutils** (Is needed for unpacking the downloaded file) + ```sudo apt install unzip binutils``` ### How use @@ -66,7 +66,7 @@ 7. Delete the repo ```rm -rf ./fix-opera-linux-ffmpeg-widevine``` -### Autostart after upgrade +### Autostart after upgrade (Debian-based distros) 1. Clone this repo @@ -92,6 +92,10 @@ ```sudo ln -s /root/.scripts/99fix-opera /etc/apt/apt.conf.d/``` -7. Delete the repo +7. (Optional) Create an **alias** + + ```echo "alias fix-opera='sudo /root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> ~/.bashrc``` + +8. Delete the repo ```rm -rf ./fix-opera-linux-ffmpeg-widevine``` diff --git a/fix-opera.sh b/fix-opera.sh index d2e29f3..30b5ca8 100755 --- a/fix-opera.sh +++ b/fix-opera.sh @@ -51,11 +51,14 @@ if $FIX_WIDEVINE rm -rf "$OPERA_FOLDER/lib_extra" mkdir "$OPERA_FOLDER/lib_extra" printf "\nDownloading Google Chrome ...\n" - wget -P "$TEMP_FOLDER" "$CHROME_DL_LINK" + mkdir "$TEMP_FOLDER/chrome" + cd "$TEMP_FOLDER/chrome" + wget "$CHROME_DL_LINK" printf "\nExtracting Chrome to temporary folder ...\n" CHROME_PKG_NAME=`basename $CHROME_DL_LINK` - dpkg -x "$TEMP_FOLDER/$CHROME_PKG_NAME" "$TEMP_FOLDER/chrome" + ar x "$CHROME_PKG_NAME" + tar xf data.tar.xz printf "\nInstalling WidevineCdm ...\n" cp -R "$TEMP_FOLDER/chrome/opt/google/chrome/WidevineCdm" "$OPERA_FOLDER/lib_extra/" @@ -63,7 +66,6 @@ if $FIX_WIDEVINE printf "\nDeleting temprorary files ...\n" rm -rf "$TEMP_FOLDER/chrome" - rm "$TEMP_FOLDER/$CHROME_PKG_NAME" else printf "\nInstalling WidevineCdm skipped\n" fi