Jump to content
Sign in to follow this  
jamesstp20

Video download problem...

Recommended Posts

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

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

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

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...