After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306817 - No way to set tags in gst-python
No way to set tags in gst-python
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
0.9.x
Other All
: Normal enhancement
: 0.9.5
Assigned To: GStreamer Maintainers
Edward Hervey
Depends on:
Blocks:
 
 
Reported: 2005-06-07 21:23 UTC by Rod Begbie
Modified: 2005-11-11 16:40 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Rod Begbie 2005-06-07 21:23:25 UTC
gst-python has a very elegant, Python-like method for extracting and
iterating-through tags found in music files.  However, there is no way currently
to create a new TagList and add it to a file.  I would cherish such
functionality very much.
Comment 1 Christian Fredrik Kalager Schaller 2005-11-10 11:14:31 UTC
updating this to 0.9 so it can be reviewed for inclusion in the 0.9 Python bindings.
Comment 2 Edward Hervey 2005-11-10 12:58:47 UTC
Fixed in 0.9 cvs, you can now create a TagList (which you could already do), and
it behaves just like a dictionnary.

mytaglist = gst.TagList()
mytaglist[gst.TAG_ARTIST] = "George Clinton and the Parliament Funkadelics"
mytaglist[gst.TAG_TITLE] = "Free your mind and your ass will follow"

for tag in mytaglist.keys():
   print tag, ":", mytaglist[tag]

del mytaglist[gst.TAG_TITLE]


And of course you can use the TagSetter interface to set tags.