diff --git a/soundcloud.pm b/soundcloud.pm index e90a704b8d975c6ab207ee46cb2d2e16f8c9ae0e..1e00ebfb755515ed016121cf8e9d045a9f1bf001 100644 --- a/soundcloud.pm +++ b/soundcloud.pm @@ -24,6 +24,10 @@ sub soundcloud { $infos{'title'} = $content->{'title'}; $infos{'author'} = $content->{'user'}->{'username'}; $infos{'url'} = $url; + + if ($content->{'downloadable'}) { + $infos{'ddl'} = $content->{'download_url'}; + } return %infos; }