Skip to content
Joel edited this page Dec 25, 2022 · 7 revisions

Constructor

Track(self, track_info)

Fields

Field Description
track_info List of JSON Track information
artist Primary artist
artist_id Primary artist ID
title Track title
path Track API path
title_with-featured Track title with featured
full_title Track full title
url Track URL
id Track ID
featured_artists List of featured artists
date Track creation date
lyrics Track lyrics
lyrics_by_line List of Track lyrics
album Parent Album object of Track

Functions

Function Description
release_date(self) Returns the release date of the track as a datetime object
to_json() Prints formatted JSON information

Clone this wiki locally