From 8c80218016a0c90b563470ed556c746b1e20dd98 Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@gmail.com>
Date: Thu, 6 Dec 2012 18:19:07 +0100
Subject: [PATCH] export de l'url de ddl

---
 soundcloud.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/soundcloud.pm b/soundcloud.pm
index e90a704..1e00ebf 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;
 }
-- 
GitLab