{"id":1106,"date":"2013-03-13T19:47:31","date_gmt":"2013-03-13T18:47:31","guid":{"rendered":"http:\/\/denbeke.be\/blog\/?page_id=1106"},"modified":"2013-03-13T19:47:47","modified_gmt":"2013-03-13T18:47:47","slug":"itunes-library-parser-track","status":"publish","type":"page","link":"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-track\/","title":{"rendered":"iTunes Library Parser &#8211;  Track"},"content":{"rendered":"<pre><code data-language=\"python\">class Track:\r\n'''Class representing a song with a trackname, artist, album, year, genre'''\r\n\r\ndef __init__(self, input_trackname, input_artist, input_albumArtist, input_album, input_year, input_genre):\r\n    '''Creates new iTunes Song with given trackname, artist, album, year and genre'''\r\n    self.trackname = input_trackname\r\n    self.artist = input_artist\r\n    self.albumArtist = input_albumArtist\r\n    self.album = input_album\r\n    self.year = input_year\r\n    self.genre = input_genre\r\n    \r\ndef getTrackname(self):\r\n    '''Returns the trackname'''\r\n    return self.trackname\r\n\r\ndef getArtist(self):\r\n    '''Returns the artist'''\r\n    return self.artist\r\n    \r\ndef getAlbumArtist(self):\r\n    '''Returns the album artist'''\r\n    return self.albumArtist\r\n\r\ndef getAlbum(self):\r\n    '''Returns the album'''\r\n    return self.album\r\n\r\ndef getYear(self):\r\n    '''Returns the year'''\r\n    return self.year\r\n    \r\ndef getGenre(self):\r\n    '''Returns the genre'''\r\n    return self.genre\r\n    \r\ndef __str__(self):\r\n    '''Returns string of track'''\r\n    return \"Title: \"+str(self.trackname)+\", Artist: \"+str(self.artist)+\", Album: \"+str(self.album)+\", Year: \"+str(self.year)+\", Genre: \"+str(self.genre)\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>class Track: &#8221;&#8217;Class representing a song with a trackname, artist, album, year, genre&#8221;&#8217; def __init__(self, input_trackname, input_artist, input_albumArtist, input_album, input_year, input_genre): &#8221;&#8217;Creates new iTunes Song with given trackname, artist, album, year and genre&#8221;&#8217; self.trackname = input_trackname self.artist = input_artist self.albumArtist = input_albumArtist self.album = input_album self.year = input_year self.genre = input_genre def getTrackname(self): &#8221;&#8217;Returns the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1102,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.6.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>iTunes Library Parser - Track &ndash; DenBeke<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-track\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iTunes Library Parser - Track &ndash; DenBeke\" \/>\n<meta property=\"og:description\" content=\"class Track: &#039;&#039;&#039;Class representing a song with a trackname, artist, album, year, genre&#039;&#039;&#039; def __init__(self, input_trackname, input_artist, input_albumArtist, input_album, input_year, input_genre): &#039;&#039;&#039;Creates new iTunes Song with given trackname, artist, album, year and genre&#039;&#039;&#039; self.trackname = input_trackname self.artist = input_artist self.albumArtist = input_albumArtist self.album = input_album self.year = input_year self.genre = input_genre def getTrackname(self): &#039;&#039;&#039;Returns the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-track\/\" \/>\n<meta property=\"og:site_name\" content=\"DenBeke\" \/>\n<meta property=\"article:modified_time\" content=\"2013-03-13T18:47:47+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:site\" content=\"@MthsBk\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/denbeke.be\/blog\/#website\",\"url\":\"https:\/\/denbeke.be\/blog\/\",\"name\":\"DenBeke\",\"description\":\"Mathias Beke\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/denbeke.be\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-track\/#webpage\",\"url\":\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-track\/\",\"name\":\"iTunes Library Parser - Track &ndash; DenBeke\",\"isPartOf\":{\"@id\":\"https:\/\/denbeke.be\/blog\/#website\"},\"datePublished\":\"2013-03-13T18:47:31+00:00\",\"dateModified\":\"2013-03-13T18:47:47+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/denbeke.be\/blog\/itunes-library-parser\/itunes-library-parser-track\/\"]}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1106"}],"collection":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/comments?post=1106"}],"version-history":[{"count":2,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1106\/revisions"}],"predecessor-version":[{"id":1109,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1106\/revisions\/1109"}],"up":[{"embeddable":true,"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/pages\/1102"}],"wp:attachment":[{"href":"https:\/\/denbeke.be\/blog\/wp-json\/wp\/v2\/media?parent=1106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}