From 266406e8d235e0c62d9d60a43a0227c20e31772b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20DEFRANCE?= <loic.defrance@gmail.com> Date: Sat, 2 Apr 2016 16:30:04 +0200 Subject: [PATCH] external_id for Spotify, Deezer and Facebook. PARCE QU'ON SAIT JAMAIS --- PlayBot/sites/deezer.pm | 1 + PlayBot/sites/facebook.pm | 1 + PlayBot/sites/spotify.pm | 1 + 3 files changed, 3 insertions(+) diff --git a/PlayBot/sites/deezer.pm b/PlayBot/sites/deezer.pm index 5bfa8e9..9f96d96 100644 --- a/PlayBot/sites/deezer.pm +++ b/PlayBot/sites/deezer.pm @@ -38,6 +38,7 @@ sub get { $infos{'site'} = 'deezer'; $infos{'url'} = 'https://www.deezer.com/track/'.$id; $infos{'author'} = $content->{'artist'}->{'name'}; + $infos{'external_id'} = $id; return %infos; } diff --git a/PlayBot/sites/facebook.pm b/PlayBot/sites/facebook.pm index 9f48c8a..f60b283 100644 --- a/PlayBot/sites/facebook.pm +++ b/PlayBot/sites/facebook.pm @@ -51,6 +51,7 @@ sub get { $infos{'site'} = 'facebook'; $infos{'url'} = 'https://www.facebook.com'.$content->{'permalink_url'}; $infos{'author'} = $content->{'from'}->{'name'}; + $infos{'external_id'} = $id; return %infos; } diff --git a/PlayBot/sites/spotify.pm b/PlayBot/sites/spotify.pm index 09d62d2..177cb26 100644 --- a/PlayBot/sites/spotify.pm +++ b/PlayBot/sites/spotify.pm @@ -38,6 +38,7 @@ sub get { $infos{'site'} = 'spotify'; $infos{'url'} = 'https://open.spotify/track/'.$id; $infos{'author'} = $content->{'artists'}->[0]->{'name'}; + $infos{'external_id'} = $id; return %infos; } -- GitLab