music-kraken-core/development/objects_collection.py
Lars Noack 2b3f4d82d9
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
feat: renamed main_artist_collection to artist_collection
2024-05-16 14:05:33 +02:00

26 lines
562 B
Python

import music_kraken
from music_kraken.objects import Song, Album, Artist, Collection
if __name__ == "__main__":
song_1 = Song(
title="song",
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.artist_collection)
print("feat", *song_1.feature_artist_collection)