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"
|
2022-11-29 13:49:56 +00:00
|
|
|
id_="5cc28584-10c6-40e2-b6d4-6891e7e7c575"
|
2022-11-29 13:16:36 +00:00
|
|
|
mk.fetch_metadata(id_=id_, type_="recording")
|
2022-11-24 13:34:36 +00:00
|
|
|
|
2022-11-29 13:16:36 +00:00
|
|
|
song = mk.cache.get_track_metadata(musicbrainz_releasetrackid=id_)
|
|
|
|
print(song)
|
|
|
|
print(song.length)
|
2022-11-29 13:49:56 +00:00
|
|
|
mk.set_targets(genre="test")
|
|
|
|
|
|
|
|
song = mk.cache.get_track_metadata(musicbrainz_releasetrackid=id_)
|
|
|
|
mk.fetch_sources([song])
|