2007-08-11, 00:25
They're properties of the CFileItem class, which is derived from CGUIListItem.
The first thing that you'll need to do is change CGUIListItem -> CFileItem in the python functions.
You can then do things like:
item->GetMusicInfoTag()->SetArtist(artist) etc. For MusicInfoTag and PictureInfoTag you'll have to set the Loaded bool as well for the info to show up.
It might pay to have an "indexed" function where you pass a string for the index and the string to set.
That should give you another 20 or so strings to play with :p
Note that it is recommended that you only set one of the tag items (eg Music, Picture, or Video) and not all 3, though there will be no problems in doing so, other than some of the listitems refer to both music and video, so if you have the musicinfotag stuff set as loaded, but are wanting to refer to the videoinfotag the infomanager will pick the music one, even if it's empty (eg Ratings for instance). It also consumes more memory having both.
Cheers,
Jonathan
The first thing that you'll need to do is change CGUIListItem -> CFileItem in the python functions.
You can then do things like:
item->GetMusicInfoTag()->SetArtist(artist) etc. For MusicInfoTag and PictureInfoTag you'll have to set the Loaded bool as well for the info to show up.
It might pay to have an "indexed" function where you pass a string for the index and the string to set.
That should give you another 20 or so strings to play with :p
Note that it is recommended that you only set one of the tag items (eg Music, Picture, or Video) and not all 3, though there will be no problems in doing so, other than some of the listitems refer to both music and video, so if you have the musicinfotag stuff set as loaded, but are wanting to refer to the videoinfotag the infomanager will pick the music one, even if it's empty (eg Ratings for instance). It also consumes more memory having both.
Cheers,
Jonathan