Merge branch 'master' of github.com:LukeSmithxyz/voidrice
This commit is contained in:
commit
a360fadd5f
2 changed files with 5 additions and 2 deletions
|
@ -16,5 +16,8 @@ IFS='
|
||||||
|
|
||||||
# Update each found profile.
|
# Update each found profile.
|
||||||
for profile in $profiles; do
|
for profile in $profiles; do
|
||||||
arkenfox-updater -p "${profile%%/user.js*}" -s
|
userjs=${profile%%/user.js*}
|
||||||
|
user=$(stat -c '%U' "$userjs") || continue
|
||||||
|
|
||||||
|
su -l "$user" -c "arkenfox-updater -c -p $userjs -s"
|
||||||
done
|
done
|
||||||
|
|
|
@ -15,7 +15,7 @@ fi
|
||||||
case "$url" in
|
case "$url" in
|
||||||
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
|
||||||
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
|
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
|
||||||
*png|*jpg|*jpe|*jpeg|*gif)
|
*png|*jpg|*jpe|*jpeg|*gif|*webp)
|
||||||
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && nsxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
||||||
*pdf|*cbz|*cbr)
|
*pdf|*cbz|*cbr)
|
||||||
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
|
||||||
|
|
Loading…
Reference in a new issue