From db9bc4f216b4fddcea44863d445979b350d13ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Neto?= Date: Wed, 1 Jul 2015 17:00:48 -0300 Subject: [PATCH] Add suppport for track.getCorrection --- pylast/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pylast/__init__.py b/pylast/__init__.py index 5cc1507..4313496 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -2952,6 +2952,12 @@ class Track(_Opus): def __init__(self, artist, title, network, username=None): super(Track, self).__init__(artist, title, network, "track", username) + + def get_correction(self): + """Returns the corrected track name.""" + + return _extract( + self._request(self.ws_prefix + ".getCorrection"), "name") def get_duration(self): """Returns the track duration."""