From 8a988d63afa313ecb6f0b8bab505897cba74e972 Mon Sep 17 00:00:00 2001 From: Ld-Hagen Date: Thu, 16 Sep 2021 20:56:02 +0300 Subject: [PATCH 1/4] Using alternative link for ffmpeg --- fix-opera.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix-opera.sh b/fix-opera.sh index 8c98e06..b941f59 100755 --- a/fix-opera.sh +++ b/fix-opera.sh @@ -15,7 +15,7 @@ readonly OPERA_FILE="$OPERA_FOLDER$FILE_NAME" readonly FIX_WIDEVINE=true readonly CHROME_DL_LINK="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" -readonly GIT_API=https://api.github.com/repos/iteufel/nwjs-ffmpeg-prebuilt/releases +readonly GIT_API=https://api.github.com/repos/Ld-Hagen/fix-opera-linux-ffmpeg-widevine/releases printf '\nGetting Url ...\n' From 755b753e9b7375cf8d319591473100db51d977ef Mon Sep 17 00:00:00 2001 From: Maksim Ivanov <34414986+Ld-Hagen@users.noreply.github.com> Date: Thu, 16 Sep 2021 21:06:24 +0300 Subject: [PATCH 2/4] Update readme for alt-ffmpeg branch --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 181951c..c232654 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,11 @@ ### How use -1. Clone this repo +1. Clone this repo and switch barnch ```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git``` + + ````git checkout alt-ffmpeg``` 2. Go to the repo root folder From ececb7206e43919627516b192445c7c7d8493dda Mon Sep 17 00:00:00 2001 From: Ld-Hagen Date: Thu, 16 Sep 2021 21:31:15 +0300 Subject: [PATCH 3/4] Auto-select ffmpeg source --- fix-opera.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fix-opera.sh b/fix-opera.sh index b941f59..56edb73 100755 --- a/fix-opera.sh +++ b/fix-opera.sh @@ -15,11 +15,20 @@ readonly OPERA_FILE="$OPERA_FOLDER$FILE_NAME" readonly FIX_WIDEVINE=true readonly CHROME_DL_LINK="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" -readonly GIT_API=https://api.github.com/repos/Ld-Hagen/fix-opera-linux-ffmpeg-widevine/releases +readonly GIT_API_MAIN=https://api.github.com/repos/iteufel/nwjs-ffmpeg-prebuilt/releases +readonly GIT_API_ALT=https://api.github.com/repos/Ld-Hagen/fix-opera-linux-ffmpeg-widevine/releases printf '\nGetting Url ...\n' -readonly OPERA_FFMPEG_URL=$(curl -s $GIT_API | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) +readonly OPERA_FFMPEG_URL_MAIN=$(curl -s $GIT_API_MAIN | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) +readonly OPERA_FFMPEG_URL_ALT=$(curl -s $GIT_API_ALT | grep browser_download_url | cut -d '"' -f 4 | grep linux-x64 | head -n 1) + +if [ `basename $OPERA_FFMPEG_URL_MAIN` -ge `basename $OPERA_FFMPEG_URL_ALT` ] + then + readonly OPERA_FFMPEG_URL=$OPERA_FFMPEG_URL_MAIN + else + readonly OPERA_FFMPEG_URL=$OPERA_FFMPEG_URL_ALT +fi printf '\nDownloading ffmpeg ...\n' From 1f469e262ce607e090ff7300e174ccf53a719fd5 Mon Sep 17 00:00:00 2001 From: Ld-Hagen Date: Thu, 16 Sep 2021 21:34:06 +0300 Subject: [PATCH 4/4] Added alternative download source for ffmpeg --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index c232654..44e3f53 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,10 @@ ### How use -1. Clone this repo and switch barnch +1. Clone this repo ```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git``` - ````git checkout alt-ffmpeg``` - 2. Go to the repo root folder ```cd ./fix-opera-linux-ffmpeg-widevine```