music-kraken-core/development/objects_collection.py

26 lines
754 B
Python
Raw Normal View History

2024-04-12 12:14:10 +00:00
import music_kraken
from music_kraken.objects import Song, Album, Artist, Collection
if __name__ == "__main__":
artist: Artist = Artist(
name="artist",
main_album_list=[
Album(
title="album",
song_list=[
Song(
title="song",
album_list=[
Album(title="album", albumsort=123),
],
),
]
),
Album(title="album", barcode="1234567890123"),
]
)
print(artist.main_album_collection[0].barcode)
print(artist.main_album_collection[0].albumsort)
print(artist.main_album_collection._indexed_values)