mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 11:33:00 +03:00
Compare commits
1 Commits
main
...
nwjs-ffmpe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
329b429005 |
13
README.md
13
README.md
@@ -1,8 +1,8 @@
|
|||||||
# Fix Opera Linux ffmpeg & WidevineCdm
|
# Fix Opera Linux libffmpeg & WidevineCdm
|
||||||
|
|
||||||
* Fix Opera html5 media content including DRM-protected one.
|
* Fixes Opera html5 media content including DRM-protected one.
|
||||||
* It script must be execute all times opera will fails on showing html5 media content.
|
* This script must be executed all times opera fails on showing html5 media content.
|
||||||
* On Debian-based and Arch-based distros it may be started automatically after Opera update.
|
* On Debian-based and Arch-based distributions it could be started automatically after Opera each update or reinstall.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
@@ -12,9 +12,12 @@
|
|||||||
2. **unzip** (Is needed for unpacking the downloaded file)
|
2. **unzip** (Is needed for unpacking the downloaded file)
|
||||||
```sudo apt install unzip```
|
```sudo apt install unzip```
|
||||||
|
|
||||||
|
2. **git** (Is needed for fetching this script)
|
||||||
|
```sudo apt install git```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. Clone this repo and
|
1. Clone this repo
|
||||||
|
|
||||||
```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git```
|
```git clone https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git```
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ create_hook ()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
ptintf 'Installing script to ypur system...\n'
|
ptintf 'Installing script to your system...\n'
|
||||||
|
|
||||||
printf 'Would you like to apply Widevine CDM fix? [y/n]'
|
printf 'Would you like to apply Widevine CDM fix? [y/n]'
|
||||||
while read FIX_WIDEVINE; do
|
while read FIX_WIDEVINE; do
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
DPkg::Pre-Invoke {"stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera > /tmp/opera.timestamp";};
|
DPkg::Pre-Invoke {"stat -c %Z $(readlink -f $(which opera)) > /tmp/opera.timestamp";};
|
||||||
DPkg::Post-Invoke {"if [ `stat -c %Z /usr/lib/x86_64-linux-gnu/opera/opera` -ne `cat /tmp/opera.timestamp` ]; then /root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp";};
|
DPkg::Post-Invoke {"if [ `stat -c %Z $(readlink -f $(which opera))` -ne `cat /tmp/opera.timestamp` ]; then /root/.scripts/fix-opera.sh; fi; rm /tmp/opera.timestamp";};
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ if $FIX_WIDEVINE; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#Moving libraries to its place
|
#Moving libraries to its place
|
||||||
printf 'Moving libraries to its place...\n'
|
printf 'Moving libraries to their places...\n'
|
||||||
##ffmpeg
|
##ffmpeg
|
||||||
mv -f "$TEMP_DIR/opera-fix/$FFMPEG_SO_NAME" "$OPERA_LIB_DIR"
|
mv -f "$TEMP_DIR/opera-fix/$FFMPEG_SO_NAME" "$OPERA_LIB_DIR"
|
||||||
chmod 0644 "$OPERA_LIB_DIR/$FFMPEG_SO_NAME"
|
chmod 0644 "$OPERA_LIB_DIR/$FFMPEG_SO_NAME"
|
||||||
@@ -105,6 +105,6 @@ if $FIX_WIDEVINE; then
|
|||||||
printf "[\n {\n \"preload\": \"$OPERA_WIDEVINE_DIR\"\n }\n]\n" > "$OPERA_WIDEVINE_CONFIG"
|
printf "[\n {\n \"preload\": \"$OPERA_WIDEVINE_DIR\"\n }\n]\n" > "$OPERA_WIDEVINE_CONFIG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Removing temprary files
|
#Removing temporary files
|
||||||
printf 'Removing temprary files...\n'
|
printf 'Removing temporary files...\n'
|
||||||
rm -rf "$TEMP_DIR/opera-fix"
|
rm -rf "$TEMP_DIR/opera-fix"
|
||||||
|
|||||||
Reference in New Issue
Block a user