SciLor's Open Source Forums

Also visit my Website!
It is currently Mon Oct 21, 2019 12:11 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Feb 08, 2011 5:17 pm 
Hi Scilor,
Thanks for this easy to use and amazing software, I've tried something on the Windows Side and I'm pretty happy about the Java JAR application, it works fine on Linux as well (JDK 1.6)
but.... I guess I've found a bug when you deal with " ' " (apostrophes). Let me show you how to reproduce the bug:

Quote:
$ java -jar SciLorsJGroovesharkDownloader.jar /c /l "it's a long way"
SciLor's Java grooveshark(tm).com Downloader Pre-Alpha v3
Arguments:
"/c" "/l" "it's a long way"

1. Iced Earth - It's a Long Way to the Top - Tribute to the Gods
2. School of Rock - It's a Long Way to the Top - School of Rock
3. AC/DC - It's a Long Way to the Top (If You Wanna Rock 'n' Roll) - High Voltage
...

and so on

Now suppose you want to download N.3, all you need to do is:
Quote:
$ java -jar SciLorsJGroovesharkDownloader.jar /c /d "it's a long way" 3
SciLor's Java grooveshark(tm).com Downloader Pre-Alpha v3
Arguments:
"/c" "/d" "it's a long way" "3"

Download: AC/DC - It's a Long Way to the Top (If You Wanna Rock 'n' Roll)
java.io.FileNotFoundException: AC/DC - It's a Long Way to the Top (If You Wanna Rock 'n' Roll) - High Voltage.mp3 (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at test.JGroovesharkDownloader.downloadSong(JGroovesharkDownloader.java:180)
at test.JGroovesharkDownloader.downloadSongFromSearch(JGroovesharkDownloader.java:166)
at test.JGroovesharkDownloader.main(JGroovesharkDownloader.java:84)
Error occured:
AC/DC - It's a Long Way to the Top (If You Wanna Rock 'n' Roll) - High Voltage.mp3 (No such file or directory)


and here's the bug.

I've already tried it on different linux machines as well as windows OSes (XP Pro) but the bug it's still there, it seems something related to your application, not to the Java Machine or the environment
Can you tell me how to fix it ?

Thanks
Ben


Top
  
 
 
Online
The Adswinger

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


PostPosted: Tue Feb 08, 2011 10:54 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
It is a bug of my API :D I will fix it, when I find time.
It happens due to invalid characters in the filename.

_________________
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 Feb 09, 2011 9:53 am 
Nice to read it, it could be useful to grab files with "'-% and these special chars with your class.
I'd like to ask you even another thing: are there any exit codes we may check when your class finishes ? I'd like to script a little bit around it and even create some sort of user interface, it could be useful to catch error codes on exit so I can automate the process (0=no errors, !=0 = errors detected while downloading)

Thanks
Ben


Top
  
 
PostPosted: Wed Feb 09, 2011 3:49 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
I am pushing out Errors as System.err. which can be filtered nicely by unix systems :).

_________________
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: Thu Mar 03, 2011 3:48 pm 
Have you already planned a release date for the Java program ?
Thanks

Ben


Top
  
 
PostPosted: Fri Mar 04, 2011 11:36 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
I cannot plan any release date, I am doing that when there is time ;). Please be patient I will do my best.

_________________
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: Fri Mar 11, 2011 6:12 pm 
great scilor
May the Force be with you ;) :D


Top
  
 
PostPosted: Wed Mar 16, 2011 7:24 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
it is fixed on the actual version.

_________________
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 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