music-kraken-core/src/goof.py

14 lines
373 B
Python
Raw Normal View History

2022-11-24 13:13:55 +00:00
import music_kraken as mk
print(mk.__file__)
2022-11-29 13:16:36 +00:00
mk.clear_cache()
2022-11-25 11:12:58 +00:00
song_list = mk.cache.get_custom_track([])
print(mk.cache, len(song_list))
2022-11-29 13:16:36 +00:00
#recording/694bfd3c-9d2d-4d67-9bfc-cee5bf77166e
id_="694bfd3c-9d2d-4d67-9bfc-cee5bf77166e"
mk.fetch_metadata(id_=id_, type_="recording")
2022-11-29 13:16:36 +00:00
song = mk.cache.get_track_metadata(musicbrainz_releasetrackid=id_)
print(song)
print(song.length)