diff --git a/src/ya.pl b/src/ya.pl index f577826..8e159fa 100644 --- a/src/ya.pl +++ b/src/ya.pl @@ -12,7 +12,7 @@ use constant TARGET_ENC => IS_WIN ? 'cp1251' : 'utf8', TIMEOUT => 5, AGENT => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0', - YANDEX_BASE => 'http://music.yandex.ru', + YANDEX_BASE => 'https://music.yandex.ru', MUSIC_INFO_REGEX => qr/var\s+Mu\s+=\s+(.+?);\s+<\/script>/is, DOWNLOAD_INFO_MASK => '/api/v1.5/handlers/api-jsonp.jsx?requestId=2&nc=%d&action=getTrackSrc&p=download-info/%s/2.mp3', DOWNLOAD_PATH_MASK => 'http://%s/get-mp3/%s/%s?track-id=%s&from=service-10-track&similarities-experiment=default', @@ -71,12 +71,12 @@ my ($opt, $usage) = Getopt::Long::Descriptive::describe_options basename(__FILE__).' %o', ['playlist|p:i', 'playlist id to download'], ['kind|k:s', 'playlist kind (eg. ya-playlist, music-blog, music-partners, etc.)'], - ['album|a:i', 'album to download'], - ['track|t:i', 'track to download (album id must be specified)'], - ['dir|d:s', 'download path (current direcotry will be used by default)', {default => '.'}], + ['album|a:i', 'album to download'], + ['track|t:i', 'track to download (album id must be specified)'], + ['dir|d:s', 'download path (current direcotry will be used by default)', {default => '.'}], ['proxy=s', 'HTTP-proxy (format: 1.2.3.4:8888)'], [], - ['debug', 'print debug info during work'], + ['debug', 'print debug info during work'], ['help', 'print usage'], [], ['Example: '],