Jump to content

Recommended Posts

Posted

wakillon

error report:

when i search adele / someone like you, there is always an error message.

pls test...

"someone like you" give me 500 results

and "adele" give me 498 results

Could you try running script in SciTE for get the error line ?

Is it the executable of the my download section or is it my script compiled by you ?

Thanks for your feedback.

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

Posted

If the error appear when you RightClick on the listview

and you use a previous AutoIt Version, may be problem is from this line (446) :

"If $hLVRightClick = GUICtrlGetHandle ( GUIGetCursorInfo ( $hGui )[4] ) Then ; if over listview."

where syntax used can not be supported by your AutoIt version...

 

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

  • 3 months later...
Posted

Hi wakillon i would like to ask how did you do that the GUI in maximize mode 

and your label and button it will all range in the same location thank you sorry for my bad English 

Posted (edited)

Hi wakillon i would like to ask how did you do that the GUI in maximize mode 

and your label and button it will all range in the same location thank you sorry for my bad English 

In the Function Gui()  

Look at this line : GUISetOnEvent ( $GUI_EVENT_MAXIMIZE, '_WM_SIZE' )

and for some controls i use GUICtrlSetResizing

 

Edited by wakillon

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

  • 1 month later...
  • 2 months later...
Posted (edited)

Hey again. It's been a while!

As you remember I have taken some of the function you used to have. I want to update a project I had based on those function I took from you. I see that mp3skull and the other servers are not so reliable anymore so I came here and I see you have a lot of updates. It looks great btw.
 

I visited audiodump.com manually to saw how the search engine works and it looks fine. However I have a question. How do you get the research url.

In your code I see these two lines that give me some question:

$sQuery = $aValue1[0] & '=' & $aValue2[0] & '&' & $aValue1[1] & '=' & $aValue2[1] & '&' & $aValue3[0] & '='

 

$sResearchUrl = 'http://www.audiodump.biz/music.html?' & $sQueryString & StringReplace ( $sDefault, ' ' , '+' )

 

 

Now the first one I understand. They way you get the query. Found that by myself as well. However the second line is difficult.
How can you use a prefix "http://www.audiodump.biz/music.html?" + sQuery + artist? This "music.html?" part changes according to each artist.

For example a search for adele would be http://www.audiodump.biz/lyrics.html?p=1&v=3af3&q=adele instead of http://www.audiodump.biz/music.html?p=1&v=3af3&q=adele


How does it work for you?

 

Edit: You are using Curl.au3 which I am not familiar at all. It could be the reason I am missing something here

Edited by AutID
Posted

Not sure to understand your problem...

Is it the _AudiodumpGetQueryString function that you do not understand the utility ?

If yes, for example in this url

http://www.audiodump.biz/genres.html?p=1&v=3777&q=toto

"3777" is extracted from the source code of a first connection to http://www.audiodump.com/

because it's necessary for build a new request url.

 

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

Posted (edited)

Let me explain you. So normally in the site, to perform a search for U2(musical band) the url would be http://www.audiodump.biz/music.html?p=1&v=9ac3&q=u2 according to the way you are doing it. However that page doesn't give me the search results. It redirects me here: redirect.png

There are not infos to extract from that redirected link such as mp3 titles, urls etc...

Edited by AutID
Posted

It's because you do not use a referrer (as with curl) in your http request

Request headers  :

GET /music.html?p=1&v=97c7&q=u2 HTTP/1.1
Host: www.audiodump.biz
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.audiodump.com/

 

The "search" url can not be pasted like you do.

If curl.au3 is not your cup of tea, you can also use the WinHttp.au3 of trancexx ;)

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

Posted
10 hours ago, wakillon said:

It's because you do not use a referrer (as with curl) in your http request

Request headers  :

GET /music.html?p=1&v=97c7&q=u2 HTTP/1.1
Host: www.audiodump.biz
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.audiodump.com/

 

The "search" url can not be pasted like you do.

If curl.au3 is not your cup of tea, you can also use the WinHttp.au3 of trancexx ;)

That was a really helpful post. I am using winhttp. I knew it has to do with the requests. Will get it worked and come back for feedback. Thank you

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
×
×
  • Create New...