Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Added opus to mplayer audio completions
- X-seq: zsh-workers 37260
- From: Simon Hafner <reactormonk@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Added opus to mplayer audio completions
- Date: Tue, 1 Dec 2015 01:59:16 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8gkwuj8lgVcJPC9gR0/q44fLzg2ndbSXGtxast/W7fA=; b=D60d44WP1KMIewG2OAs9LGGH07WbVZwZgyUmQ8krabZLygnYu9Wb6Xw6lMlilRawpE yk/q7sEmI9pnXI8cOEpPWg39fjl8i9geeCylykQ9GDVH26GFasIQf1WK3ig5zDciQaWK iXqf2OuTd6yO/WBZ0L1X4tXyIySI5JLnufvrnJciKILmGXw06DwItOHkvQnXO1keSObh 44WFJDBoEHlJJlvnpPSjXNwvhFC+jAtDgaPudKEUcbZMJ+k4N3vK/CFypaW8M17Ieb19 xc+7s++cVbq0bieXhJqOfjJQvhHkz/JGLiX57Gy1E+CI4HlJdfxPx/U5H6R7pnabQGFu aGgA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
---
Completion/X/Command/_mplayer | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/X/Command/_mplayer b/Completion/X/Command/_mplayer
index f2f4c3d..a913960 100644
--- a/Completion/X/Command/_mplayer
+++ b/Completion/X/Command/_mplayer
@@ -14,7 +14,7 @@ _x_arguments -C -s \
'-aofile:file:_files' \
'(-nosound)*-aop[specify audio output filter]:audio output
filter:->audio-plugins' \
'-aspect:ratio' \
- '-audiofile:audio file:_files -g "(#i)*.(wav|mp3|ogg)(-.)"' \
+ '-audiofile:audio file:_files -g "(#i)*.(wav|mp3|ogg|opus)(-.)"' \
-autoq:quality -autosync:factor \
-bandwidth:bandwidth\ value -benchmark -bpp:depth \
'(-nocache)-cache:cache size (kb)' \
@@ -115,7 +115,7 @@ case "$state" in
_tags files urls
while _tags; do
_requested files expl 'media file' _files -g \
- "*.(#i)(asf|asx|avi|flac|flv|m1v|m2p|m2v|m4a|m4v|mjpg|mka|mkv|mov|mp3|mp4|mpe|mpeg|mpg|ogg|ogm|ogv|qt|rm|ts|vob|wav|webm|wma|wmv)(-.)"
&& ret=0
+ "*.(#i)(asf|asx|avi|flac|flv|m1v|m2p|m2v|m4a|m4v|mjpg|mka|mkv|mov|mp3|mp4|mpe|mpeg|mpg|ogg|ogm|ogv|opus|qt|rm|ts|vob|wav|webm|wma|wmv)(-.)"
&& ret=0
if _requested urls; then
while _next_label urls expl URL; do
_urls "$expl[@]" && ret=0
--
2.6.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author