Jump to content
Sign in to follow this  
jamesstp20

Video download problem...

Recommended Posts

jamesstp20

Hey all. I have a little problem in my Youtube Downloader :S . I asked this question on the french forum but i didn't get any answer..

This is the script:

 

<snip>

The problem is that: there is 3 "›› Download MP4 ‹‹" on the website:

1) Low quality

2) Medium Quality

3) High quality

It means that the first "›› Download MP4 ‹‹" is Low quality, second Medium Quality and the third High Quality.. How to download the second or the third one ;)

Thanks :)

Edited by Melba23
Code removed & title adjusted

Share this post


Link to post
Share on other sites
wakillon

Try <snip> ! wink.gif

Edited by Melba23
Link removed

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
seandisanti

Hey all. I have a little problem in my Youtube Downloader :S . I asked this question on the french forum but i didn't get any answer..

This is the script:

#include <IE.au3>
    $complet = "http://keepvid.com/?url=http://www.youtube.com/watch?v=tvSoGW1U20s"
    $oIE = _IECreate ($complet);, 0, 0)
    _IELoadWait($oIE)
    sleep(6000)
$Wheretoclick = "›› Download MP4 ‹‹"
_IELinkClickByText($oIE, $Wheretoclick)

The problem is that: there is 3 "›› Download MP4 ‹‹" on the website:

1) Low quality

2) Medium Quality

3) High quality

It means that the first "›› Download MP4 ‹‹" is Low quality, second Medium Quality and the third High Quality.. How to download the second or the third one ;)

Thanks :)

just use the optional "index" parameter of _IELinkClickByText...

#include <IE.au3>
    $complet = "http://keepvid.com/?url=http://www.youtube.com/watch?v=tvSoGW1U20s"
    $oIE = _IECreate ($complet);, 0, 0)
    _IELoadWait($oIE)
    sleep(6000)
$Wheretoclick = "›› Download MP4 ‹‹"
_IELinkClickByText($oIE, $Wheretoclick,2)

Share this post


Link to post
Share on other sites
jamesstp20

just use the optional "index" parameter of _IELinkClickByText...

#include <IE.au3>
    $complet = "http://keepvid.com/?url=http://www.youtube.com/watch?v=tvSoGW1U20s"
    $oIE = _IECreate ($complet);, 0, 0)
    _IELoadWait($oIE)
    sleep(6000)
$Wheretoclick = "›› Download MP4 ‹‹"
_IELinkClickByText($oIE, $Wheretoclick,2)

Thanks it worked ;)

@Wakillon

Your Script is not working: No Downloads URL Found..

Edited by jamesstp20

Share this post


Link to post
Share on other sites
seandisanti

no problem, glad to help. whenever you find a function that does almost exactly what you want, but not quite, check out the optional parameters in the help file, you'll save yourself some headaches and won't have to reinvent the wheel.

Share this post


Link to post
Share on other sites
wakillon

@Wakillon

Your Script is not working: No Downloads URL Found..

Which OS, and IE Version have you ?

On Xp Works great !

Some rare urls doesn't work but in general it's ok Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
jamesstp20

Oh i'm using Windows 7 Ultimate French 64 Bits..

Share this post


Link to post
Share on other sites
wakillon

Oh i'm using Windows 7 Ultimate French 64 Bits..

Try to change $oIE.Visible = 0 To $oIE.Visible = 1

for see if IE give an error message...Posted Image


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
jamesstp20

Okay i have found the error..

I just removed this from your script

If StringLen ( $_VideoTitle ) > 50 Or StringInStr ( $_VideoTitle, 'incorrect' ) <> 0 Then
        MsgBox ( 0, 'Error', 'Download Urls Not Found', 3 )
        _EnableAllButtons ( )
        _GUICtrlStatusBar_SetText ( $_StatusBar, "" , 0 )
        $oIE.Quit
        ;_CloseWindowWithString ( '' )
        Return
    EndIf

And anything worked perfectly ;)

Edited by jamesstp20

Share this post


Link to post
Share on other sites
wakillon

Glad for you ! Posted Image

have you try my last post's instructions, for find the problem ?


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
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
Sign in to follow this  

×