Jump to content
UBot Underground

Download Youtube Video Not Working In Compiled Bot


Recommended Posts

I have been working on a bot the past week and am using the download youtube video command, I just found out today after compiling that it is NOT downloading in the compiled bot, only within ubot when its open. Is this a known issue, and what can I do to solve this?

Link to post
Share on other sites
  • 1 month later...

I have been working on a bot the past week and am using the download youtube video command, I just found out today after compiling that it is NOT downloading in the compiled bot, only within ubot when its open. Is this a known issue, and what can I do to solve this?

 

Sorry for the late reply, I had been meaning to try helping you with this back in June.

 

I haven't done any direct experimentation to better determine what's taking place, but I strongly suspect that the mechanism through which UBot Studio is able to download YouTube videos stems from the use of two separate files: youtube-dl.exe and ffmpeg.exe

 

The interplay between those two files isn't entirely clear to me, and this is speculative on my part. But I'd start by checking to see if the following directory structure exists on your system (replace SYSTEM-USERNAME with the username that's designated on your system):

 

C:\Users\SYSTEM-USERNAME\AppData\Roaming\UBot Studio\Libraries\ffmpeg\youtube-dl

 

Assuming for a moment that the aforementioned directory structure exists, and that you have access to both ffmpeg.exe and youtube-dl.exe, then the next thing I'd consider is reading a thread like this one:

 

https://www.reddit.com/r/learnprogramming/comments/44nhzp/how_to_use_youtubedl_and_ffmpeg_to_download/

 

It appears to go into copious detail about the use of these two files as a means to achieve the goal of successfully downloading YouTube files. 

 

Then I'd attempt to see if I could trigger the execution of those files in a way that achieves the goal of downloading a YouTube file.

 

Sometimes it's undesirable to have "shell" windows opening while your independently compiled bot is running. To potentially solve that problem, you could use a freely available plugin called "Advanced Shell" which includes (as I recall) a "hidden shell" command:

 

https://network.ubotstudio.com/forum/index.php/topic/13798-free-plugin-advanced-shell/

 

(There's actually a direct download link now, as you'll notice via the original post in the link above, even though the original website that hosted the plugin in exchange for an opt-in is now offline.)

 

Anyway, I hope this at least helps point you in a direction that yields a favorable outcome.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...