music-kraken-core/development/objects_collection.py
Lars Noack 9c369b421d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: oh no
2024-05-03 14:52:12 +02:00

29 lines
644 B
Python

import music_kraken
from music_kraken.objects import Song, Album, Artist, Collection
if __name__ == "__main__":
song_1 = Song(
title="song",
main_artist_list=[Artist(
name="main_artist"
)],
feature_artist_list=[Artist(
name="main_artist"
)]
)
other_artist = Artist(name="other_artist")
song_2 = Song(
title = "song",
main_artist_list=[other_artist]
)
other_artist.name = "main_artist"
song_1.merge(song_2)
print("#" * 120)
print("main", *song_1.main_artist_collection)
print("feat", *song_1.feature_artist_collection)