Merge branch 'main' into development
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user