Reply
Thread Tools
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#11
Yeah, your script is not in unix format. You need to remove the carriage returns at the end of every line.
 

The Following User Says Thank You to lma For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#12
Okay. Will do. Thank you!
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#13
I went ahead and deleted lines 2 and 3.


bash -x /usr/bin/juicer
/usr/bin/juicer: line 25: syntax error: unexpected end of file


sh -x /usr/bin/juicer
/usr/bin/juicer: line 25: syntax error: end of file unexpected (expecting "then")


juicer guster
: bad interpreter: No such file or directory


I now am using bash4.

I still have a /bin/bash file so I don't understand what I'm missing here.
 
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#14
You are barking up the wrong tree. Your bash is fine, and even the busybox shell will do. The problem is that your script is corrupted, and you need to fix it to have unix line endings. On every line, not just the top.
 

The Following User Says Thank You to lma For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#15
You were right lma.

fromdos -d /media/mmc1/juicer



I hope more good things will come from this script, but it's a super great start for such an early release.

Now, how to stop it from downloading every Guster song in existence? *lol*
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#16
Here's the file again, only working this time.

juicer.txt

Remove the .txt extension and make it executable.

Would anyone here like to pretty this up a bit?

The songs need to have .mp3 added to them.

killall wget should stop it's massive downloading.

But mostly, like that goear script, show what's available and be able to choose a song rather than having juicer download every single search result.

Oh, and maybe have it download to a specific folder as well.

If you ever want to find a song, this will not only get it for you, but will also get the best recording of it. Usually at 320 kbps.

This script is version 0.1.

Someone please release a 0.2 of it.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:55.