2009-11-17, 15:31
XBMC 9.04.1 r20672 (Compiled : June 2 2009)
Win XP Pro SP3
I'm new to XBMC and Python (but I'm not a noobie programmer).
I'm writing a script to create smart playlists using the tags of the currently playing audio track. According to the docs, getReleaseDate() returns a string, but despite there being 'Year' tags in my audio files (which display correctly in the Now Playing window) it always returns a zero-length string. The other tags are returned as expected.
I couldn't find anything via a search of the forum. Is there something I'm missing (like a brain!) or is there a problem with getReleaseDate()? Any help would be appreciated.
Win XP Pro SP3
I'm new to XBMC and Python (but I'm not a noobie programmer).
I'm writing a script to create smart playlists using the tags of the currently playing audio track. According to the docs, getReleaseDate() returns a string, but despite there being 'Year' tags in my audio files (which display correctly in the Now Playing window) it always returns a zero-length string. The other tags are returned as expected.
I couldn't find anything via a search of the forum. Is there something I'm missing (like a brain!) or is there a problem with getReleaseDate()? Any help would be appreciated.
Code:
[font=Courier New]if xbmc.getCondVisibility('Player.HasAudio'):
tag = xbmc.Player().getMusicInfoTag()
artist = tag.getArtist()
title = tag.getTitle()
genre = tag.getGenre()
album = tag.getAlbum()
yr = tag.getReleaseDate()[/font]