Task issue
Posted
#1
(In Topic #899)
Guru

Code
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 33, in <module>
sys.exit(load_entry_point('youtube-dl==2021.4.26', 'console_scripts', 'youtube-dl')())
File "/usr/lib/python3/dist-packages/youtube_dl/__init__.py", line 479, in main
_real_main(argv)....Any ideas?
Sample program attached.
Posted
Guru

I guess like ffmpeg tools just using gambas shell is not enough. You HAVE to use the Process pointer and use the Output/Input flags
I found with your command just using Output and not input gave me a download and not an error
also Shell failed and i had to use Exec
Have attached your example with the GetVideo task using the process pointer and using Process_Read event
Posted
Guru

Using..
hProc = Exec ["youtube-dl", sUrl] For Input Output As "Process"
(with Input) it gave an error but it was the same error i got when the Shell command ran in Form_Open() in FMain startup so with Input Output it worked the same.
Posted
Guru

1 guest and 0 members have just viewed this.



