diff --git a/README.md b/README.md index 8578083..79dd2df 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,9 @@ docker run --init --rm -v ${PWD}:/root/ --name yamusic yandex-music-downloader:1 ## Usage ```bat -Yandex Music Downloader v1.1 +Yandex Music Downloader v1.2 -ya.pl [-adklpstu] [long options...] +ya.pl [-adhklpstu] [long options...] -p[=INT] --playlist[=INT] playlist id to download -k[=STR] --kind[=STR] playlist kind (eg. ya-playlist, music-blog, music-partners, etc.) @@ -131,29 +131,26 @@ ya.pl [-adklpstu] [long options...] --bitrate INT bitrate (eg. 64, 128, 192, 320) --pattern STR track naming pattern Available placeholders: #number, #artist, - #title + #title -l --link do not fetch, only print links to the tracks -s --silent do not print informational messages --debug print debug info during work - --help print usage + -h --help print usage --include and --exclude options use weak - match i.e. ~/$term/ + match i.e. ~/$term/ - Example: + Example: ya.pl -p 123 -k ya-playlist - ya.pl -a 123 - ya.pl -a 123 -t 321 - ya.pl -u - https://music.yandex.ru/album/215690 - ya.pl -u - https://music.yandex.ru/album/215688/track/1710808 - ya.pl -u - https://music.yandex.ru/users/ya.playlist/playlists/1257 + ya.pl -a 123 + ya.pl -a 123 -t 321 + ya.pl -u https://music.yandex.ru/album/215690 --cookie ... + ya.pl -u https://music.yandex.ru/album/215688/track/1710808 --auth ... + ya.pl -u https://music.yandex.ru/users/ya.playlist/playlists/1257 --cookie ... - © 2013-2020 by Kaimi (https://kaimi.io) + © 2013-2021 by Kaimi (https://kaimi.io) ``` ## FAQ diff --git a/src/ya.pl b/src/ya.pl index d5636fc..c0d44a8 100755 --- a/src/ya.pl +++ b/src/ya.pl @@ -49,8 +49,8 @@ use constant COOKIE_PREFIX => 'Session_id=', HQ_BITRATE => '320', PODCAST_TYPE => 'podcast', - VERSION => '1.1', - COPYRIGHT => '© 2013-2020 by Kaimi (https://kaimi.io)', + VERSION => '1.2', + COPYRIGHT => '© 2013-2021 by Kaimi (https://kaimi.io)', }; use constant { @@ -215,9 +215,9 @@ my ($opt, $usage) = Getopt::Long::Descriptive::describe_options [basename(__FILE__) . ' -p 123 -k ya-playlist'], [basename(__FILE__) . ' -a 123'], [basename(__FILE__) . ' -a 123 -t 321'], - [basename(__FILE__) . ' -u https://music.yandex.ru/album/215690'], - [basename(__FILE__) . ' -u https://music.yandex.ru/album/215688/track/1710808'], - [basename(__FILE__) . ' -u https://music.yandex.ru/users/ya.playlist/playlists/1257'], + [basename(__FILE__) . ' -u https://music.yandex.ru/album/215690 --cookie ...'], + [basename(__FILE__) . ' -u https://music.yandex.ru/album/215688/track/1710808 --auth ...'], + [basename(__FILE__) . ' -u https://music.yandex.ru/users/ya.playlist/playlists/1257 --cookie ...'], [], [COPYRIGHT] ); diff --git a/usage.gif b/usage.gif index 727a4ce..4016f49 100644 Binary files a/usage.gif and b/usage.gif differ