SciLor's Open Source Forums

Also visit my Website!
It is currently Thu Oct 24, 2019 6:13 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed May 26, 2010 4:24 pm 
Hi

I Would like to make my own version of the Grooveshark downloader for myself.
I'm a bit confused about the datastream: How to get the download Url

Some example code:
Code:
        Dim client As New GroovesharkClient
        Dim resp As SearchArtist.getSearchArtistResultsResponse = client.SearchArtist("beyoncé", 1000)
        Dim item As SearchArtist.SearchArtistResult = resp.result.result.Item(11)

        Dim stream As New Functions.GetMusicStream(client)


I am actually a java programmer, but I know some basics of VB.net
I saw this topic (viewtopic.php?f=133&t=87), but I can't find the method "GetMusicUrl", so I am able to download the song.

How can I get the download Url of the selected song?

I realy appreciate soms tips :)

Thx anyway!
Dieter


Top
  
 
 
Online
The Adswinger

Joined: Wed Jan 13, 2010 11:56 pm
Posts: Too many!
Donated: Ad Posts


PostPosted: Wed May 26, 2010 4:36 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
You will not get any URL(It was an old API), but a DownloadStream in that version. Just read the Stream into a file.

That may help: http://ondotnet.com/pub/a/dotnet/2003/0 ... reams.html

And please, do not release your Downloader in any way, including my Grooveshark(tm).com API. You may release your tool without the my API, but you will have you say the user to download the api from here!

_________________
My Windows Mobile and Windows Open Source Website:
www.scilor.com

Like my work? Donate!
Donation Website

My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
PostPosted: Wed May 26, 2010 6:37 pm 
Hi

Can I use the stream from the GroovesharkAudioStream, because there is no access to read this stream?

Don't worry the release, it's just for myself ;)


Top
  
 
PostPosted: Wed May 26, 2010 6:51 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
Just play around with it a bit ;)

Here is some source:
Code:
            Dim tempMusic As Groove.Music.GroovesharkAudioStream = grooveClient.GetMusicStream(DownloadResults(SearchItemID).SongID)
            Dim DataRead As Integer
            Dim LoadedData As Integer = 0
            Dim tempBuffer(1023) As Byte
            If IO.Directory.Exists(IO.Path.GetDirectoryName(tempFileName)) = False Then
                IO.Directory.CreateDirectory(IO.Path.GetDirectoryName(tempFileName))
            End If
            Dim tempFile As New IO.FileStream(tempFileName, IO.FileMode.Create)

            pgbCurrentDownload.Value = 0
            pgbCurrentDownload.Maximum = tempMusic.Length
            Do Until tempMusic.Length = LoadedData
                DataRead = tempMusic.Stream.Read(tempBuffer, 0, tempBuffer.Length)
                tempFile.Write(tempBuffer, 0, DataRead)
                LoadedData += DataRead
                pgbCurrentDownload.Value = LoadedData
                Application.DoEvents()
            Loop

_________________
My Windows Mobile and Windows Open Source Website:
www.scilor.com

Like my work? Donate!
Donation Website

My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
PostPosted: Wed May 26, 2010 9:00 pm 
Thx dude!

Donation 4 free ;)


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
template->_php_include(): File ./counter/foruminclude.php does not exist or is empty Powered by phpBB® Forum Software © phpBB Group