Entries in the collection - XML Format #117
-
Firstly, thanks for creating this Library, it's great 👍 Is it possible to fetch the number of Entries in the Collection when using the XML format? I've done this myself using the standand Python XML library. It means I have to parse the XML file myself, so twice, just to get this value. |
Beta Was this translation helpful? Give feedback.
Answered by
dylanljones
Jan 23, 2024
Replies: 1 comment 2 replies
-
Hey, yes, that's a simple property: from pyrekordbox.rbxml import RekordboxXml
xml = RekordboxXml("database.xml")
n = xml.num_tracks
print(f"Number of tracks: {n}") |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mrdavet247
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
yes, that's a simple property: