From 49a2b687fd44eab30533181b0e560576be1062e9 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 12 May 2016 14:21:27 +0200 Subject: [PATCH] Allow user to get the list of extra fields present in the entry. There are well known fields in the entry that are always available. Other fields are also available but there is no way to know what they are but trying to retrieve them. The method get_extra_fields allow user code to get the list (iterator) of extra fields present in the entry. --- src/_readtags.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/_readtags.pyx b/src/_readtags.pyx index 73d7e0b..5d8f1dc 100644 --- a/src/_readtags.pyx +++ b/src/_readtags.pyx @@ -84,6 +84,10 @@ cdef class TagEntry: return result + def get_extra_fields(self): + return (self.c_entry.fields.list[i].key for i in range(self.c_entry.fields.count)) + + cdef class CTags: cdef tagFile* file cdef tagFileInfo info