Merge branch 'main' into development

This commit is contained in:
Bucket Of Chicken
2024-10-01 22:35:48 +02:00
committed by GitHub
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -100,6 +100,7 @@ class Download extends RefCounted:
var _status: Status = Status.READY var _status: Status = Status.READY
var _thread: Thread = null var _thread: Thread = null
var _process_id:int
# Fields # Fields
var _url: String var _url: String
+2
View File
@@ -60,6 +60,7 @@ func DownloadYTVidFromLink():
return return
loading_img.show() loading_img.show()
yt_link.clear() yt_link.clear()
CurrentDownload = download
download.set_destination(owner.PlaylistsLocation[owner.CurrentPlaylist]) download.set_destination(owner.PlaylistsLocation[owner.CurrentPlaylist])
print(owner.PlaylistsLocation[owner.CurrentPlaylist]) print(owner.PlaylistsLocation[owner.CurrentPlaylist])
download.convert_to_audio(YtDlp.Audio.MP3) download.convert_to_audio(YtDlp.Audio.MP3)
@@ -71,6 +72,7 @@ func DownloadCompleted():
yt_download.disabled = false yt_download.disabled = false
owner.GetSongs(owner.PlaylistsLocation[owner.CurrentPlaylist]) owner.GetSongs(owner.PlaylistsLocation[owner.CurrentPlaylist])
loading_img.hide() loading_img.hide()
CurrentDownload = null
func _on_toggled(toggled_on: bool) -> void: func _on_toggled(toggled_on: bool) -> void: