Jump to content

Help needed, video download


Jjo
 Share

Recommended Posts

I tried to search solution but every youtube downloader's source code is too complicated.

so what i'm doing wrong here, it says that size is 0.

#include <String.au3>
#include <inet.au3>

$id="XAYhNHhxN0A&feature=related&fmt=18"
$download = "http://www.youtube.com/get_video?video_id=" & $id & ""
MsgBox(0,"File size", InetGetSize($download))
InetGet($download, "D:\music\file.flv", 1, 1)
While @InetGetActive
    TrayTip("",@InetGetBytesRead,1000)
wend
Edited by Melba23
Title adjusted
Link to comment
Share on other sites

Im no expert but I assume you cant run a funcion within a msgbox (I could be wrong)

I would create a variable with InetGetSize, and then ask the msgbox to display it.

#include <String.au3>
#include <inet.au3>

$id="XAYhNHhxN0A&feature=related&fmt=18"
$download = "http://www.youtube.com/get_video?video_id=" & $id & ""
$s = InetGetSize($download)
MsgBox(0,"File size", $s)
InetGet($download, "D:\music\file.flv", 1, 1)
While @InetGetActive
    TrayTip("",@InetGetBytesRead,1000)

Or something like that

wend

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...