Replies: 1 comment
-
Hey @Sn0w3y, that's currently not a feature and i honestly don't know if we could add it since we only read the database. But, you could try this: from pyrekordbox import Rekordbox6Database
from pyrekordbox.db6 import DjmdHistory, DjmdSongHistory
db = Rekordbox6Database()
# Get latest history list
histories = db.get_history().order_by(DjmdHistory.updated_at.desc()).limit(1).first()
# Get latest song in history
song = db.get_history_songs(HistoryID=histories.ID).order_by(DjmdSongHistory.updated_at.desc()).limit(1).first()
content = song.Content
print("Most recent history content:", content) Let me know if that works:) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
No, not related to an Issue.
Describe the solution you'd like
No Problem - No Solution needed :P
I just wanted to ask if it is possible to get the currently playing Song aswell in the pyrekordbox Enviroment. If not, could this be added?
Greetings!
Beta Was this translation helpful? Give feedback.
All reactions