1
0
Fork 0

Add support for paste.ee to readwwwlog

This commit is contained in:
tastytea 2022-04-27 15:09:08 +02:00
parent b252ce4ec5
commit f75cb91d0d
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,9 @@ for url in ${urls}; do
url="https://bpa.st/download-archive/${id}"
elif [[ ${url} =~ 'paste\.debian\.net' && ! ${url} =~ '/plain/' ]]; then
url="https://paste.debian.net/plain/${id}"
elif [[ ${url} =~ 'paste\.ee' && ! ${url} =~ '/r/' ]]; then
# NOTE: will only show 1st paste
url="https://paste.ee/r/${id}"
fi
if [[ ${TERMINAL} =~ "alacritty|xfce4-terminal" ]]; then

View File

@ -34,6 +34,7 @@ local -A assignments=(
'^https?://sprunge\.us/' "readwwwlog"
'^https?://paste\.debian\.net/' "readwwwlog"
'^https?://paste\.centos\.org/' "readwwwlog"
'^https?://paste\.ee/' "readwwwlog"
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
'(^magnet:|\.torrent$)' "transmission-remote-gtk"
)