45 lines
1.4 KiB
AutoIt
45 lines
1.4 KiB
AutoIt
|
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
|
||
|
#AutoIt3Wrapper_Icon=YTMP3Win.ico
|
||
|
#AutoIt3Wrapper_Outfile=ytmp3.exe
|
||
|
#AutoIt3Wrapper_Outfile_x64=ytmp3.exe
|
||
|
#AutoIt3Wrapper_Res_Fileversion=1.0.0.10
|
||
|
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
|
||
|
#AutoIt3Wrapper_Res_ProductVersion=1.0.0.0
|
||
|
#AutoIt3Wrapper_Res_CompanyName=Tyleo Softwares
|
||
|
#AutoIt3Wrapper_Res_LegalCopyright=Tyleo Softwares
|
||
|
#AutoIt3Wrapper_Res_LegalTradeMarks=Tyleo Softwares
|
||
|
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
|
||
|
|
||
|
#include "MetroGUI-UDF\MetroGUI_UDF.au3"
|
||
|
#include "Extensions.au3"
|
||
|
|
||
|
GetSoftDetails(@AutoItExe,"DEV")
|
||
|
|
||
|
#cs
|
||
|
|
||
|
Tyleo Software Project Base v1
|
||
|
Created With CNP and DevTools Base Folder
|
||
|
|
||
|
All Softwares created with this base are Free and Open Sourced.
|
||
|
Join our Guilded Server ! https://www.guilded.gg/i/2DRlM7Mp
|
||
|
|
||
|
#ce
|
||
|
if $CmdLine[0] = 1 Then
|
||
|
$url = $CmdLine[1]
|
||
|
Else
|
||
|
$url = ""
|
||
|
EndIf
|
||
|
$cmd = 'yt-dlp -i -c --add-metadata --embed-thumbnail --extract-audio --audio-format mp3 --audio-quality 0 --postprocessor-args "-write_id3v1 1 -id3v2_version 3"'
|
||
|
|
||
|
; Dependancies Checks
|
||
|
Run("ffmpeg","",@SW_HIDE)
|
||
|
if @error Then
|
||
|
MsgBox(0+16,"Error !","FFMPEG Must Be Installed and available in PATH")
|
||
|
EndIf
|
||
|
Run("yt-dlp","",@SW_HIDE)
|
||
|
if @error Then
|
||
|
MsgBox(0+16,"Error !","YT-DLP Must Be Installed and available in PATH")
|
||
|
EndIf
|
||
|
; MsgBox(0,"Debug",$CmdLine[1])
|
||
|
|
||
|
Run($cmd & " " & $url)
|