test script
This commit is contained in:
parent
10f6153199
commit
c869eea6b2
@ -5,59 +5,10 @@ from music_kraken.utils.enums.source import SourcePages
|
|||||||
from music_kraken.objects import Song, Target, Source, Album
|
from music_kraken.objects import Song, Target, Source, Album
|
||||||
|
|
||||||
|
|
||||||
def search_pages():
|
|
||||||
search = Search()
|
|
||||||
print("metadata", search.pages)
|
|
||||||
print("audio", search.audio_pages)
|
|
||||||
|
|
||||||
print()
|
|
||||||
print(search)
|
|
||||||
|
|
||||||
search.choose_page(pages.Musify)
|
|
||||||
|
|
||||||
print()
|
|
||||||
print(search)
|
|
||||||
|
|
||||||
search.choose_index(0)
|
|
||||||
print(search)
|
|
||||||
|
|
||||||
|
|
||||||
def direct_download():
|
|
||||||
search = Search()
|
|
||||||
|
|
||||||
search.search_url("https://www.metal-archives.com/bands/Ghost_Bath/3540372489")
|
|
||||||
print(search)
|
|
||||||
|
|
||||||
search.search_url("https://musify.club/artist/ghost-bath-280348")
|
|
||||||
print(search)
|
|
||||||
|
|
||||||
|
|
||||||
def download_audio():
|
|
||||||
song = Song(
|
|
||||||
source_list=[
|
|
||||||
Source(SourcePages.MUSIFY, "https://musify.club/track/im-in-a-coffin-life-never-was-waste-of-skin-16360302")
|
|
||||||
],
|
|
||||||
target_list=[
|
|
||||||
Target(relative_to_music_dir=True, path="example", file="waste_of_skin_1"),
|
|
||||||
Target(relative_to_music_dir=True, path="example", file="waste_of_skin_2")
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
pages.Musify.download_song(song)
|
|
||||||
|
|
||||||
|
|
||||||
def real_download():
|
|
||||||
search = Search()
|
|
||||||
search.search_url("https://musify.club/release/children-of-the-night-2018-1079829")
|
|
||||||
search.download_chosen()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
music_kraken.cli(genre="test", command_list=[
|
music_kraken.cli(genre="test", command_list=[
|
||||||
# "https://musify.club/release/molchat-doma-etazhi-2018-1092949",
|
# "https://musify.club/release/molchat-doma-etazhi-2018-1092949",
|
||||||
# "https://musify.club/release/ghost-bath-self-loather-2021-1554266",
|
# "https://musify.club/release/ghost-bath-self-loather-2021-1554266",
|
||||||
"#a Ghost Bath",
|
"s: #a Ghost Bath",
|
||||||
"1",
|
|
||||||
"4",
|
|
||||||
"ok"
|
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user