From c869eea6b2671c94c23cb62d38b9eb18ef688415 Mon Sep 17 00:00:00 2001 From: Hellow <74311245+HeIIow2@users.noreply.github.com> Date: Mon, 12 Jun 2023 17:46:31 +0200 Subject: [PATCH] test script --- src/actual_donwload.py | 53 ++---------------------------------------- 1 file changed, 2 insertions(+), 51 deletions(-) diff --git a/src/actual_donwload.py b/src/actual_donwload.py index 9db40b9..1a2bcce 100644 --- a/src/actual_donwload.py +++ b/src/actual_donwload.py @@ -5,59 +5,10 @@ from music_kraken.utils.enums.source import SourcePages 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__": music_kraken.cli(genre="test", command_list=[ # "https://musify.club/release/molchat-doma-etazhi-2018-1092949", # "https://musify.club/release/ghost-bath-self-loather-2021-1554266", - "#a Ghost Bath", - "1", - "4", - "ok" + "s: #a Ghost Bath", + ])