Compare commits

...

2 Commits

View File

@ -110,7 +110,11 @@ list_read() {
while read -r art; do
LINK="$(sub_link "$art")"
if [ ! -z "$(printf "%s" "$LINK" | grep 'youtube.com\|odycdn\|simplecastaudio\|podcasts\|twitch')" ]; then
ENCLOSURE_TYPE="$(cat "$art" | jq -r '.enclosure.type // ""')"
if [ ! -z "$(printf "%s" "$LINK" | grep 'youtube.com\|odycdn\|twitch')" ] \
|| [ "$ENCLOSURE_TYPE" = "audio/mpeg" ]
then
VID="$VID$LINK "
if [ -n "$VIDFILES" ]; then
VIDFILES=$(printf "%s\n%s" "$VIDFILES" "$art")
@ -239,10 +243,10 @@ sub_fzf() {
while true; do
NEWARTS="$(find . -type l -or -type f)"
export -f sub_preview
OUTPUT="$(printf "%s" "$NEWARTS" |
export SHELL="/bin/sh"
fzf --marker='*' --multi --print-query \
--preview 'bash -c "sub_preview {}"' \
--preview "cd $DIR; mrss preview {}" \
--bind "ctrl-d:change-query(/purge)+accept" \
--bind "ctrl-alt-d:change-query(/purge-all)+accept" \
--bind "enter:change-query(/read)+accept" \