Skip to content

Commit 64c9b0f

Browse files
committed
fix: fix import error and README.md
1 parent 6bfa7ec commit 64c9b0f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ an easy interface for accessing the data stored in it:
164164
from pyrekordbox import Rekordbox6Database
165165

166166
db = Rekordbox6Database()
167-
track_items = db.get_content()
168-
cid = track_items[0]["ID"]
169-
artist = db.get_artist_name(content_id=cid)
167+
for item in db.get_content():
168+
print(item.Title, item.Artist.Name)
170169
````
171170
Changing entries of the database is not supported yet since it is not guaranteed that
172171
the database could be corrupted from writing to it. However, this feature will by

pyrekordbox/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
DjmMySettingFile,
1717
DevSettingFile,
1818
)
19-
from .db6 import Rekordbox6Database, op
19+
from .db6 import Rekordbox6Database, open_rekordbox_database
2020

2121
try:
2222
from ._version import version as __version__

0 commit comments

Comments
 (0)