Sign in to follow this  
Followers 0
jamesstp20

Video download problem...

10 posts in this topic

#1 ·  Posted (edited)

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



#2 ·  Posted (edited)

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

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)

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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.


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

@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

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

Share this post


Link to post
Share on other sites

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

#9 ·  Posted (edited)

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

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  
Followers 0