4 local curcontext="$curcontext" fileopts diropts cur prev
6 fileopts="{{fileopts}}"
11 _arguments '*: :(::ytfavorites ::ytrecommended ::ytsubscriptions ::ytwatchlater ::ythistory)'
14 prev=$words[CURRENT-1]
15 if [[ ${prev} =~ ${fileopts} ]]; then
17 elif [[ ${prev} =~ ${diropts} ]]; then
19 elif [[ ${prev} == "--remux-video" ]]; then
20 _arguments '*: :(mp4 mkv)'
21 elif [[ ${prev} == "--recode-video" ]]; then
22 _arguments '*: :(mp4 flv ogg webm mkv)'
24 _arguments '*: :({{flags}})'