music-kraken-core/src/goof.py

20 lines
524 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
id_="694bfd3c-9d2d-4d67-9bfc-cee5bf77166e"
id_="5cc28584-10c6-40e2-b6d4-6891e7e7c575"
2022-11-29 13:16:36 +00:00
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)
mk.set_targets(genre="test")
song = mk.cache.get_track_metadata(musicbrainz_releasetrackid=id_)
"""
mk.fetch_audios(mk.cache.get_tracks_to_download())