urlhandler: use normal array

This commit is contained in:
tastytea 2022-11-03 15:20:42 +01:00
parent 6ad57fa427
commit c70e900d84
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -21,7 +21,7 @@ zmodload zsh/pcre
local default_cmd="firefox"
local mpv="mpv --force-window=yes"
local -A assignments=(
local -a assignments=(
'\.(mp4|m4v|mkv|avi|webm|flv|xvid|ogv|theora|mov|wmv)(\?.+)?$' "${mpv};vlc"
'\.(ogg|flac|opus|m4a|wav|mp3|mid|aac|wma)(\?.+)?$' "${mpv};vlc"
'^https://media\.ccc\.de/v/[^/]*$' "${mpv}"