From 82c51fa85d213815522015768acb3dd957195b2c Mon Sep 17 00:00:00 2001 From: cv1618 <48768180+cv1618@users.noreply.github.com> Date: Mon, 2 Dec 2024 02:25:06 -0600 Subject: [PATCH] add extra octet-stream video playback support Sometimes when downloading a stream it gets interrupted and the video file remains in MPEG-TS format but has a .mp4 ,.mkv,or .webm extension. This will allow the videos to play as is without having to spend a lot of time converting them with ffmpeg. --- .config/lf/lfrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 5598a307..8f431ce8 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -49,7 +49,7 @@ cmd open ${{ application/octet-stream) case ${f##*.} in doc|docx|xls|xlsx|odt|ppt|pptx) setsid -f libreoffice $fx >/dev/null 2>&1 ;; ghw) setsid -f gtkwave $f >/dev/null 2>&1 ;; - ts) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; + mkv|mp4|ts|webm) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; *) setsid -f zathura $fx >/dev/null 2>&1 ;; esac ;; *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;