File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 4
4
# | YTDL-MPV |
5
5
# | |
6
6
# | Browse and play YouTube contents from rofi |
7
- # | using yt-dlp and mpv |
7
+ # | using yt-dlp and mpv |
8
8
# | |
9
9
# | Authors: Andrea Rossoni |
10
10
# | License: GPLv3 |
11
11
# *--------------------------------------------*
12
12
13
+ # ytdl-mpv version
14
+ VERSION=" v0.4.0"
13
15
14
16
# Default functions
15
17
_rofi () {
@@ -153,6 +155,7 @@ optional arguments:
153
155
-l, --linen LINEN rofi vertical lines number [default ${LINEN} ]
154
156
-s, --socket SOCKET mpv socket path [default "${SOCKET} "]
155
157
-w, --width WIDTH rofi width [default ${WIDTH} ]
158
+ -V, --version print ytdl-mpv version
156
159
EOF
157
160
}
158
161
@@ -523,6 +526,7 @@ while :; do
523
526
-n|--number) shift ; [ -n " $1 " ] && [[ $1 =~ ^[0-9]+$ ]] && NUMBER=" $1 " ;;
524
527
-l|--linen) shift ; [ -n " $1 " ] && [[ $1 =~ ^[0-9]+$ ]] && LINEN=" $1 " ;;
525
528
-h|--help) shift ; _usage; exit 0;;
529
+ -V|--version) shift ; printf ' ytdl-mpv: %s\n' " ${VERSION} " ; exit 0;;
526
530
-s|--socket) shift ; [ -n " $1 " ] && SOCKET=" $1 " ;;
527
531
-w|--width) shift ; [ -n " $1 " ] && [[ $1 =~ ^[0-9]+$ ]] && WIDTH=" $1 " ;;
528
532
* ) break ;;
You can’t perform that action at this time.
0 commit comments