Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3151974621 | |||
| a0d2e7827e | |||
| 7d0882856b | |||
| 340a29f8e8 | |||
| 02e8c3545a | |||
| 3a698b1181 | |||
| faa1d62c2a | |||
| 82c4ff4cf3 | |||
| 73d0bf7c5a | |||
| 4fd83f4891 | |||
| 796920a8dc | |||
| f56c40ce7f | |||
| be75e251a2 | |||
| a9f5aeda81 |
@@ -1,6 +1,5 @@
|
|||||||
[gd_scene load_steps=67 format=3 uid="uid://b2sygl55s6fng"]
|
[gd_scene load_steps=67 format=3 uid="uid://b2sygl55s6fng"]
|
||||||
|
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"]
|
[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"]
|
[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"]
|
[ext_resource type="Texture2D" uid="uid://cq8jj63iyu2cs" path="res://d7hftxdivxxvm.cloudfront.webp" id="2_wf35v"]
|
||||||
@@ -400,7 +399,7 @@ anchor_bottom = 1.0
|
|||||||
offset_left = -7.0
|
offset_left = -7.0
|
||||||
offset_top = -5.0
|
offset_top = -5.0
|
||||||
offset_right = 7.0
|
offset_right = 7.0
|
||||||
offset_bottom = 46.0
|
offset_bottom = 4.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
color = Color(0.14902, 0.14902, 0.14902, 1)
|
color = Color(0.14902, 0.14902, 0.14902, 1)
|
||||||
@@ -409,7 +408,7 @@ color = Color(0.14902, 0.14902, 0.14902, 1)
|
|||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
offset_right = 229.0
|
offset_right = 229.0
|
||||||
offset_bottom = 47.0
|
offset_bottom = 47.0
|
||||||
placeholder_text = "Youtube link(can be playlist)"
|
placeholder_text = "Link to download"
|
||||||
|
|
||||||
[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"]
|
[node name="YTDownload" type="Button" parent="YoutubeMenuHolder/Youtube menu"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
@@ -444,14 +443,15 @@ anchor_left = 1.0
|
|||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_left = -31.83
|
offset_left = -38.83
|
||||||
offset_top = -40.0
|
offset_top = -40.0
|
||||||
offset_right = 0.170044
|
offset_right = 1.17004
|
||||||
offset_bottom = -8.0
|
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
|
focus_mode = 0
|
||||||
text = "?"
|
text = "?"
|
||||||
script = ExtResource("17_4b8oh")
|
script = ExtResource("17_4b8oh")
|
||||||
|
Open = "https://notdraimdev.github.io/SimplSite/GettingStarted.html"
|
||||||
|
|
||||||
[node name="CreatePlaylistsMenu" type="Control" parent="."]
|
[node name="CreatePlaylistsMenu" type="Control" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
@@ -695,12 +695,12 @@ anchor_top = 1.0
|
|||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_left = 67.0
|
offset_left = 67.0
|
||||||
offset_top = -120.0
|
offset_top = -132.0
|
||||||
offset_right = -200.0
|
offset_right = -200.0
|
||||||
offset_bottom = -89.0
|
offset_bottom = -95.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
text = "Please select a directory"
|
text = "Please make a Playlist "
|
||||||
label_settings = SubResource("LabelSettings_6prit")
|
label_settings = SubResource("LabelSettings_6prit")
|
||||||
clip_text = true
|
clip_text = true
|
||||||
text_overrun_behavior = 2
|
text_overrun_behavior = 2
|
||||||
@@ -712,7 +712,7 @@ anchor_top = 1.0
|
|||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
offset_left = 68.0
|
offset_left = 68.0
|
||||||
offset_top = -99.0
|
offset_top = -106.0
|
||||||
offset_right = -199.0
|
offset_right = -199.0
|
||||||
offset_bottom = -68.0
|
offset_bottom = -68.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
@@ -861,8 +861,7 @@ offset_left = -64.0
|
|||||||
offset_top = -23.0
|
offset_top = -23.0
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
grow_vertical = 0
|
grow_vertical = 0
|
||||||
|
text = "v1.4.2h2"
|
||||||
text = "v1.4.2"
|
|
||||||
horizontal_alignment = 2
|
horizontal_alignment = 2
|
||||||
|
|
||||||
[node name="WavDisclaimer" type="AcceptDialog" parent="."]
|
[node name="WavDisclaimer" type="AcceptDialog" parent="."]
|
||||||
|
|||||||
@@ -188,10 +188,9 @@ class Download extends RefCounted:
|
|||||||
options_and_arguments.append_array(["--yes-playlist","--embed-metadata","--embed-thumbnail",str("-o" + "%(title)s.%(ext)s")])
|
options_and_arguments.append_array(["--yes-playlist","--embed-metadata","--embed-thumbnail",str("-o" + "%(title)s.%(ext)s")])
|
||||||
options_and_arguments.append_array(["--no-continue", "-P", file_path, _url])
|
options_and_arguments.append_array(["--no-continue", "-P", file_path, _url])
|
||||||
|
|
||||||
var output: Array = []
|
|
||||||
_process_id = OS.execute(executable, PackedStringArray(options_and_arguments), output)
|
|
||||||
|
|
||||||
print(options_and_arguments)
|
print(options_and_arguments)
|
||||||
|
var output: Array = []
|
||||||
|
OS.execute(executable, PackedStringArray(options_and_arguments), output)
|
||||||
self._thread_finished.call_deferred()
|
self._thread_finished.call_deferred()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,13 +1,14 @@
|
|||||||
extends Button
|
extends Button
|
||||||
|
|
||||||
|
|
||||||
|
@export var Open:String
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
func _pressed() -> void:
|
func _pressed() -> void:
|
||||||
OS.shell_open("https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md")
|
OS.shell_open(Open)
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
|
|||||||
+1
-6
@@ -8,7 +8,6 @@ extends Button
|
|||||||
|
|
||||||
var currentlyExtending:bool
|
var currentlyExtending:bool
|
||||||
var Target:float = 50
|
var Target:float = 50
|
||||||
var CurrentDownload:YtDlp.Download
|
|
||||||
signal ContinueProcess
|
signal ContinueProcess
|
||||||
|
|
||||||
@onready var Parent:MainScene = get_tree().root.get_child(2)
|
@onready var Parent:MainScene = get_tree().root.get_child(2)
|
||||||
@@ -18,10 +17,6 @@ func _ready() -> void:
|
|||||||
YtDlp.setup_completed.connect(YTSetupCompleted)
|
YtDlp.setup_completed.connect(YTSetupCompleted)
|
||||||
yt_download.pressed.connect(DownloadYTVidFromLink)
|
yt_download.pressed.connect(DownloadYTVidFromLink)
|
||||||
|
|
||||||
func CancelDownload():
|
|
||||||
if CurrentDownload != null:
|
|
||||||
print("! PROCCES ID: " + str(CurrentDownload._process_id))
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
if currentlyExtending:
|
if currentlyExtending:
|
||||||
@@ -45,7 +40,7 @@ func DownloadPlaylistConf():
|
|||||||
ContinueProcess.emit()
|
ContinueProcess.emit()
|
||||||
|
|
||||||
func DownloadSingleSongConf():
|
func DownloadSingleSongConf():
|
||||||
var idx:int = yt_link.text.find("&list=")
|
var idx:int = yt_link.text.find("list=")
|
||||||
yt_link.text = yt_link.text.erase(idx,500)
|
yt_link.text = yt_link.text.erase(idx,500)
|
||||||
ContinueProcess.emit()
|
ContinueProcess.emit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user