Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kaimi-io/yandex-music-download.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaimi <lg.kaimi@gmail.com>2016-04-06 15:24:54 +0300
committerKaimi <lg.kaimi@gmail.com>2016-04-06 15:24:54 +0300
commit541f6a5ee801fcf12676e117a51f52702e6c4864 (patch)
tree32f95f1caf30117aaa39e1a049d402fb7ccaa93e /src
parent25160204936a01a9befcbda2c4a06fbdd8a64998 (diff)
mobile api download fix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ya.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ya.pl b/src/ya.pl
index cc12ad5..1757aa8 100755
--- a/src/ya.pl
+++ b/src/ya.pl
@@ -289,7 +289,7 @@ if($opt{album} || ($opt{playlist} && $opt{kind}))
info(INFO, 'Filtering single track: ' . $opt{track} . ' [' . $opt{album} . ']');
@track_list_info = grep
(
- (split(/\./, $_->{dir}))[1] eq $opt{track}
+ (split(/\./, $_->{dir}))[-1] eq $opt{track}
,
@track_list_info
);
@@ -467,7 +467,7 @@ sub get_track_url
{
my $storage_dir = shift;
- my (undef, $track_id) = split /\./, $storage_dir;
+ my $track_id = (split(/\./, $storage_dir))[-1];
my $request = $ua->get
(
$opt{mobile} ?