2022-11-30 15:15:38 +00:00
|
|
|
import music_kraken
|
2022-11-24 13:13:55 +00:00
|
|
|
|
2022-12-02 13:39:47 +00:00
|
|
|
import music_kraken.database.new_database as db
|
|
|
|
|
|
|
|
cache = music_kraken.database.new_database.Database("test.db")
|
|
|
|
cache.reset()
|
|
|
|
|
|
|
|
artist = music_kraken.Artist(
|
|
|
|
name="I'm in a Coffin"
|
|
|
|
)
|
|
|
|
|
|
|
|
song = music_kraken.Song(
|
|
|
|
title="Vein Deep in the Solution",
|
|
|
|
release="One Final Action",
|
|
|
|
artists=[artist]
|
|
|
|
)
|
|
|
|
|
|
|
|
cache.push([artist, song])
|
|
|
|
|
|
|
|
"""
|
2022-12-01 12:15:30 +00:00
|
|
|
music_kraken.clear_cache()
|
|
|
|
|
2022-11-30 15:15:38 +00:00
|
|
|
artist = music_kraken.Artist(
|
|
|
|
name="I'm in a Coffin"
|
|
|
|
)
|
|
|
|
|
2022-12-06 13:45:18 +00:00
|
|
|
song = Song(
|
2022-11-30 15:15:38 +00:00
|
|
|
title="Vein Deep in the Solution",
|
2022-12-06 13:45:18 +00:00
|
|
|
release_name="One Final Action",
|
|
|
|
target=Target(file="~/Music/genre/artist/album/song.mp3", path="~/Music/genre/artist/album"),
|
|
|
|
metadata={
|
|
|
|
"album": "One Final Action"
|
|
|
|
},
|
|
|
|
lyrics=[
|
|
|
|
Lyrics(text="these are some depressive lyrics", language="en")
|
|
|
|
],
|
|
|
|
sources=[
|
|
|
|
Source(src="youtube", url="https://youtu.be/dfnsdajlhkjhsd")
|
|
|
|
]
|
2022-11-30 15:15:38 +00:00
|
|
|
)
|
2022-11-24 13:34:36 +00:00
|
|
|
|
2022-12-06 13:45:18 +00:00
|
|
|
|
2022-11-29 13:16:36 +00:00
|
|
|
print(song)
|
2022-12-01 12:15:30 +00:00
|
|
|
print(song.id)
|
2022-11-29 13:49:56 +00:00
|
|
|
|
2022-12-01 12:15:30 +00:00
|
|
|
# music_kraken.fetch_sources([song])
|
2022-12-02 13:39:47 +00:00
|
|
|
"""
|