SciLor's Open Source Forums
http://forum.scilor.com/

Trying to make my own downloader
http://forum.scilor.com/viewtopic.php?f=133&t=87
Page 1 of 1

Author:  Kekke [ Fri Mar 12, 2010 5:28 pm ]
Post subject:  Trying to make my own downloader

Hello, I am trying to make my own downloader to learn something (I am not able to download anything so far, and I think I've done exactly what you are doing).

But everytime I try to recieve the stream I get error 400, why do I get it?
I am using your DLL and doing it like this:

(Delete this if you don't want anyone to know how you do it, but since you are a programmer I bet you want people to know how you code and you gladly help other programmers)

Code:
        //Code by scilor, www.scilor.com
        private void DownloadItem(string sURL, string strFile, string strFolder)
        {
            object DownloadItem;
            string myStringWebResource = null;
            WebClient myWebClient = new WebClient();
            WebHeaderCollection myHeaders = new WebHeaderCollection();
            try
            {
                myStringWebResource = sURL;
                //Directory.CreateDirectory(strFolder);
                myWebClient.DownloadFile(myStringWebResource, "C:\\test.mp3");
                myHeaders = myWebClient.ResponseHeaders;
                DownloadItem = true;
            }
            catch (Exception exception1)
            {
                MessageBox.Show(exception1.Message);
            }
        }


        private void button1_Click(object sender, EventArgs e)
        {
            GroovesharkSession test = Grooveshark.Connect();
            GroovesharkSearchResponse resp = test.Search("Lady gaga");

            GroovesharkSearchResponseItem respitem = resp.Items[11];

            Stream music = respitem.GetMusicStream();

            string Str = test.GetMusicUrl(respitem.SongID);

            DownloadItem(Str, "", "");
           
        }

Author:  SciLor [ Fri Mar 12, 2010 5:46 pm ]
Post subject:  Re: Trying to make my own downloader

Which dll are you using exactly (From which version of my downloader)?

The only thing you could try to uncomment is: "Stream music = respitem.GetMusicStream();" :D the rest seems to be fine

SciLor
PS: I would like you not to release the software including my dll. If you want to release it release it without it and suggest your users to download the downloader package from here to get it.

Author:  Kekke [ Fri Mar 12, 2010 6:13 pm ]
Post subject:  Re: Trying to make my own downloader

I am not planning on releasing it, I am making this for my own use.

I am using the dll of the latest version.

Author:  SciLor [ Fri Mar 12, 2010 6:32 pm ]
Post subject:  Re: Trying to make my own downloader

Ok, good to know

check the link if it is valid, another idea!

Author:  Kekke [ Fri Mar 12, 2010 6:49 pm ]
Post subject:  Re: Trying to make my own downloader

Somehow it magically started working.
Could have been some problem at groovesharks endpoint or with my dns servers..

Anyways, I'll keep you updated with what I'm making, maybe you can use some of my code. :)

Author:  SciLor [ Fri Mar 12, 2010 6:55 pm ]
Post subject:  Re: Trying to make my own downloader

If you bring some nice new idea I wouldn't say No ;) Keep me updated with your ideas :)

Author:  diogopms [ Mon Oct 04, 2010 12:55 am ]
Post subject:  Re: Trying to make my own downloader

thanks...

now its working thanks for your advices...

this is possible grooveshark detect that i use your api and block access, or its like listen music on grooveshark?

Author:  SciLor [ Mon Oct 04, 2010 4:10 pm ]
Post subject:  Re: Trying to make my own downloader

My API tries to react like the flash application, but I cannot confirm it is so stealthed that it cannot be detected ;)

Author:  axy_david [ Sat Nov 06, 2010 1:11 pm ]
Post subject:  Re: Trying to make my own downloader

Dhmmmm i tested another cracked grooveshark app and my acc got flagged
it means that that app played random songs or not at all however even if i got flagged
The scilors pgr woud still work this is really impressive because i was told that i will not
be able to use cracked apps anymore
since in scilors version u dont need 2 log in the worst thing that may happen is
getting your ip banned well this may be fixed with an proxy integration

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/