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.
This commit is contained in:
cv1618 2024-12-02 02:25:06 -06:00 committed by GitHub
parent c43f390f07
commit 82c51fa85d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;;